Re: Another question on dates and times
Re: Another question on dates and times
- Subject: Re: Another question on dates and times
- From: Chris Page <email@hidden>
- Date: Tue, 04 Dec 2007 21:48:13 -0800
On Dec 4, 2007, at 9:26 PM, Chris Page wrote: You can't turn a list into a string unless all the items are strings. You need to convert the numbers to strings.
Elaboration/correction: You can explicitly turn a list into a string and it will attempt to convert the numbers to strings:
display dialog "Enter event date:" default answer TomorrowDate as string
works just fine and eliminates the error. The error you encountered is that “display dialog” can't convert the list to a string. I don't know why it can't, but it can't, so you have to do it yourself.
-- Chris Page The other, other AppleScript Chris
|
_______________________________________________
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