Re: AppleScript date in ISO-8601 ?
Re: AppleScript date in ISO-8601 ?
- Subject: Re: AppleScript date in ISO-8601 ?
- From: Christopher Stone <email@hidden>
- Date: Thu, 30 Apr 2015 21:22:05 -0500
On Apr 30, 2015, at 02:32, emile.a.schwarz <email@hidden> wrote:
merci Yvan, exactly what I wanted: do shell script "date +%F"
…
and also I wanted to know how people do that nowadays.
______________________________________________________________________
Hey Emile,
# Shell set dt1 to do shell script "date +%F" --> "2015-04-30"
# Satimage.osax set dt2 to strftime (current date) into "%F" --> "2015-04-30"
If I want a non-osax method I usually use something like what Barry posted:
set AppleScript's text item delimiters to "T" set dt3 to text item 1 of ((current date) as «class isot» as string) --> "2015-04-30"
-- Best Regards, 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