create duplicate event in iCal -- or repeating event every 3 hours
create duplicate event in iCal -- or repeating event every 3 hours
- Subject: create duplicate event in iCal -- or repeating event every 3 hours
- From: "Jackson Harvell" <email@hidden>
- Date: Fri, 24 Oct 2008 11:05:55 -0400
Hello,
Forgive me I'm afraid this is a very basic question.
I am trying to create a script which will create an event in ical with
a sound alarm, and then repeat the event 3 hours for a total of 3
times.
when i use this script, ical creates the event and alarm, but instead
of duplicating the event, it moves it to the time of the 2nd repeat.
____________
tell application "iCal"
tell calendar "myCal"
set theCurrentDate to current date
set theEvent to make new event at end with properties
{description:"reminder", start date:theCurrentDate, end
date:theCurrentDate + 15 * minutes}
tell theEvent
make new sound alarm at end with properties {trigger interval:0}
end tell
duplicate theEvent with properties {start date:theCurrentDate + 3 * hours}
end tell
end tell
___________
I'm sure its my logic, but i'd appreciate any tips so i can get this
working. i want to run a script and have it create 3 events on my
calendar, one at the current time and repeating every 3 hours.
TIA for any help.
-jackson
_______________________________________________
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