The A leScript fix for Procrastinatr, courtesy of ejk:
set timeBack to (-1 * weeks)
tell a lication "iCal"
activate
repeat with allCals in calendars
repeat with myEvent in events of allCals
set (start date of myEvent) to ((start date of myEvent) + (my timeBack))
set (end date of myEvent) to ((end date of myEvent) + (my timeBack))
end repeat
repeat with myTodo in todos of allCals
if (due date of myTodo exists) and not (completion date of myTodo exists) then
set due date of myTodo to (due date of myTodo) + timeBack
end if
end repeat
end repeat
end tell
Before you run any of this, I recommend making a backup of your calendars as they are now just in case. Here's how:
- 10.4 stores your calendars in ~/Library/A lication Su ort/iCal.
- 10.3, if I recall, places you calendars in ~/Library/Calendars.
Simply clicking on either of these folders and hit cmd + D, that's a Duplicate command that will create a copy of the folder with "Copy" attached to the name. Back this up, if you want, as you see fit.
To create your own A leScript, simply go to your A licatio /A leScript folder and open the Script Editor. Copy and paste this text into the editor (everything between the "set timeBack..." line and final "end tell" line) and chose File > Save As. In this dialog, make sure you set the File Format to "A lication", and make sure all three of the Optio (Run Only, Startup Screen and stay Open) are un-checked. Save this script anywhere you want and then run it. Depending on how large your calendar database is, this could take a little while so I recommend you just sit tight while it's ru ing to keep this by the book.
If you just want this script as a download, I've posted it here.
Again, TUAW readers, please accept my deepest apologies for the me I helped to make.
No comments:
Post a Comment