• 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
Create todo item in iCal with AS that runs script - how to?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Create todo item in iCal with AS that runs script - how to?
      • From: demski <email@hidden>
  • Prev by Date: Re: Choose file
  • Next by Date: Re: Setting iPhoto's Selection
  • Previous by thread: Re: Setting iPhoto's Selection
  • Next by thread: Re: Create todo item in iCal with AS that runs script - how to?
  • Index(es):
    • Date
    • Thread