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

Re: Create todo item in iCal with AS that runs script - how to?


  • Subject: Re: Create todo item in iCal with AS that runs script - how to?
  • From: demski <email@hidden>
  • Date: Fri, 3 Mar 2006 10:32:55 +0100


gruss, demski

Die Anderen · digitale mediendienstleistungen
Bellealliancestraße 58 b  ·  20259 Hamburg

fon: 040 41 26 61 81
fax: 040 41 26 61 83
email@hidden

Deutsche Handelsvertretung der Bogtrykkeri Rosendahls / Esbjerg


Am 02.03.2006 um 15:07 schrieb Jens Jacobsen:

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

I think this should be:
set newTodo to make new todo at end of todos of mycal
after that You could take the rest out of the following tell block into a 'with properties {blah...}



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 (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40unter-anderem.com


This email sent to email@hidden


_______________________________________________ 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: 
 >Create todo item in iCal with AS that runs script - how to? (From: Jens Jacobsen <email@hidden>)

  • Prev by Date: Re: AppleScripting Security in PDFs
  • Next by Date: Re: Osaxen and Intel MBP's or iMacs
  • Previous by thread: Create todo item in iCal with AS that runs script - how to?
  • Next by thread: Re: Applescript-users Digest, Vol 3, Issue 122
  • Index(es):
    • Date
    • Thread