• 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: floating point idle delays, 'with timeout' and the date class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: floating point idle delays, 'with timeout' and the date class


  • Subject: Re: floating point idle delays, 'with timeout' and the date class
  • From: Graff <email@hidden>
  • Date: Sun, 14 Mar 2004 18:01:08 -0500

On Mar 14, 2004, at 3:00 PM, Paul Berkowitz wrote:

On 3/14/04 11:57 AM, "Paul Berkowitz" <email@hidden> wrote:

On 3/14/04 10:51 AM, "Graff" <email@hidden> wrote:

You can do this already. There is a constant called "minutes" which is
defined as 60 seconds. There are also hours, days, weeks, and months.
All of these are just constants and they resolve to the number of
seconds that such a unit of time would hold. To use them you would do
something like:

with timeout of 10 * minutes

I'm not sure when this was added but I know that it has been around
since at least AppleScript 1.9.2

More like AppleScript 1.3 or thereabouts (OS 8.5 or 8.6), I think. Or
earlier.

Except that does _not_ work in 'with timeout of' . That requires 'seconds'
[or 'second'] as part of the statement. 'minutes' (and 'hours', 'days' and
'weeks') are constants that can be used as a conversion for numbers, but not
in 'with timeout'.

Right, I wrote this up without testing it because I was in a bit of a hurry and it was fairly trivial. I forgot that the "with timeout of" statement requires the statement "seconds" at the end of the number. Goes to show that you should always test before posting, no matter how trivial the command is!


-Ken
_______________________________________________
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: 
 >Re: floating point idle delays, 'with timeout' and the date class (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Sending data direct to USB in OSX
  • Next by Date: Re: Suggestion: iTunes needs a refresh event
  • Previous by thread: Re: floating point idle delays, 'with timeout' and the date class
  • Next by thread: Re: floating point idle delays, 'with timeout' and the date class
  • Index(es):
    • Date
    • Thread