• 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: date/Snow Leopard changed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >date/Snow Leopard changed (From: Robert Poland <email@hidden>)
 >Re: date/Snow Leopard changed (From: Yvan KOENIG <email@hidden>)
 >Re: date/Snow Leopard changed (From: Robert Poland <email@hidden>)
 >Re: date/Snow Leopard changed (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: date/Snow Leopard changed
  • Next by Date: Re: new (I think) time question
  • Previous by thread: Re: date/Snow Leopard changed
  • Next by thread: Revisited: date/Snow Leopard changed
  • Index(es):
    • Date
    • Thread