• 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 problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date problem


  • Subject: Re: Date problem
  • From: Yvan KOENIG <email@hidden>
  • Date: Sun, 31 May 2015 10:25:10 +0200

As I am lazy I would use this stripped version:


property averageYear : "2015"
set theList to ""
set cd to (current date)
set day of cd to 1
repeat with x from 1 to 12
set month of cd to x
set theNameInsert to my averageYear & " " & x & " (" & month of cd & ") Averaged"
set theList to theList & theNameInsert & return
end repeat
theList

or:

property averageYear : "2015"
set theList to ""
set cd to (current date)
set day of cd to 1
repeat with x from 1 to 12
set month of cd to x
set theList to theList & my averageYear & " " & x & " (" & month of cd & ") Averaged" & return
end repeat
theList


Yvan KOENIG (VALLAURIS, France) dimanche 31 mai 2015 10:24:12


 _______________________________________________
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: Date problem
      • From: Brian Christmas <email@hidden>
References: 
 >Date problem (From: Brian Christmas <email@hidden>)
 >Re: Date problem (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Date problem
  • Next by Date: Re: Date problem
  • Previous by thread: Re: Date problem
  • Next by thread: Re: Date problem
  • Index(es):
    • Date
    • Thread