Appleevent Timed Out Error
Contents |
MalasaƱa, Madrid Registered: 2002-11-20 Posts: 2014 What is "AppleEvent timed out"? This is an apple event error, which means that you are not allowed to execute more code because you apple event timed out 1712 are very slow.For example, you are targeting the Finder to duplicate a
Appleevent Timed Out. (-1712) Diskmaker
folder, which has a size of 888 terabytes. After it is duplicated, you wish rename the new folder apple event timed out diskmaker to "duplicate gotta hey!". This is the code:Applescript:tell application "Finder" duplicate alias "path:to:really BIG folder:" set name of result to "duplicate gotta hey!" end tellThe Finder will receive
Applescript With Timeout
the order: "duplicate!" And AppleScript will wait for a response: "done, sir!".If AppleScript gets tired of waiting for an answer, it will time out and will die throwing the error "AppleEvent timed out". So, the "set name..." line won't be executed.Actually, AS 1.9.1, AppleScript gets tired after 2 minutes. However, you can prevent this from happening using the following statement:Applescript:with timeout apple event errors of (30 * 60) seconds tell application "Finder" duplicate alias "path:to:really BIG folder:" set name of result to "duplicate gotta hey!" end tell end timeoutNow, AppleScript will get tired after 30 minutes!Note that this error will happen only when you are targeting a process (eg, the Finder). However, if you use the following code...Applescript:set aFolder to (choose folder with prompt "Choose a folder, please...")... If you were an irresolute folk, you could wait for 17 days before choosing a folder, and you wouldn't receive a timeout error. Filed under: Finder Offline Pages: 1 Index»Core Language»What is "AppleEvent timed out"? Board footer Jump to ScriptWire unScripted AppleScript | Mac OS X AppleScriptObjC and Xcode AppleScript Studio & Xcode Code Exchange Automator Books / Resources >>> AppleScript Links >>> MacDeveloper >>> iBetaTest >>> About the Applescript Sourcebook AppleScript for Absolute Starters About Applescript About Automator Applescript Versions Scripting Tips Scripting Components Bugs Discovered in Leopard Bugs Discovered in Tiger AppleScript Language Guide >>> General Information Core Language Applescript Studio OS X F
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company
Applescript With Timeout Example
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Applescript Increase Timeout
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, applescript without timeout just like you, helping each other. Join them; it only takes a minute: Sign up Corona SDK Error “Apple Event Timed Out” up vote 1 down vote favorite 1 I am using Lua Glider for Corona SDK http://macscripter.net/viewtopic.php?id=24461 , When I am running my Application I got the erroe like "Apple Event Timed Out" And I am using Mac. I am getting the following Error in Plugin Console System Lua Interpreter plugin loaded successfully Corona plugin loaded successfully Moai plugin loaded successfully Marmalade plugin loaded successfully Love 2d plugin loaded successfully Gideros plugin loaded successfully 56:74: execution error: Corona Simulator got an error: AppleEvent timed out. (-1712) Can any one Help me lua http://stackoverflow.com/questions/20674214/corona-sdk-error-apple-event-timed-out corona share|improve this question asked Dec 19 '13 at 5:39 N.V.Rao 486621 Is your Lua Glider latest 1.9, if not first update it. –RAIS Dec 19 '13 at 6:42 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted This is an apple event error, which means that you are not allowed to execute more code because you are very slow. For example, you are targeting the Finder to duplicate a folder, which has a size of 888 terabytes. After it is duplicated, you wish rename the new folder to "duplicate gotta hey!". This is the code: Open this Scriplet in your Editor: tell application "Finder" duplicate alias "path:to:really BIG folder:" set name of result to "duplicate gotta hey!" end tell The Finder will receive the order: "duplicate!" And AppleScript will wait for a response: "done, sir!". If AppleScript gets tired of waiting for an answer, it will time out and will die throwing the error "AppleEvent timed out". So, the "set name..." line won't be executed. Actually, AS 1.9.1, AppleScript gets tired after 2 minutes. However, you can prevent this from happening using the following statement: Open this Scriplet in your Editor: with timeout of (30 * 60) seconds tell application "Finder" duplicate alias "path:to:really BIG folder:" set name of result to "duplic
enter a title. You can not post a blank message. Please type your message and try again. drivord Level 1 (0 points) Q: Avoiding AppleEvent Timed Out Error -1712 Hey all I am relatively new to https://discussions.apple.com/thread/5116660?start=0&tstart=0 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 timed out 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 event timed out 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 0tell 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 repeatend 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 Ac