AppleScript: Our Friend. My (sometimes) Enemy. Why you should learn it.

Michael Terry formido at mac.com
Thu Feb 20 20:33:02 PST 2003


On 2/20/03 4:56 PM, "Angus McIntyre" <angus at pobox.com> wrote:

> And now, to bring this post back on topic, can anyone tell me how to
> use the 'indent' command in OmniOutliner's Applescript. I just get:
> 
> NSReceiversCantHandleScriptError
> 
> when I try something like:
> 
> tell first document of application "OmniOutliner"
>  set theRow to make new row at end of rows
>  indent (cell 1) of theRow
> end
> 
> or
> NSInternalScriptError
> 
> if I try the above with:
> 
> indent theRow
> 
> What should I be passing to 'indent' to get the proper result?

tell application "OmniOutliner" to tell front document to tell second row
    indent
end tell

tell application "OmniOutliner"
    outdent second row of front document
end tell

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.

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/archive/omnioutliner-users/attachments/20030220/06e04c99/attachment.html


More information about the OmniOutliner-Users mailing list