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

Re: Date pickers


  • Subject: Re: Date pickers
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 09 Feb 2010 14:02:01 +1100
  • Thread-topic: Date pickers

On 9/2/10 1:48 PM, "Deivy Petrescu" <email@hidden> wrote:

> I want to use it both as an Applescript date and as a string date (say
> 02/08/10 or 08/02/10 for instance).

Right, that's the problem -- you'll have problem making it into an
AppleScript date. you'll have to parse the string, and then set the date by
its properties. The code I posted earlier gets the values more directly than
parsing a string.

> It is just to much to look for...   :(

After all those years of AS minimalism, it can come as a bit of a shock :-)
>
> But I am still having problems.
> Here is the piece of code that is giving me problems
>
> set zdate to (what_date's dateValue())
> set zdate to zdate's | description() |  -- description is an app keyword

You've put the pipes in the wrong place;

set zdate to zdate's |description|()

--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Date pickers (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: Date pickers
  • Next by Date: Re: Date pickers
  • Previous by thread: Re: Date pickers
  • Next by thread: Re: Date pickers
  • Index(es):
    • Date
    • Thread