• 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: more scripting iCal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: more scripting iCal
      • From: David Glass <email@hidden>
References: 
 >more scripting iCal (From: doug rogers <email@hidden>)

  • Prev by Date: Excel Applescript Examples
  • Next by Date: Add app to Dock
  • Previous by thread: more scripting iCal
  • Next by thread: Re: more scripting iCal
  • Index(es):
    • Date
    • Thread