can OmniOutliner recognize URLs?
Michael Terry
formido at mac.com
Thu Aug 1 02:14:55 PDT 2002
On 7/30/02 10:39 PM, "John Oram" <john at oram.com> wrote:
> Is there any way to get OmniOutliner to launch a URL in a list, as
> OmniGraffle can in an object? If not, a URL or 'action' column type
> would be nice to have in the future.
Well, if you label a column "URL" you could use this script[1] from the
script menu. It's less than ideal, though. You have to have checkboxes
enabled whether you want them or not. If you want to launch a URL you check
off the row whose URL field has the URL you want to launch, and run the
script. Checking off the box is necessary because OmniOutliner doesn't seem
to provide for getting the selected row(s). This evening I wished upon a
star that I could have a pony for Christmas. But that doesn't concern us
right now. I also wished for OmniOutliner to very, very soon learn how to
tell me via AppleScript which row is selected, and secondarily, what text is
selected. If it could do these things, I predict the body of publicly
available OmniOutliner AppleScripts would nearly double to 7.
> Also, is there any way to toggle variable row heights off and on?
> (If I have an extremely long URL, the row can get pretty tall.)
On to your next question: No.[2]
> Thanks,
> John
[1] --------- Open URL Script -----------
tell application "OmniOutliner Beta"
set checkedRows to every row of document of window 1 whose state is
checked
set checkedRow to first Abstract object of checkedRows
set theURL to text of ((cells whose title of column of it is "URL") of
checkedRow) as Abstract object
set state of checkedRow to unchecked
end tell
tell application "Internet Explorer"
Activate
OpenURL theURL
end tell
------------------------------------------
Make sure you unwrap the lines.
[2] Some classic outliners had a fold command which would do that,
displaying just the first line of multi-line rows. If Omni is serious about
emulating the core features of the outline component of MORE, I expect that
feature is coming.
Mike
More information about the OmniOutliner-Users
mailing list