I am trying to create a master outline (for a new syllabus I'll be teaching) which heads off to other outlines for the individual topics. These will be linked to in the master (is linked the right word? They will be aliases to the outlines, not embedded).
Anyway I have a really simple script that just says
tell application "OmniOutliner Professional"
set thename to "New Doc"
make new document with properties {name:thename}
end tell
What I really want to do is set "thename" to whatever has been selected, or to the default value if nothing is selected. I found a script which I hacked to give ...
tell application "OmniOutliner Professional"
tell application "System Events" to keystroke "c" using {command down}
delay 0.5
set thename to (the clipboard) as text
make new document with properties {name:thename}
end tell
but it doesn't work.
After this my wish list would include
... some sort of error trapping (if thename ="" then thename ="New Doc")
... an automatic link to the new document in the master outline
... And if I could find out how to drop the script onto the Toolbar ...
Anyone want to point me in the right direction? I have googled, searched the forum, clobbered the Applescript dictionary, but to no avail.
Thanks loads!
Anyway I have a really simple script that just says
tell application "OmniOutliner Professional"
set thename to "New Doc"
make new document with properties {name:thename}
end tell
What I really want to do is set "thename" to whatever has been selected, or to the default value if nothing is selected. I found a script which I hacked to give ...
tell application "OmniOutliner Professional"
tell application "System Events" to keystroke "c" using {command down}
delay 0.5
set thename to (the clipboard) as text
make new document with properties {name:thename}
end tell
but it doesn't work.
After this my wish list would include
... some sort of error trapping (if thename ="" then thename ="New Doc")
... an automatic link to the new document in the master outline
... And if I could find out how to drop the script onto the Toolbar ...
Anyone want to point me in the right direction? I have googled, searched the forum, clobbered the Applescript dictionary, but to no avail.
Thanks loads!
Last edited by Zoolok; 2006-08-01 at 06:34 AM..