• 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: Timeout Not Working As Expected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timeout Not Working As Expected


  • Subject: Re: Timeout Not Working As Expected
  • From: Axel Luttgens <email@hidden>
  • Date: Wed, 18 Mar 2015 18:16:24 +0100

Le 18 mars 2015 à 04:01, S. J. Cunningham a écrit :

> This never times out:
>
> 	with timeout of 5 seconds
> 		do shell script "/Applications/Firefox.app/Contents/MacOS/firefox-bin imacros://run/?m=Current.iim"
> 	end timeout

Hello,

The with timeout statement controls how long AppleScript waits a reply for a command that has been sent to an application.

In the above, there is just a command ('do shell script'), no command sent to an application (as it would have been the case with 'tell application "Firefox" to ...').

It is a bit as if you had tried:

	with timeout of 1 second
		delay 10
	end timeout

HTH,
Axel



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: Timeout Not Working As Expected
      • From: "S. J. Cunningham" <email@hidden>
References: 
 >Timeout Not Working As Expected (From: "S. J. Cunningham" <email@hidden>)

  • Prev by Date: Re: Timeout Not Working As Expected
  • Next by Date: Re: Timeout Not Working As Expected
  • Previous by thread: Re: Timeout Not Working As Expected
  • Next by thread: Re: Timeout Not Working As Expected
  • Index(es):
    • Date
    • Thread