Re: ical todo notes
Re: ical todo notes
- Subject: Re: ical todo notes
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 24 Nov 2003 14:31:14 -0800
Yup. And if you want to change it after the fact, you can't even access it:
get sound alarm 1 of newEvent
--> <<undefined>>
That's the method that usually works when all else fails, but it doesn't
work here either.
set ss to every sound alarm of newEvent
--> {application "iCal"}
There's obviously not much you can do with a stupid list item like that.
set ss to every sound alarm of e
trigger interval of (item 1 of ss)
-->iCal got an error: NSCannotCreateScriptCommandError
What crap. How can they release stuff like this? They were supposed to be
sending iApps to someone from the AppleScript team for checking
scriptability. It does not look as if they did that. And 'attendee' is much
worse again.
--
Paul Berkowitz
>
From: "Dr. Max Bonilla" <email@hidden>
>
Date: Mon, 24 Nov 2003 16:43:58 -0500
>
To: AppleScript Users <email@hidden>
>
Subject: Re: ical todo notes
>
>
The variable alarmTrigger below set an alarm 5 minutes prior to the event,
>
not 15. Does that happen to you?
>
>
Max
>
>
On 11/24/03 3:26 PM, "Paul Berkowitz" <email@hidden> wrote:
>
>
> No. alarms are not properties, they're elements. You have to make them after
>
> the event exists:
>
>
>
> set StartDate to "11/24/2003 9:00 AM"
>
> set enddate to "11/24/2003 10:00 AM"
>
> set alarmTrigger to "-15"
>
> set soundName to "Sosumi"
>
>
>
>
>
> tell application "iCal"
>
> set newEvent to make new event at end of calendar 3 with properties
>
> {summary:"hello", start date:StartDate, end date:enddate}
>
> tell newEvent
>
> make new sound alarm at end of sound alarms with properties {trigger
>
> interval:alarmTrigger, sound name:soundName}
>
> end tell
>
> end tell
>
>
>
> That works fine.
>
>
>
> Unfortunately, there's no 'email' property of 'mail alarm'. I've figured out
>
> that the mail alarm always gets made for the email address which is at the
>
> top of the list of email addresses for your 'My Card' in Address Book. That
>
> is always the first Work email there. So you need to change that if it's not
>
> the email address you want.
>
>
>
> I've discovered the worst cesspool in iCal: it's 'attendees'. So are so many
>
> bugs, and they're so bad, it's almost unusable. More later.
>
_______________________________________________
>
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.
_______________________________________________
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.