Re: AppleScript date
Re: AppleScript date
- Subject: Re: AppleScript date
- From: Philip Aker <email@hidden>
- Date: Wed, 28 Jul 2004 06:02:15 -0700
On Monday, Jul 26, 2004, at 03:21 America/Vancouver, Joe Mac wrote:
but when I try and turn the contents of the text field into a date, I
get errors. I have tried different as text, as date, as string after
the code and nothing seems to work. Here is part what I have in my
script that doesn't work.
on clicked theObject
tell window "main"
1. set theDay to contents of text field "date"
2. set theDay2 to date (text returned of theDay)
Try this:
1. set tdate to content of text field "m_date"
2. set ddate to (AppleScript's date tdate)
#1. Although it's probably not necessary in this case, note that
"content" is singular.
#2. Making sure to bind 'date' to AppleScript (rather than something a
Studio app thinks it owns).
HTH,
Philip Aker
http://www.aker.ca
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.