• 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
do script takes too long
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

do script takes too long


  • Subject: do script takes too long
  • From: gerd schmalfeld <email@hidden>
  • Date: Sat, 14 Jan 2006 00:23:43 -0800

Hello,

i need to include a shell command with do script in an applescript. But the shell often does not yet finish working, when the applescript already continues. Result of the shell is needed for the AS to continue.

Is there any way to tell AS to wait until shell command is finished?
With delay is not possible, as the shell command sometimes may need two seconds or maybe sometimes 30 minutes .

with timeout of timeout_amount seconds
tell application "Terminal"
tell window 1
activate
do script thescript
delay 15
close
end tell
end tell
end timeout

thanks in advance for any help

Gerd


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: do script takes too long
      • From: Martin Orpen <email@hidden>
    • Re: do script takes too long
      • From: Adam Bell <email@hidden>
  • Prev by Date: "call soap" w/ authentication
  • Next by Date: Re: do script takes too long
  • Previous by thread: Re: "call soap" w/ authentication
  • Next by thread: Re: do script takes too long
  • Index(es):
    • Date
    • Thread