• 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: Bruce Horrocks <email@hidden>
  • Date: Wed, 13 Jan 2010 04:52:12 +0000

On 12/01/2010 04:44, email@hidden wrote:
Or, you could make a new copy of the script for each event that might
call it.  So if the event Wife's birthday calls the script
WifesBirthday, it's much easier to figure out what event called the
script.

Thanks Ed, it looks as though this is going to be the only option. I didn't want to do that in order to make things a bit more end-user friendly. (I wonder if an AppleScript can also be a stationery pad?) :-)


A bit more investigation into iCal shows that Apple didn't do much of a job in testing its AppleScript. For example, create a new calendar called test and create a single event with a message alarm. Then run:

tell application "iCal"
  set myCal to calendar "test"
  get summary of events of myCal
    --> {"Test event"}
  get trigger date of display alarms of events of myCal
    --> {{missing value}}
end tell

The final nail in the coffin is that there isn't a type for "run applescript alarm" so they can't be selected anyway.

(All the above on Snow Leopard)

--
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
References: 
 >Re: iCal alarm scripts (From: "Nigel Garvey" <email@hidden>)
 >Re: iCal alarm scripts (From: Bruce Horrocks <email@hidden>)
 >Re: iCal alarm scripts (From: "email@hidden" <email@hidden>)

  • Prev by Date: trigger a sync in itunes to apple tv
  • Next by Date: Preview.app scriptable
  • Previous by thread: Re: iCal alarm scripts
  • Next by thread: Re: iCal alarm scripts
  • Index(es):
    • Date
    • Thread