AppleScript: Our Friend. My (sometimes) Enemy. Why you should
learn it.
Angus McIntyre
angus at pobox.com
Fri Feb 21 05:09:01 PST 2003
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
More information about the OmniOutliner-Users
mailing list