Re: date/Snow Leopard changed
Re: date/Snow Leopard changed
- Subject: Re: date/Snow Leopard changed
- From: Robert Poland <email@hidden>
- Date: Mon, 7 Sep 2009 08:28:02 -0600
Many thanks Yvan,
For my purposes I found that I don't need to mess with Applescripts idiosyncrasies.
All I need it the times numbers.
I modified your handler and deal with only numbers.
set SleepTime to "21:01" set SleepTime to my decoupe(SleepTime, ":") as integer
on decoupe(t, d) -- t = time, d = delimiter set AppleScript's text item delimiters to d set {h, m} to text items of t set timeNumber to (((m as integer) * 60) + ((h as integer) * 60 * 60)) set AppleScript's text item delimiters to "" -- restore return timeNumber end decoupe
On Sep 2, 2009, at 10:31 AM, Yvan KOENIG wrote:
Bob Poland - Fort Collins, CO
|
_______________________________________________
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