• 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 and Applescript (beginner)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iCal and Applescript (beginner)


  • Subject: Re: iCal and Applescript (beginner)
  • From: pete boardman <email@hidden>
  • Date: Sun, 2 Oct 2005 10:13:51 +0100


On 2 Oct 2005, at 09:58, Bernard Bernu wrote:
I succeeded to get events from calandars but for instance not to make new ones.

I tried that :
tell application "iCal"
set thecal to first calendar whose title is "EnAcT-Val"
set eventList to every event of thecal
set new_event to make new event at thecal with properties {start date:date "lundi 3 octobre 2005 9:00:00", end date:date "lundi 3 octobre 2005 12:00:00", summary:"essai"}
end tell

Try something like this

tell application "iCal"
set thecal to first calendar whose title is "EnAcT-Val"
set newEvent to make new event at end of events of thecal
set properties of newEvent to {start date:(current date), end date:(current date), summary:"essai"}
end tell


(I've changed the dates to something simpler and non-French :-))

Pete
_______________________________________________
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


References: 
 >iCal and Applescript (beginner) (From: Bernard Bernu <email@hidden>)

  • Prev by Date: scripting Apple Mail.app
  • Next by Date: Re: iCal and Applescript (beginner)
  • Previous by thread: iCal and Applescript (beginner)
  • Next by thread: Re: iCal and Applescript (beginner)
  • Index(es):
    • Date
    • Thread