• 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: dates as text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dates as text


  • Subject: Re: dates as text
  • From: Christopher Stone <email@hidden>
  • Date: Sat, 10 Jan 2004 14:42:47 -0600

At 12:06 -0800 01/10/2004, Peter Wait wrought:

> Just put the word 'date ' in front of the text instead of 'as date' after
> it.

This way:

if custom date field two of thisContact  "" then
set myDate to date custom date field two of thisContact
end if

Returns an AppleScript error "application can't get custom date field two"

Try this:

set myDate to date (custom date field two of thisContact)

Or you might possibly have to use a "get":

set myDate to date (get custom date field two of thisContact)


Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: dates as text (From: Peter Wait <email@hidden>)

  • Prev by Date: Re: Obtaining default Email application name
  • Next by Date: Re: Scripting QuarkXPress 5 in Classic mode
  • Previous by thread: Re: dates as text
  • Next by thread: iPhoto 4
  • Index(es):
    • Date
    • Thread