AppleScript questions
James Spahr
james at spahr.org
Fri Aug 22 09:01:17 PDT 2003
On Friday, August 22, 2003, at 11:25 AM, Nicholas Riley wrote:
>
> - In the first case where the topic is empty, the topic doesn't appear
> until I manually move somewhere else in the outline.
>
tell application "OmniOutliner"
tell document 1
set theRow to the selected row
set the topic of theRow to "bar"
set the selected row to the first parent of theRow
set the selected row to theRow
end tell
end tell
(yea, a bit of a hack)
> - In the second case, I'm not able to create a row below the current
> row. I tried "make new row after theRow" but that didn't work; I got
> one of those completely useless Cocoa script error messages. The
> object specifier for theRow seems to contain the information I need,
> specifying what child # it is, but 'index of theRow' doesn't give me
> anything useful and I can't figure out another way to dissect it.
tell application "OmniOutliner"
tell document 1
set theRow to the selected row
set theParent to the first parent of theRow
set theChildren to the children of theParent
set newRow to make new row at the end of the children of theParent
set the topic of newRow to "bar"
move newRow to after theRow
end tell
end tell
>
> - The font of any script-set topic is Helvetica.
I'm not seeing this. my script set topics follow the style guidlines
for the outline. So I can not help you here.
HTH
James.
More information about the OmniOutliner-Users
mailing list