• 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: Re(2): do shell script date with last month's date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re(2): do shell script date with last month's date


  • Subject: Re: Re(2): do shell script date with last month's date
  • From: "koenig.yvan" <email@hidden>
  • Date: Fri, 14 Feb 2014 15:09:24 +0100


Le 14/02/2014 à 14:46, JF <email@hidden> a écrit :

This does work yvan, but the result is:
Friday, 31 January 2014 13:45:09

when all I wanted was "January 2014"

Fri, 14 Feb 2014 14:35:03 +0100, koenig.yvan  wrote:

set fake to current date
set day of fake to 1
set fake to fake - (1 * days)
set myString to (month of fake as text) & space & year of fake


My guess is that you dropped an instruction.

When I run the script I get this log rerport :

tell current application
current date
--> date "vendredi 14 février 2014 15:08:43"
end tell

Résultat :

"January 2014"


Yvan KOENIG (VALLAURIS, France) vendredi 14 février 2014 15:09:18


 _______________________________________________
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: 
 >do shell script date with last month's date (From: JF <email@hidden>)
 >Re: do shell script date with last month's date (From: "koenig.yvan" <email@hidden>)
 >Re(2): do shell script date with last month's date (From: JF <email@hidden>)

  • Prev by Date: Re: Re(2): do shell script date with last month's date
  • Next by Date: Re: Re(2): do shell script date with last month's date
  • Previous by thread: Re(4): do shell script date with last month's date
  • Next by thread: Macro vs Script
  • Index(es):
    • Date
    • Thread