• 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: Sun, 6 Sep 2009 09:44:08 -0600

Axel,

The best answer to your questions is this script was created in January of 2004.

With all the current knowledge I almost have I think I'll try rewriting it.


On Sep 6, 2009, at 9:27 AM, Axel Luttgens wrote:

Le 2 sept. 09 à 17:11, Robert Poland a écrit :

Hi,

Going through my scripts in Snow Leopard I ran into one that is being stubborn;

set WakeUpTime to "6:01"
[...]
set nowTime to (current date)
set wakeTime to date (date string of nowTime & ":" & WakeUpTime) -- NOTE use of ":"
[...]

Hello Robert,

Tried here under 10.5.8, and the box indeed didn't complain; it even yielded a somewhat consistent result.
I thus woke up my 7.6.1 system, with AppleScript 1.1; and yes, it didn't choke too.


But does this prove that SLeopard does things wrong?
After all, one is building such a string
dimanche 6 septembre 2009:6:01
and then ask to parse that string as a valid date representation; but, at the very least, it contains a very strange mix of time units.
Looking back at the ASU for 1.3.7, the numerous examples provided for textual date representation never show such a combination.


So, the question that first comes to the mind is: why didn't you make use of " " instead of ":" in the above concatenation? Wouldn't it have been more kosher?

The second question being thus: what gives
	date (date string of nowTime & " " & WakeUpTime)
under SLeopard?

Axel

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


This email sent to email@hidden


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: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: date/Snow Leopard changed
  • Next by Date: Re: date/Snow Leopard changed
  • Previous by thread: Re: date/Snow Leopard changed
  • Next by thread: Re: date/Snow Leopard changed
  • Index(es):
    • Date
    • Thread