Avoiding AppleEvent Timed Out Error -1712
Hey all I am relatively new to applescsripting. I have come up with the below applescript for a project here at work. Basically this applescript is used to open pdfs in full screen mode, display them for set lenght of time and rotate continously. It is intended for this script to never stop unless the machine is rebooted. Every 30 minutes or so, the script closes the pdf windows and goes out to a share drive to get updated copies, that it then copies to local drive, replacing the ones there already.
My question or problem is thus, I have been getting Appleevent Timed out Errors and would like to know the best way to avoid or deal with these and have script to either start over or continue executing but not just stop dead in its tracks. The last line I got an AppleEvent Timed out error on was
execute menu item "FullScreenMode"
but i have received it elsewhere in the script also.
Any thoughts or suggestions would be appreciated.
set intcount to 0
tell application "Adobe Acrobat Pro"
execute menu item "FullScreenMode"
repeat
try
tell application "Finder"
set intcount to intcount + 1
set source to "Operations:Production_Schedule_pdf:PSchedule.pdf"
set source2 to "Production:Maintenance Planner (C.Slasor):Presentations_pdf:DowntimeData.pdf"
set source3 to "Production:Maintenance Planner (C.Slasor):Presentations_pdf:MaintSchedule.pdf"
set home_path to home as text
set destination to home_path & "Documents:"
if intcount = 15 then
duplicate file source to folder destination with replacing
duplicate file source2 to folder destination with replacing
duplicate file source3 to folder destination with replacing
set intcount to 1
end if
end tell
on error
rotateLocally()
end try
tell application "Adobe Acrobat Pro"
open ("/Users/drivord/Documents/PSchedule.pdf")
if intcount = 1 then
execute menu item "FullScreenMode"
end if
delay 60
if intcount = 14 then
close front document
end if
open ("/Users/drivord/Documents/MaintSchedule.pdf")
delay 30
if intcount = 14 then
close front document
end if
open ("/Users/drivord/Documents/DowntimeData.pdf")
delay 30
if intcount = 14 then
close front document
end if
end tell
end repeat
end tell
on error the error_message number the error_number from the offending_object
if the error_number is equal to 128 then
close front window
tell application "Adobe Acrobat Pro"
execute menu item "FullScreenMode"
repeat
open ("/Users/drivord/Documents/PSchedule.pdf")
delay 60
open ("/Users/drivord/Documents/MaintSchedule.pdf")
delay 30
open ("/Users/drivord/Documents/DowntimeData.pdf")
delay 30
end repeat
end tell
else
-- An unknown error occurred. Resignal, so the caller
-- can handle it, or AppleScript can display the number.
set the error_text to "Error: " & the error_number & ". " & the error_message
-- the following line evokes the sub-routine to write the error into an error log created on the desktop
-- if the file "Script Error Log.txt" already exists, it will add one line to the log
my write_error_log(the error_text)
my send_error_email(the error_text)
end if
on rotateLocally()
close front window
tell application "Adobe Acrobat Pro"
execute menu item "FullScreenMode"
repeat
open ("/Users/drivord/Documents/PSchedule.pdf")
delay 60
open ("/Users/drivord/Documents/MaintSchedule.pdf")
delay 30
open ("/Users/drivord/Documents/DowntimeData.pdf")
delay 30
end repeat
end tell
end rotateLocally
on write_error_log(this_error)
set the error_log to ((path to desktop) as text) & "MAC015 Error Log.txt"
try
open for access file the error_log with write permission
write (this_error & return) to file the error_log starting at eof
close access file the error_log
on error
try
close access file the error_log
end try
end try
end write_error_log
on send_error_email(this_error)
set the_subject to "mac15 Monitor error"
set the_body to this_error
(* send email using Mail
tell application "Mail"
tell new_message
--add recipients
make new to recipient at end with properties ¬
{name:"Ken", address:"[email protected]"}
make new cc recipient at end with properties ¬
{name:"Doug", address:"[email protected]"}
send
end tell
end tell
tell application "Microsoft Outlook"
set OutgoingEmail to make new outgoing message with properties {subject:the_subject, content:this_error}
make new recipient at OutgoingEmail with properties {email address:{name:"Ken", address:"[email protected]"}}
make new cc recipient at OutgoingEmail with properties {email address:{name:"Doug", address:"[email protected]"}}
send message id (id of OutgoingEmail)
end tell
end send_error_email
You already had one solution, the try statement
try
-- your statement here.
execute menu item "FullScreenMode"
on error errorMsg
log "got error >" & errorMsg & "< "
display dialog " error. >" & errorMsg giving up after 20
end try
The default time for an application to respond to a command is two minutes.
You can change this time via with timeout
I didn't examine your script to find the slow down place, but as an example.
tell application "Microsoft Outlook"
with timeout of 600 seconds
set OutgoingEmail to make new outgoing message with properties {subject:the_subject, content:this_error}
end timeout
end tell
Similar Messages
-
Connection to production server giving timed out error
when I'm trying to connect to production server , through Look up or an OLDB source ..
it is giving timed out error. this is while designing the package..
is there other option to avoid this error.Are you using Windows Authentication?
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Dear Friends,
I am new to PLM-Cprojects module. In SICF transaction i have activated the following BSP applications
1. cprojects
2. cprojects_cp
3.cprojects_eve
4.cprojects_files
5.cprojects_srm
6. cprojects_tra.
Then in SE80 transaction, for BSP application Cprojects, when i am executing, i am getting following error.
500 Connection timed out
Error: -5
Version: 7000
Component: ICM
Date/Time: Tue Oct 16 09:09:43 2007
Module: icxxthr_mt.c
Line: 2646
Server: hllsap12_SD1_00
Error Tag: {-}
Detail: Connection to partner timed out after 60s
© 2001-2005, SAP AG
Please guide me to solve
Regards
SenthilHi, Every time you call up the Business Server Pages (BSPs) from which cProjects are composed for the first time, you may experience waiting times as the individual BSPs are generated at the runtime.
To avoid this, generate each page once, centrally as follows
1. Use transaction SGEN to start the SAP Load Generator.
2. Select Generate BSP Applications and choose Continue.
3. Select CPROJECTS and choose Continue.
4. Confirm the standard selection.
U do this whenever u make or did initial installation,imported Support Packages
I reconmd to activate default host and sap node in sicf to avoid the error msg -
Request timed out.- Error while opening a item in Blog
Hi,
We have a blog in our share point portal which was running properly before few days.
We get Request Timed out error while opening an item in the blog. The list contains about
3500 items
[HttpException (0x80004005): Request timed out.]
We were able to create a new item but not able to view the item.
When we check the server SQLSERVR.EXE takes more than 90% of the CPU Usage.
Please let me know how to resolve this issue.
Thanks,
VanithaHi,
According to your description, Please check the RAM allocated to your SQL server. MOSS server needs 2GB RAM
to preform well. SQL requires 2GB RAM for optimum performance.
Messages like this are mainly due to lack of RAM Allocation.
Best Regards
David Hu -
Hi
I am working in SRM 5 and with support level 9.
When the user try to type in lot of information manually in the Header or the Item text in the SRM PO and then try to save it, he gets the SRM timed out error. Looks like SRM doesn't treat the information being filled in header and item text field as system being active and ultimately gives a timed out error.
Any suggestions to overcome this issue?
Thanks a lot in advance.
regards
manojHi
Please go through the threads as well ->
Re: why can I not find Service BBPGLOBAL in TA SICF?
Re: ITS Configuration
Re: ITS_CANT_LOAD_INCLUDE in BBPstart service
Re: ITS Template not found
Re: Service Cannot be Reached
Regards
- Atul -
Timed Out error while executing BI report in Portal
Hi Experts,
When we are trying to execute a BI report which returns over 9 lac records, it is taking lot of time to get executed and then its throwing the timed out error.
Can anyone help me resolving the issue?
Is this a problem with the performance of Portal server or its just due to the huge amount of records that are being retrieved?
Thank You.
Regards,
Murthy.I havent got any solution regarding this. But, due to constraint regarding number of open Question in the forum, I am closing this and as there is not other way I am marking it as answered.
Please suggest any other way to close the thread if this is not the right way.
Thank You. -
Timed Out Error while waiting for response from DB Procedure
Hi Gurus,
We are encountering a problem in our production environment. The system is implemented using AIA foundation pack 2.5 on SOA suite 10.1.3.4.
We have a BPEL process A which calls an ESB Service which inturn calls BPEL Process B. In process B, we have a DB procedure call which waits for a response from
a DB procedure. The procedure doesn't reply on time and Process B remains in waiting state to get the response from DB Procedure wherein Process A errors out by showing as "Timed Out Error".
This issue is intermittent and we have already increased transaction-time outs in transaction-manager.xml to 7200 and ejb-orion-jar.xml to 3600.
When we encountered this problem, we found out that there are too many connections open and when we bounced the server, everything was restored to nornal but as it is a production env. we can't do it over and over again.
We have 2 nodes each having max connections as 100 and min. as 0.
Is there a limit to max no. of connections or can we do something in DB side to ensure that it doesn't happen again ?
Please suggest.
Thanks,
Vikas ManchandaHi Gurus,
We are encountering a problem in our production environment. The system is implemented using AIA foundation pack 2.5 on SOA suite 10.1.3.4.
We have a BPEL process A which calls an ESB Service which inturn calls BPEL Process B. In process B, we have a DB procedure call which waits for a response from
a DB procedure. The procedure doesn't reply on time and Process B remains in waiting state to get the response from DB Procedure wherein Process A errors out by showing as "Timed Out Error".
This issue is intermittent and we have already increased transaction-time outs in transaction-manager.xml to 7200 and ejb-orion-jar.xml to 3600.
When we encountered this problem, we found out that there are too many connections open and when we bounced the server, everything was restored to nornal but as it is a production env. we can't do it over and over again.
We have 2 nodes each having max connections as 100 and min. as 0.
Is there a limit to max no. of connections or can we do something in DB side to ensure that it doesn't happen again ?
Please suggest.
Thanks,
Vikas Manchanda -
Read timed out error while opening monitor tab in DataServices
Hello all,
Am getting a "Read timed out" error when I try to open the monitor tab in DataServices admin console for a few jobs only. For several jobs, monitor tab opens just fine. But for a few it doesnt and throws the error mentioned above. Mostly this behaviour is noticed with a job having several workflows and dataflows.
The version of DS used is 12.1.0.0. Tried to gather some info on this issue, but couldnt find any relevant thread. Would really appreciate if anyone could help me with it.
Regards,
Premcheck the following post
http://www.forumtopics.com/busobj/viewtopic.php?t=148213 -
Connection Timed Out error while saving messages in Solution Database
Dear Experts,
I have configured trex in solution manager..while saving service messages in 'Solution Database' i used to get "page cannot be displayed" now iam getting the fallowing error..please suggest any changes required..
500 Connection timed out
Error: -5
Version: 7000
Component: ICM
Date/Time: Thu May 14 15:11:24 2009
Module: icxxthr.c
Line: 2698
Server: Host_<SID>_<Sys no>
Error Tag: {-}
Detail: Connection to partner timed out after 60s
Regards,
BabuHi Babu,
you might try the following on the server where the problem occurred: call transaction SMICM -> Goto Services -> Select the service you are working with ->
Service Change -> increase value for "Max. Processing Time"
In case your application still times out you should see the changed value displayed.
Sometimes just executing the application again 2-4 times might help, because compiling might happen and is taking some time in the system.
With regards to parameters see also SAP Note [824554|https://service.sap.com/sap/support/notes/824554].
Best regards,
Andreas -
"ORA-12535:TNS:operation timed out" error
hi,
I want to connect to my oracle server.If I try to connect my client means"ORA-12535:TNS:operation timed out" error is shown.What should i do to the rectify this problem.Pls give me a solution.
Thanks in advance.
-reg
Lakshman.We are using wiondows XP and oracle 8i.
I am able to ping the host where the database resides.
this problem occurs only when we try to connect this server form the client.I able to connect other servers without any problem.
I able to establish local connections.
I am trying tnsping database service.
client and the server are in same LAN only.
Pls give me a solution.
Thanks in advance.
-regs,
Lakshman. -
"TNS-12535: TNS:operation timed out" error after listener restart
I have two related questions:
Scenario 1:
1. I have two remote Windows machines with database on each. One is Win 2003 Server (machine A) and another one is Win XP (machine B)
2. I can ping from A to B.
3. I can ping from B to A.
4. I can tnsping from A to B.
5. I CAN'T tnsping from B to A.
6. Windows Firewall on both machines are off.
What could be possible reason for point# 5?
Scenario 2:
Now, the second part:
1. I had an unwanted entry in tnsnames.ora on B which I removed.
2. Then I restarted the listener on B. Actually, I wanted to restart the one on A to check if that resolves issue mentioned in point# 5 above.
3. I tried tnsping from A to B but suprisingly it is also giving "operation timed out" error now. So now tnsping not working from either sides.
I didn't make any changes in listener.ora on B, just stopped it and started again. Only change made was removing unwanted entry in tnsnames.ora on B.
Why does that affected database connectivity from A to B which was working fine previously?
If any extra information needed please let me know, and thanks in advance for your answers.
- RameshDB names on both machines: ORCL
listener.ora on B (Win XP) - This was working before listener restart, I mean, I was able to connect to DB on B from A.
# listener.ora Network Configuration File: C:\app\Test\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\Test\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\Test\product\11.2.0\dbhome_1\bin\oraclr11.dll")
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = c:\app\Test\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = testpc)(PORT = 1521))
ADR_BASE_LISTENER = C:\app\Test
listener.ora on A (Win 2003 Server) - Never able to connect to DB on this machine from A.
# listener.ora Network Configuration File: D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = NRDBSVR.delldomain1.netreachasia.com)(PORT = 1521))
ADR_BASE_LISTENER = D:\app\Administrator
NOTE:
Machine A = NRDBSVR.delldomain1.netreachasia.com (Win 2003 Server)
Machine B = testpc (Win XP) -
I am from the states and am in Greece on vacation. I have a good wifi connection yet keep getting a connection timed out error when I try to access the itunes store. It is funny because pending downloads show up in the cue, and they download no problem. I can also open my account. When I try to go the the movies or music section of the stor though it just times out. I tried updating to the latest itunes software and restarting, also I checked all the proxy boxes in the network section of the settings then unchecked them all and restarted and it keeps doing the same thing. Any help would be appreciated.
ThanksWelcome to AD!
There's been plenty of posts about Norton & the removal tool here. Unfortunately many folks seem to not even know it comes pre-installed on most PCs! Even a trial version, never used or long since expired can cause problems - and not just with iTunes.
Anyone with a Dell, HP, Gateway EEE PC, Asus ..... what Windows PC manufacturer does NOT have this junk software pre-installed?
Almost all of them have made deals with Symantec to pre-install it.
Horrible, horrible software.
Anyway, glad you finally solved your problem. -
IPhone 5s isn't recognized by iTunes and shows a 'timed out' error
My iPhone 5s won't sync with iTunes, I get a 'timed out' error. Anyone know how to fix this?
Hello Janeanek,
Thanks for using Apple Support Communities.
For more information on this, take a look at:
iOS: Device not recognized in iTunes for Windows - Support - Apple
support.apple.com/kb/ts1538
iOS: Device not recognized in iTunes for Mac OS X - Support - Apple
support.apple.com/kb/ts1591
Best of luck,
Mario -
Fix network connection timed out error 3259
How do I fix network connection timed out error 3259?
Here is apple article on this error. Basically, disable your firewall and other security software.
http://support.apple.com/kb/TS2799 -
Network connection timed out (Error -3259)
I've been REPEATEDLY getting "Network connection timed out (Error -3259) for two specific TV shows I'm trying to download. Other shows and songs are downloading just fine, which indicates there is nothing wrong with the network.
I have already tried deleting the temporary files from the DOWNLOADS folder, but no luck.
I have also tried restarting these two epispodes DOZENS of times.
I've heard from various web sites that Itunes will not work properly with internet service from Time Warner. Is this true? I have no way to change my ISP as TW is all that's available to me.
Since the series is sequential, I want my money back for all the episodes after the first one I can't download, or to make alternate arrangements to FTP the files directly rather than using the Itunes Store. How do I go about doing this?Here is apple article on this error. Basically, disable your firewall and other security software.
http://support.apple.com/kb/TS2799
Maybe you are looking for
-
Before i ran the software update i had to iphoto icons in the launch pad, both had exactlly the same content so i just ignored it for a wile till i needed to update my photos, which i was hoping to do after the update. However when i restarted both i
-
"Software Update" crashes upon download
Last week I was given a new Mac mini as a gift; I upgraded the memory to 2G; did Target Disk transfer from my old G4, then started using it (didn't use it before the memory or the transfer). Software Update crashes at the point when the download has
-
bonjour j'ai une vielle tele SONY WEGA en un MAC avec la version 10.9.3 Depuis l'instalation de la fibre SFR il y a plus d'un an, impossible de connecter la télé et le mac SFR n'a pas de solution pour le problème. Peut-être quelqu'un peut m'aider? JM
-
Illustrator CS6 producing corrupt SVG files
I have had Illustrator for a few months, and I haven't had any problems with saving files as SVGs until a couple of weeks ago. One day, I was able to save them with no problem, and the files could be opened in all other SVG viewing/editing programs,
-
MacBook Pro - what's best option for university Windows apps?
My son is starting university and considering buying a MacBook Pro (we are a Mac family). However, his math textbooks (calculus and linear algebra) come with bundled software, or keys to downloadable software, that only runs on Windows. I haven't bee