• 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: Running scripts sequentially
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running scripts sequentially


  • Subject: Re: Running scripts sequentially
  • From: Bryan <email@hidden>
  • Date: Thu, 18 Jan 2001 23:47:11 -0500
  • Organization: Apex Radiology

--untested code

set scriptlist to {path2script1, path2script2, ...}
repeat with myscript in scriptlist
tell application finder
open file myscript
set myscriptname to (name of (info for file myscript))
end tell
repeat
if myscriptname is not in list processes then exit repeat
sleep for 10
end repeat
end repeat

Bryan Kaufman

Stephen Gross wrote:

> I want to run a series of applescripts from an applescript, but I want
> to make sure that each one has finished before the next one starts.
> here's the pseudo code:
>
> =====
> Set Script_List to a list of applescripts
> For each script in scrip_list
> {
> execute the script
> wait till the script is finished before continuing the loop
> }
> =====
>
> Any ideas?
>
> Thanks in advance,
> Stephen Gross
> _______________________________________________


References: 
 >Running scripts sequentially (From: "Stephen Gross" <email@hidden>)

  • Prev by Date: Re: OSAX within tells
  • Next by Date: Can I...
  • Previous by thread: Running scripts sequentially
  • Next by thread: osaxen question
  • Index(es):
    • Date
    • Thread