• 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: Another question on dates and times
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Another question on dates and times (From: Clint Hoxie <email@hidden>)
 >Re: Another question on dates and times (From: Chris Page <email@hidden>)

  • Prev by Date: Re: Another question on dates and times
  • Next by Date: Two mail.app applescript bugs
  • Previous by thread: Re: Another question on dates and times
  • Next by thread: Re: Another question on dates and times
  • Index(es):
    • Date
    • Thread