Re: Days and hours
Re: Days and hours
- Subject: Re: Days and hours
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 19 Oct 2005 17:23:28 -0400
On 10/19/05,
Christopher Nebel <
email@hidden> wrote:
Passing a constant to "choose from list" or any other scripting
addition that expects text, such as "display dialog", will result in
the four-character code for that constant.
Oh. I would have expected "as string" or "as text" to be tried first. OK, that explains a lot.
Thanks as always for the insight, Chris.
I have one other question in this general topic area: given that (date
"some date string") honors your current system preferences, what's the
easiest way to initialize a date object in a way that *doesn't* honor
them? Say I want to pass around uncompiled code as text and have
it work wherever my correspondents happen to be regardless of their
prefs. Is this the only way?
set myDate to current date
set year of myDate to 1968
set month of myDate to May
set day of myDate to 5
set time of myDate to (20 * 60 + 47) * 60
--
Mark J. Reed <
email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden