• 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: Called script sends error, help me out here!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Called script sends error, help me out here!


  • Subject: Re: Called script sends error, help me out here!
  • From: "Marc K. Myers" <email@hidden>
  • Date: Sun, 02 Jun 2002 02:27:52 -0400
  • Organization: [very little]

> Date: Sat, 01 Jun 2002 20:37:51 -0600
> Subject: Called script sends error, help me out here!
> From: Gnarlodious <email@hidden>
> To: "AppleScript (Gnarlodious)" <email@hidden>
>
> -----: Rachel
> Content-type: text/plain; charset="ISO-8859-1"
> Content-transfer-encoding: quoted-printable
>
> This script runs as it should:
> ------------------------------------
> tell application "Installer Observer"
> activate
> SaveConditions "Desktop:" FileName "Saved State" FolderSet "Entire
> System Folder"
> CloseObservationsWindow
> quit
> end tell
> set Instance to the clock using form "%m-%d %h=80%i"
> tell application "Finder"
> set the name of file "Apple:Desktop Folder:Saved State" to Instance
> move file Instance to folder "Apple:Backup:"
> end tell
> -------------------------------------
> However this line from a calling script:
> tell application "Finder"
> run script "Scan"
> =20
> gives error(in Script Debugger3.0.1, -1712):
> "Finder got an error: Finder got an error: AppleEvent timed out."
>
> The "Scan" script apparently runs until it needs to move the file, then it
> sends the error to the calling script.
> Can anyone help me with this?
>
> Rachel http://www.gnarlodious.com

When an applet calls another applet it waits for a return. If it
doesn't get one eventually it'll time out. You have two options: either
put a return statement at the end of your called script or bracket the
call in the calling script with "ignoring application responses" and
"end ignoring".

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[6/2/02 2:27:15 AM]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Files and Aliases under OS 9.2 & AS 1.7
  • Next by Date: Re: Application and application process are legacy in OS X finder suite: how do I find the frontmost app?
  • Previous by thread: Called script sends error, help me out here!
  • Next by thread: Re: iTunes player state
  • Index(es):
    • Date
    • Thread