Copying Notes

Curtis Clifton curt.clifton at mac.com
Tue Dec 21 08:06:39 PST 2004


Andy,

On Dec 21, 2004, at 7:32 AM, bn423 at scn.org wrote:

> Is there a way to select all the notes at once and copy them .   I'm
> writing a paper with the notes
> being the text of the paper and I want  a clean copy of the paper with 
> out
> the outline?

I love the new scripting interface in OO3.  Here's an AppleScript that 
copies all notes in an OO document onto the clipboard.  I've only 
tested it with a small sample outline.  Please let me know whether it 
works for a large outline.

As usual, copy and paste the script into a new Script Editor document 
and save it as a script in Library/Application Support/OmniOutliner 
3/Scripts

Here's the script:

-- Copy all notes to clipboard
tell front document of application "OmniOutliner Professional"
	activate
	local allNotes, oldDelims
	set allNotes to note of every row
	set oldDelims to AppleScript's text item delimiters
	set AppleScript's text item delimiters to return
	set allNotes to allNotes as text
	set AppleScript's text item delimiters to oldDelims
	set the clipboard to allNotes
	display dialog "The text of all the notes in " & name & " is now on 
the clipboard."
end tell

Merry Christmas,

Curt

----------------------------------
Curtis Clifton, PhD Candidate
Dept. of Computer Science, Iowa State University
http://www.cs.iastate.edu/~cclifton




More information about the OmniOutliner-Users mailing list