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

Re: NSDate


  • Subject: Re: NSDate
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 31 Aug 2010 21:30:47 +1000
  • Thread-topic: NSDate

On 31/8/10 7:25 PM, "Philip Aker" <email@hidden> wrote:

> I customize my date format in System Preferences to look like ISO. There are
> problems in AppleScript if I don't use that format to concoct a date. i.e. I'm
> pretty much limited to:
>
> set dstr to "2010-08-31"
> date dstr
>
> But that doesn't bug me because there's a lot of benefit to using an
> international standard for a date format.

But that's not the ASObjC problem. Take this:

 set x to date string of (current date)
 set y to date x
 y as text

It works fine in AS, but in ASObjC you get:

 Can¹t make «script» into type text.

The expression "date <some string>" just isn't returning a date.

Similarly with POSIX path:

   set x to POSIX file "/"
   x as text

Results in:

  Can¹t make «script» into type text.


--
Shane Stanley <email@hidden>



 _______________________________________________
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

  • Follow-Ups:
    • Re: NSDate
      • From: Philip Aker <email@hidden>
References: 
 >Re: NSDate (From: Philip Aker <email@hidden>)

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