Re: AppleEvent timeout error
Re: AppleEvent timeout error
- Subject: Re: AppleEvent timeout error
- From: Luther Fuller <email@hidden>
- Date: Sun, 12 Jun 2011 15:20:01 -0500
On Jun 12, 2011, at 2:44 PM, Jim Brandt wrote: I have a script that I run standalone as well as calling it from a second script.
Part of this first script moves a file into a folder using the following:
tell application "Finder" to move file (f_TBS & filename & ".html") to folder (f_TBS & " HTML:")
When run as a standalone script this works with no problem. When this same script is called from a second script (run script alias FirstScriptName), this same line of code causes an error: -1712 Finder got an error: AppleEvent timed out. However, the file has been moved as requested, but the error is causing the script to abort after the file is moved.
Considering my remarks in another thread, recently, you might try ...
tell (load script scriptAlias) to run
or
run (load script scriptAlias)
instead of (run script alias FirstScriptName).
Using (run script alias FirstScriptName) seems to have problems with inheritance of properties (and variables?).
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden