View Single Post
Modified your script to store various small notes in a omniOutliner (even with growl feedback : )

HTML Code:
<code>


-- CREATES BOOKMARKS - USE IN CONJUNCTION WITH GotoBookMk.scpt

property pSection : "Uorganized"
property pVer : ".01"
property pTitle : pSection & tab & pVer


CreateBookMark()
on CreateBookMark()
	
	set my_sel to the clipboard
	set strMark to my_sel
	
	set myPath to "Macintosh HD:Users:Henrik:Documents:To Do.oo3:"
	
	tell application "Finder" to open myPath as alias
	
	tell application id "OOut"
		open myPath
		tell front document
			set refSeln to a reference to selected rows
			if (count of refSeln) < 1 then return
			set strID to id of first item of refSeln
			
			-- GET A NAME FOR THE BOOKMARK
			activate
			
			
			-- FIND/CREATE A BOOKMARKS SECTION
			set refBookmarks to a reference to (rows where its level = 1 and its topic = pSection)
			if (count of refBookmarks) < 1 then
				set rowBookMarks to make new row at beginning of rows with properties {topic:pSection}
			else
				set rowBookMarks to last item of refBookmarks
			end if
			
			-- ADD A BOOKMARK (STORE ID IN NOTE)
			make new row at end of children of rowBookMarks with properties {topic:strMark, note:strID}
		end tell
		delay 0.2
	end tell
	return true
end CreateBookMark

property growlAppName : "Dan’s Scripts"
property allNotifications : {"General", "Error"}
property enabledNotifications : {"General", "Error"}
property iconApplication : "OmniFocus.app"

set my_sel2 to the clipboard
set strMark to my_sel2

tell application "GrowlHelperApp"
	notify with name "General" title "OmniConfirm" application name growlAppName description my_sel2
end tell
</code>
set myPath to set myPath to "Macintosh HD:Users:Henrik:Documents:To Do.oo3:" specifies a particular document

It works in a way that you copy something, then you run the script and the script creates a line in the top of the OO document called "Unorganized" and pastes the clopboard as a child of that category
By placing the it in the top of the document I can still use your bookmark script

Now Im just looking to eliminate the cmd C part so the script will act on highlighted text. Something like

tell application "System Events"
keystroke "c" using command down