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 > Developer > AppleScripting Omni Apps
FAQ Members List Calendar Search Today's Posts Mark Forums Read

AppleScript help needed for ow5 & oo3 Thread Tools Search this Thread Display Modes
I often save some text from websites, like articles or tutorials in a very organized OmniOutliner document, by creating a new row for title, then a new row for the text, for a code etc.

tell application "OmniWeb"
	tell application "System Events" to keystroke "c" using command down
end tell
tell application "OmniOutliner"
	tell application "System Events"
		keystroke return
		keystroke "v" using command down
	end tell
end tell
tell application "OmniWeb" to activate
It works pretty well for me, I can this way for example highlight the text and paste it in a new row in oo3. Then, I go back in oo3 to organize all my news titles rows and texts rows to have my well organized oo3 file, like for example, an all applescripts tutorials oo3 file I found on the web. ;-)

I know it is a very basic script, but maybe some of you can help me to make it more "expert like" or to make it more powerfull.

thank you.

Last edited by sangheeta; 2008-12-21 at 11:20 AM..
I might do something like this:

tell application "OmniWeb"
	tell application "System Events" to keystroke "c" using command down
	set pageTitle to name of front browser as text
end tell
set mySelection to the clipboard
tell application "OmniOutliner Professional"
	set myDoc to first document whose name contains "webclips"
	tell myDoc
		set myRow to make new row at end of rows
		set value of cell 2 of myRow to pageTitle as text
		set value of note cell of myRow to mySelection
		set note expanded of myRow to true
	end tell
end tell
Thank you Troyb for this script.:)
The omnioutliner section is interresting for me.
But the line "set myDoc to first document whose name contains "webclips"" make me to have an oo3 document named "webclips" opened.
Yes, sorry, that line is looking for an open OmniOutliner document that is named webclips. I did this instead of just asking OmniOutliner to activate since my desired document may not be the frontmost window. You can of course name webclips to anything you like if you were to do something like this.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie - Help Needed iTracy OmniFocus 1 for Mac 2 2012-11-18 07:57 AM
Pomodoro app and Omnifocus are a perfect couple! -help with applescript needed marekp OmniFocus Extras 20 2012-04-24 05:48 PM
Help needed kaligraph OmniDiskSweeper 1 2012-01-30 09:29 PM
AppleScript Help Needed - Delete Empty Rows lesbrown OmniOutliner 3 for Mac 4 2011-09-22 06:35 AM
HELP needed for beginner mhbheres OmniFocus 1 for Mac 4 2008-10-20 12:25 AM

All times are GMT -8. The time now is 08:52 PM.

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