Scripting and date columns
Wayne Brissette
waynefb at earthlink.net
Thu Jun 19 11:50:01 PDT 2003
Michael Grant soft at bdanube.com on Thursday, June 19, 2003 stated:
>I'm finding that setting date values to cells programmatically via
>AppleScript corrupts my OmniOutliner documents. When I try to save, I get
>the alert:
>
>*** -[NSCFDate descriptionWithCalendarFormat:]: selector not recognized
>
>and the document doesn't save.
>
>The minimal script:
>
>tell application "OmniOutliner" to set the value of cell 3 <no break>
>of row 1 of document 1 to (current date)
>
>produces the error in a document with only a title and date column.
(current date) is not a string value. I wonder if that's causing your
problems.
You might try this:
set MyDate to (current date) as string
tell application "OmniOutliner" to set the value of cell 3 <no break>
of row 1 of document 1 to MyDate
See if that fixes the problem.
--
"We should consider every day lost in which we have not danced at least
once..."
- Frederich Nietzsche
Live DAT & Music Page: http://homepage.mac.com/wayneb/
Wayne's Music Calendar: http://ical.mac.com/wayneb/Music
PowerMail AppleScript Archives: http://homepage.mac.com/wayneb/powermail.html
Music Currently playing: The Police "Roxanne" : Message In A Box: The
Complete Recordings (Disc 1)
More information about the OmniOutliner-Users
mailing list