• 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: The latest AS date and AS Editor bugs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The latest AS date and AS Editor bugs


  • Subject: Re: The latest AS date and AS Editor bugs
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 12 Jun 2013 09:17:13 +1000

On 11/06/2013, at 11:00 PM, Nigel Garvey <email@hidden> wrote:

Expect a flood of posts from scripters wanting to know how to manipulate
their users' Medium time string settings.  ;)

That will make them even less happy:

set ASDate to current date
set day of ASDate to 1
set month of ASDate to 7
set day of ASDate to 12
set time of ASDate to 60 * 60 * 15
-- make a date six months later
set sixMonths to 184 * days
set newASDate to ASDate + sixMonths
log ASDate's hours
log newASDate's hours
{ASDate, newASDate}

Here that gives:

{date "Friday, 12 July 2013 15:00:00 +1000", date "Sunday, 12 January 2014 15:00:00 +1100"}

Seems to me that second one should be either "16:00:00 +1100" or "15:00:00 +1000".

But of course I now use non-string methods to set them.

For which a single command would save an awful lot of mucking around. 

-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <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: 
 >Re: The latest AS date and AS Editor bugs (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: Inhibiting Sleep
  • Next by Date: Re: Inhibiting Sleep
  • Previous by thread: Re: The latest AS date and AS Editor bugs
  • Next by thread: Re: The latest AS date and AS Editor bugs
  • Index(es):
    • Date
    • Thread