Create todo item in iCal with AS that runs script - how to?
Create todo item in iCal with AS that runs script - how to?
- Subject: Create todo item in iCal with AS that runs script - how to?
- From: Jens Jacobsen <email@hidden>
- Date: Thu, 02 Mar 2006 15:07:30 +0100
Dear List,
I am trying to create an todo item in iCal that runs a script. The todo is
created, but nothing happens. My code is:
set newTodo to make new todo at end of myCal
tell newTodo
set myDate to (current date) + (1 * minutes)
set due date to myDate
set summary to myEvent
set myPath to ((((path to desktop) as string) & "tst.scpt" as POSIX
file))
try
make new open file alarm at end of open file alarms with
properties {trigger interval:0, filepath:myPath, trigger date:myDate}
end try
end tell
(AFAIK, it is not possible to script the option "run script" which is
accessible when setting the todo manually, but "open file" should also
work.)
So, what is wrong with my script? Any hint is appreciated.
jaco
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden