• 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: Rép: date/Snow Leopard changed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rép: date/Snow Leopard changed


  • Subject: Re: Rép: date/Snow Leopard changed
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 2 Sep 2009 17:57:38 -0700

On Sep 2, 2009, at 5:48 PM, Tim Mansour wrote:

(example on Leopard, I assume same for SL)

set d to current date
--> date "Sunday 28 February 2010 12:00:00 am"
set day of d to 31
--> date "Wednesday 3 March 2010 12:00:00 am"
set month of d to 7
--> date "Saturday 3 July 2010 12:00:00 am"

A workaround is:

set d to current date
--> date "Sunday 28 February 2010 12:00:00 am"
set month of d to 1 -- because it has 31 days
set day of d to 31
set month of d to 7
--> date "Saturday 31 July 2010 12:00:00 am"

Why not

set d to (date "Sunday, February 28, 2010 12:00:00 AM")
set month of d to 7
set day of d to 31
d
--> date "Saturday 31 July 2010 12:00:00 am"

-- Michelle

--
"We have succeeded for 205 years in keeping the affairs of state separate from the uncompromising idealism of religious groups and we mustn't stop now. To retreat from that separation would violate the principles of conservatism and the values upon which the framers built this democratic republic." --Barry Goldwater


_______________________________________________
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
  • Follow-Ups:
    • Re: Rép: date/Snow Leopard changed
      • From: LuKreme <email@hidden>
    • Re: Rép: date/Snow Leopard changed
      • From: Tim Mansour <email@hidden>
References: 
 >Rép: date/Snow Leopard changed (From: Yvan KOENIG <email@hidden>)
 >Re: Rép: date/Snow Leopard changed (From: Christopher Nebel <email@hidden>)
 >Re: Rép: date/Snow Leopard changed (From: Tim Mansour <email@hidden>)

  • Prev by Date: Re: load file statement not finding files with Snow Leopard
  • Next by Date: Re: load file statement not finding files with Snow Leopard
  • Previous by thread: Re: Rép: date/Snow Leopard changed
  • Next by thread: Re: Rép: date/Snow Leopard changed
  • Index(es):
    • Date
    • Thread