Re: [NTLK] applescript/CO help

From: Laurent Daudelin (laurent.daudelin_at_verizon.net)
Date: Sat Dec 14 2002 - 14:37:25 EST


on 14/12/02 14:06, Tom McDougal at tmcdougal_at_newted.org wrote:

> I need a jumpstart. Can someone who has Claris Organizer show me
> Applescript code that would
> 1) create a new appointment in Claris Organizer, with text "bogus appt"
> and date "12/31/02" and time "16:00"
> 2) change the date to 12/30
>
> I tried this:
> tell application "Claris Organizer 2.0"
> set appt to (create appointment with date "12/31/02")
> end tell
>
> but that just creates an appointment today (not 12/31)
>
> I tried adding this:
> get appDate appt
>
> which gave me the Execution Error
> "Can't get appDate of {objClass:<<class SAPP>>,
> objNumber:6, objInstance:-1}"
>
> Clearly there is something fundamental I am missing here. Maybe all I need
> is help deciphering that error message.

Did you check the AppleScript dictionary for Claris Organizer? Maybe there
isn't such object, 'appDate'?

-Laurent.

-- 
============================================================================
Laurent Daudelin   AIM/iChat: LaurentDaudelin    <http://nemesys.dyndns.org>
Logiciels Nemesys Software               mailto:laurent.daudelin_at_verizon.net

flowchart n.: [techspeak] An archaic form of visual control-flow specification employing arrows and 'speech balloons' of various shapes. Hackers never use flowcharts, consider them extremely silly, and associate them with COBOL programmers, card wallopers, and other lower forms of life. This attitude follows from the observations that flowcharts (at least from a hacker's point of view) are no easier to read than code, are less precise, and tend to fall out of sync with the code (so that they either obfuscate it rather than explaining it, or require extra maintenance effort that doesn't improve the code). See also PDL, sense 1.

-- This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries List FAQ/Etiquette/Terms: http://www.newtontalk.net/faq.html Official Newton FAQ: http://www.chuma.org/newton/faq/



This archive was generated by hypermail 2.1.2 : Wed Jan 01 2003 - 10:02:26 EST