• 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: making a script wait until a task finishes before proceeding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making a script wait until a task finishes before proceeding


  • Subject: Re: making a script wait until a task finishes before proceeding
  • From: Jon Pugh <email@hidden>
  • Date: Mon, 12 Aug 2002 16:54:22 -0700

At 7:15 PM -0400 8/12/02, Matt Hoyle wrote:
>tell application "Finder"
> activate
> --
> with timeout of 600 seconds
> --compress folder of aliases using DropStuff
> select folder . . .
> set editorApp to application file id "DStf"
> open selection using editorApp
> end timeout
>
> --tell script to wait for 10 minutes while DropStuff creates archive
> --tell me to sleep for 600

The Finder doesn't wait, but you've realized that already. You seem to have ascribed that behavior to AppleScript though.

You want to do this:

tell app "DropStuff"
with timeout of 999999 seconds
open {stuff to stuff}
end
end

Now AppleScript will wait for DropStuff to finish instead of waiting for the Finder to launch DropStuff and let it go on its way.

Jon
_______________________________________________
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.

References: 
 >making a script wait until a task finishes before proceeding (From: Matt Hoyle <email@hidden>)

  • Prev by Date: Re: making a script wait until a task finishes before proceeding
  • Next by Date: Re: 1.8.3 ???
  • Previous by thread: making a script wait until a task finishes before proceeding
  • Next by thread: Re: making a script wait until a task finishes before proceeding
  • Index(es):
    • Date
    • Thread