Re: Date pickers
Re: Date pickers
- Subject: Re: Date pickers
- From: Shane Stanley <email@hidden>
- Date: Thu, 11 Mar 2010 09:12:07 +1100
- Thread-topic: Date pickers
On 11/3/10 2:40 AM, "Deivy Petrescu" <email@hidden> wrote:
> how do I get the weekday of a date
In case you didn't get there already:
-- get current calendar
set theCal to current application's NSCalendar's currentCalendar()
-- use the calendar to get the components from the date
set theComponents to theCal's components_fromDate_(current application's
NSWeekdayCalendarUnit, zdate)
log |weekday| of theComponents
> (I thought it was description())
If it's a property, you can leave off the trailing parens. I tend to put
them in so I can tell at a glance that it's a call, not a variable. There's
not a lot of formatting color in ASObjC code...
--
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