• 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: "William M. Smith" <email@hidden>
  • Date: Mon, 12 Aug 2002 19:52:53 -0500

Hi Matt!

You can use the "busy status of (info for file...)" to get a boolean "true"
or "false" to have your script check and see if DropStuff is still active.
Put this in a repeat loop and you should have what you're looking for.

Likewise, you could do this for the file you are creating as well.

Hope this helps! bill

----- Original Message -----
From: "Matt Hoyle" <email@hidden>
To: <>
Sent: Monday, August 12, 2002 6:15 PM
Subject: making a script wait until a task finishes before proceeding


> I know that I should be able to figure this out, but I'm having a hard
time.
>
> I've written a simple backup script for use on my PowerBook. It uses
> DropStuff to stuff a group of aliases in a folder and then renames
> the archive with a name of the form "MM_DD_YYYY.sit".
>
> 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 . . .
> 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
>
> --this line creates date string of form MM_DD_YYYY
> set the_date_slug to my format_date_using(the current date,
> "_", {"MM", "DD", "YYYY"})
>
> --now rename backup archive with label of that form
> select item . . .
> set name of selection to the_date_slug & ".sea"
> end tell
>
> (other statements)
>
> Can anyone shed some light on this for me? Here's my environment:
>
> OS: 9.2.2
> AppleScript: 1.8.3
> Carbon: 1.6.0
>
> Thanks in advance,
> Matt Hoyle
> _______________________________________________
> 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.
_______________________________________________
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: Filmaker container field
  • Next by Date: Xserve and Applescript
  • 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