• 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
iCal script using cal name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Mac Newbie - Enable Scripts in Safari
  • Next by Date: Re: iCal script using cal name?
  • Previous by thread: Re: Mac Newbie - Enable Scripts in Safari
  • Next by thread: Re: iCal script using cal name?
  • Index(es):
    • Date
    • Thread