• 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
Re: iCal alarm scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iCal alarm scripts


  • Subject: Re: iCal alarm scripts
  • From: Josh Tishhouse <email@hidden>
  • Date: Sun, 10 Jan 2010 23:11:17 -0500

So, there's no real way to "Automagically" get the data from the iCal event that launched your script, but here's how I do it:

set myCalendar to "calendar name"
tell application "iCal"
	activate
	set theEvent to the last event of calendar myCalendar
	set theDescription to description of theEvent
	set theDuration to (end date of theEvent) - (start date of theEvent)
	set theTitle to name of theEvent
	set theAttendee to display name of (first attendee of theEvent)

And so on.

Hope this helps,

-Josh

Joshua Tishhouse: Systems Administrator at The University of Michigan LSA ISS
contact | email@hidden - 734-945-6141 | iChat/AIM - email@hidden


On Jan 10, 2010, at 5:20 PM, Bruce Horrocks wrote:

> I'm really struggling trying to find any documentation re what a script can expect when called as a result of an alarm event by iCal.
>
> So far, all I've managed to discover is that, according to 'name of (current application)', my test script is being called by 'iCal Helper' (IH). Unfortunately IH does not appear to have a dictionary.
>
> Is it possible for an invoked script to find out the name of the calendar entry that triggered it? I'd like to get hold of the title if at all possible.
>
> Thanks in advance.
> --
> Bruce Horrocks
> Surrey
> England
> (bruce at scorecrow dot com)
> __

 _______________________________________________
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

  • Follow-Ups:
    • Re: iCal alarm scripts
      • From: Paul Berkowitz <email@hidden>
References: 
 >iCal alarm scripts (From: Bruce Horrocks <email@hidden>)

  • Prev by Date: Re: Snow Leopard osax security and 'run script' with parameters
  • Next by Date: Re: iCal alarm scripts
  • Previous by thread: iCal alarm scripts
  • Next by thread: Re: iCal alarm scripts
  • Index(es):
    • Date
    • Thread