iCal script using cal name?
iCal script using cal name?
- Subject: iCal script using cal name?
- From: "David A. Cox" <email@hidden>
- Date: Mon, 12 Jan 2004 10:34:35 -0800 (PST)
As part of a larger task, I am trying to turn all the "allday" events in
an iCal calendar to normal events, and I want to do this by referencing
the calendar's title, or possibly even the fact that it was updated just
seconds before this command. So far, I have only been able to do this by
referencing the number fo the calendar. Anyone know how to do this same
script, but using the title fo the calendar rather than its number?
tell application "iCal"
repeat with theEvent in events of calendar 1
if theEvent is allday event then
set allday event of theEvent to false
end if
end repeat
end tell
Thanks,
DAC
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.