• 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: Setting a new event, with an alarm, in iCal, using a script with dialogs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting a new event, with an alarm, in iCal, using a script with dialogs


  • Subject: Re: Setting a new event, with an alarm, in iCal, using a script with dialogs
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 01 Dec 2007 20:48:17 -0800
  • Thread-topic: Setting a new event, with an alarm, in iCal, using a script with dialogs

Title: Re: Setting a new event, with an alarm, in iCal, using a script with dialogs
On 12/1/07 7:58 PM, "Clint Hoxie" <email@hidden> wrote:


tell application "iCal"
    
        -- etc
set eventStart to date (eventMonth & space & eventDay & space & eventYear & space & eventTime)
       -- etc

end tell

It seems there are still apps that don't know how to compile dates. Do it this way, when you're inside a 'tell app iCal' block:

   
tell me to set eventStart to date (eventMonth & space & eventDay & space & eventYear & space & eventTime)

Alternately, don't put any of the script in a tell iCal block until you actually have to make the event.

You'll then discover that you get another error when you try to make the alarm. For one thing, you've stuck it on another line without making it at all. And if you meant to include it as a property of the event, don't: you can't. It's not a property, it's a new element, which you have to make:

   
make new display alarm at end of display alarms of newevent with properties {trigger interval:eventAlarmOffset}




--
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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Setting a new event, with an alarm, in iCal, using a script with dialogs
      • From: Clint Hoxie <email@hidden>
References: 
 >Setting a new event, with an alarm, in iCal, using a script with dialogs (From: Clint Hoxie <email@hidden>)

  • Prev by Date: Setting a new event, with an alarm, in iCal, using a script with dialogs
  • Next by Date: Re: Setting a new event, with an alarm, in iCal, using a script with dialogs
  • Previous by thread: Setting a new event, with an alarm, in iCal, using a script with dialogs
  • Next by thread: Re: Setting a new event, with an alarm, in iCal, using a script with dialogs
  • Index(es):
    • Date
    • Thread