AppleScript: Our Friend. My (sometimes) Enemy. Why you should learn it.
Brian C.
dvorak at omnigroup.com
Mon Feb 24 15:01:01 PST 2003
Angus-
This is a known issue. I'll check with steve and see what the prognosis
is for when it'll be fixed. More info soon.
Sincerely,
Brian C.
Support Manager
Omni Group
On Friday, February 21, 2003, at 05:08 AM, Angus McIntyre wrote:
> At 20:32 -0800 20.02.2003, Michael Terry wrote:
>> On 2/20/03 4:56 PM, "Angus McIntyre" <angus at pobox.com> wrote:
>>> ... to bring this post back on topic, can anyone tell me how to
>>> use the 'indent' command in OmniOutliner's Applescript.
>
> [ ... snip ... ]
>
>> tell first document of application "OmniOutliner"
>> set theRow to make new row at end of rows
>> indent result
>> end tell
>>
>> These examples should get you started.
>
> Thanks for that. I now suspect that I may have hit a bug in OO. Try
> the following:
>
> 1. Make a new document in OO.
> 2. Run the following script.
>
> tell first document of application "OmniOutliner"
> set theRow to make new row at end of rows
> indent theRow
> set value of cell 2 of theRow to "hi there"
> end tell
>
> I get an error at the 'set value' instruction.
>
> 3. Now switch the order of the 'set value' and 'indent'
> instructions in the script. This time, the error occurs
> at the 'indent'.
> 4. Now comment out the 'indent': the script runs fine.
> 5. Uncomment the 'indent' and comment out the 'set'. Again,
> the script runs fine.
>
> Unless I'm being more than usually bone-headed, something is not right
> here. This is on OO 2.2.1 beta - I haven't tried on the release
> version.
>
> Angus
> --
> angus at pobox.com http://pobox.com/~angus
> _______________________________________________
> OmniOutliner-Users mailing list
> OmniOutliner-Users at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/omnioutliner-users
More information about the OmniOutliner-Users
mailing list