The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniOutliner > OmniOutliner 3 for Mac
FAQ Members List Calendar Today's Posts

 
Newbie needs Applescript help Thread Tools Search this Thread Display Modes
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!

Last edited by Zoolok; 2006-08-01 at 06:34 AM..
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie: Am I doing something wrong? Or Can Applescript help me? eepmatt OmniFocus 1 for Mac 7 2008-10-16 04:35 AM
another newbie question cjb10350 OmniFocus 1 for Mac 0 2007-11-18 06:41 AM


All times are GMT -8. The time now is 02:39 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.