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

 
Creating and jumping to bookmarks in OmniOutliner Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Jumping to a folder gcrump OmniFocus Extras 3 2008-11-10 11:41 AM
Jumping from Inbox to projects mpw OmniFocus 1 for Mac 8 2008-03-13 01:34 AM
Jumping tabs II daiyi666@yahoo.com OmniWeb Bug Reports 4 2007-02-12 06:00 AM
Jumping tabs? daiyi666@yahoo.com OmniWeb Bug Reports 0 2007-01-26 06:46 AM
Jumping to the top and end of a page synotic OmniWeb General 3 2006-11-03 08:17 AM


All times are GMT -8. The time now is 01:53 AM.


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