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 > OmniFocus > OmniFocus 1 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Copy and paste without color and underline Thread Tools Search this Thread Display Modes
When I select text from an OF item, copy it, and paste it into, say TextEdit, it pastes fine. But if I copy several items together, copy and paste, the text shows up as a hyperlink underlined and in blue.

Is there some way to turn that off? I never need to paste anything as a link, I'd like to be able to copy several items and paste them as plain text. How can I do this?
 
There's no way to turn it off, and you're actually doing two different things.

In the first case, you undoubtedly selected only the text of the action, not the entire row. When you copy and paste, you get exactly what you expect.

In the second case, to do the selection, you are actually selecting multiple rows in their entirety, and when you copy and paste an entire row, OmniFocus puts a link to the row in the clipboard, with the display name of the link being the text of the action. If you copy and paste multiple rows, you get a bunch of links, as you discovered.

If you want to copy just the text of multiple rows, you could use an Applescript like the one included here.

Code:
tell application "OmniFocus"
	tell front document
		tell (first document window whose index is 1)
			set theSelectedItems to selected trees of content
			set indx to count items of theSelectedItems
			if indx is 0 then
				display dialog "Please select one or more rows and try again"
				return
			end if
			
			set clipboardText to ""
			repeat while indx > 0
				set selectedItem to value of item indx of theSelectedItems
				set clipboardText to name of selectedItem & return & clipboardText
				set indx to indx - 1
			end repeat
			set the clipboard to clipboardText
		end tell
	end tell
end tell
 
You can also select 'Edit>Paste and Match Style' in TextEdit rather than just pasting the formatted clipboard contents with links.
 
Thanks, but I tried that ... and it didn't work for me.
 
You can paste into a plain text window to get what you're after. In TextEdit, you can switch your window to plain text with Format->Make Plain Text (Shift-Command-T).

You could also always paste into something which only understands plain text, like Terminal. Hmm… Come to think of it, speaking of Terminal… You can also use this Terminal command to convert the current pasteboard to plain text:

Code:
pbpaste | pbcopy
After running that, you can paste into a rich text target without getting rich text from the pasteboard. For more convenient access you could put that into a shell script and place it on your dock (or make an Automator script or AppleScript to run those commands) or something.

(But I typically use a plain text TextEdit window to accomplish the same end.)
 
Exellent. The Format->Make Plain Text (Shift-Command-T) trick is just what I'm looking for. Strangely, invoking Alt-T and trying to alter the format, didn't work.

Thanks so much.

/rb
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Underline Color? jfdonohoe OmniGraffle General 8 2012-03-28 06:26 AM
cut/copy/paste regression analyticalbiochemist OmniFocus for iPhone 4 2011-03-13 07:32 PM
Can't copy and paste! UncleB OmniWeb General 0 2009-08-26 06:40 AM
Color changes with copy/paste, saves ajrichardson OmniGraffle General 1 2008-08-29 12:09 AM
Copy & paste action pvonk OmniFocus 1 for Mac 7 2007-10-26 10:01 PM


All times are GMT -8. The time now is 02:44 AM.


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