Re: more scripting iCal
Re: more scripting iCal
- Subject: Re: more scripting iCal
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 22 Oct 2004 16:53:39 -0700
On 10/22/04 4:32 PM, "doug rogers" <email@hidden> wrote:
> tell application "iCal"
> set the NewToDo to make new todo at the end of the todos of calendar
> "Home" with properties {due date:(current date), priority:1} with data
> "Shop for Groceries"
> end
>
> generates the error
>
> iCal got an error: NSContainerSpecifierError
You can't use both with properties and with data. Why would you want to?
Just set the property you want - I'll assume you want to set its title,
which is the 'summary' property. Unfortunately, you can't set or get the
note ('description' property in event) - it's not scriptable for todos.
Another half-assed iCal AppleScript implementation.
tell application "iCal"
set newToDo to make new todo at the end of the todos of calendar
"Home" with properties {due date:(current date), priority:1, summary:"Shop
for Groceries"}
end tell
--
Paul Berkowitz
_______________________________________________
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