• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleEvent timeout error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >AppleEvent timeout error (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: How to make a table?
  • Next by Date: Re: How to make a table?
  • Previous by thread: AppleEvent timeout error
  • Next by thread: Re: AppleEvent timeout error
  • Index(es):
    • Date
    • Thread