Sunday, April 18, 2010

Copy & Paste in Mac OS X Without Formatting

A while back I posted a link to a nice Windows tool called PureText that lets you copy and paste without all the formatting. Very useful but I have since moved to a Mac and it is not available on that platform. Today I found a solution and figured I would share.

Step 1 - Install Spark or some other application that lets you assign a global keyboard shortcut to run an AppleScript.

Step 2 - Create a new shortcut key that is assigned to the following AppleScript:


do shell script "sleep .5"
tell application "System Events"
set the clipboard to (the clipboard as text)
keystroke "v" using command down
end tell


It is a bit of a kludge and doesn't work everywhere by mostly gets the job done. Let me know if you have a better solution.