• 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: John Delacour <email@hidden>
  • Date: Tue, 13 Aug 2002 01:07:08 +0100

At 7:15 pm -0400 12/8/02, Matt Hoyle wrote:

That part of the script works ok, but I have some other statements after that section which I want to run ONLY after DropStuff finishes. I am currently unable to get the script to wait until the archiving completes before proceeding.

Here's a snippet:

tell application "Finder"
activate
--
with timeout of 600 seconds
--compress folder of aliases using DropStuff
select folder . . .

All this selecting is redundant; you just need to give the pathname, but to answer your question, presuming that Dropstuff quits by itself, you could try


-- stuff things
tell app "Finder"
repeat while "Dropstuff" is in name of processes
delay 1
end repeat
end tell
-- do more stuff
_______________________________________________
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.

  • Follow-Ups:
    • Re: making a script wait until a task finishes before proceeding
      • From: Michael Grant <email@hidden>
    • Re: making a script wait until a task finishes before proceeding
      • From: Matt Hoyle <email@hidden>
References: 
 >making a script wait until a task finishes before proceeding (From: Matt Hoyle <email@hidden>)

  • Prev by Date: Re: Close access file question ...
  • Next by Date: Re: message from the Mail to FileMakerPro
  • Previous by thread: Re: 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