Date problem
Date problem
- Subject: Date problem
- From: Brian Christmas <email@hidden>
- Date: Sun, 31 May 2015 18:00:44 +1000
G’day folks
I’ve struck an unusual problem.
The script...
property averageYear : "2015" set theList to "" set cd to (current date) repeat with x from 1 to 12 set cd to (current date) # This, if uncommented, makes correct list set theIntegerTallyMonth to x set month of cd to theIntegerTallyMonth set theNameInsert to ((my averageYear) & " " & (month of cd as integer) & " (" & (month of cd as text) & ") Averaged" as text) set theList to theList & theNameInsert & return end repeat theList
when run gives the list…
"2015 1 (January) Averaged 2015 3 (March) Averaged 2015 3 (March) Averaged 2015 5 (May) Averaged 2015 5 (May) Averaged 2015 7 (July) Averaged 2015 7 (July) Averaged 2015 8 (August) Averaged 2015 10 (October) Averaged 2015 10 (October) Averaged 2015 12 (December) Averaged 2015 12 (December) Averaged “
If I uncomment the indicated line, it gives…
"2015 1 (January) Averaged 2015 3 (March) Averaged 2015 3 (March) Averaged 2015 4 (April) Averaged 2015 5 (May) Averaged 2015 6 (June) Averaged 2015 7 (July) Averaged 2015 8 (August) Averaged 2015 9 (September) Averaged 2015 10 (October) Averaged 2015 11 (November) Averaged 2015 12 (December) Averaged “
It’s affecting my apps ‘averaged email totals by week day by month’ reports, where the snippet is not even in a repeat loop.
Is it fixable, please? Delays don’t work.
Regards
Santa |
_______________________________________________
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