Re: date/Snow Leopard changed
Re: date/Snow Leopard changed
- Subject: Re: date/Snow Leopard changed
- From: Robert Poland <email@hidden>
- Date: Wed, 2 Sep 2009 11:17:04 -0600
Thanks Yvan,
Finally got that script to work, now on to the next one.
On Sep 2, 2009, at 10:31 AM, Yvan KOENIG wrote:
Le 2 sept. 2009 à 18:10:00, Robert Poland a écrit : Yvan,
Since the times are stored in a file as times, is there a simple way to convert "6:01" to the number 3601?
set textTime to "6:01" set {h, m} to my decoupe(textTime, ":") set numTime to ((m as integer) + ((h as integer) * 60))
--=====
on decoupe(t, d) local l set AppleScript's text item delimiters to d set l to text items of t set AppleScript's text item delimiters to "" return l end decoupe
--=====
would return 361 (not 3601).
Yvan KOENIG (VALLAURIS, France) mercredi 2 septembre 2009 18:31:32
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