• 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 syntax not working on 10.10.5?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date syntax not working on 10.10.5?


  • Subject: Re: date syntax not working on 10.10.5?
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 19 Aug 2015 18:06:13 +1000

On 19 Aug 2015, at 5:41 pm, Christopher Stone <email@hidden> wrote:

on makeDateStr:myDateFormat withFixedTimeStr:myTimeStr
  set theNSDateFormatter to current application's NSDateFormatter's alloc()'s init()
  theNSDateFormatter's setDateFormat:myDateFormat
  theNSDateFormatter's setTimeZone:(current application's NSTimeZone's timeZoneForSecondsFromGMT:0)
  return ((theNSDateFormatter's stringFromDate:(current application's NSDate's |date|())) as text) & (space & myTimeStr)
end makeDateStr:withFixedTimeStr:

I don't think you want to change the time zone in there.

I do have to admit that long ago when I first started fooling with dates in AppleScript I thought they were nuts.

Well that much hasn't changed; they still are.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

References: 
 >date syntax not working on 10.10.5? (From: Michael Grant <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Christopher Stone <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Michael Grant <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Shane Stanley <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Michael Grant <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: date syntax not working on 10.10.5?
  • Next by Date: Re: How do we Convert PICT to JPEG
  • Previous by thread: Re: date syntax not working on 10.10.5?
  • Next by thread: Re: date syntax not working on 10.10.5?
  • Index(es):
    • Date
    • Thread