You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to Clear the Clipboard - A Finder Annoyance

Back in the old days the Macintosh Finder had a useful option to Clear the Clipboard that was useful and used. This option was dropped some time ago but there is still a need even with the new Lion 10.7.


I do a lot of copy and pasting from Safari and other apps to Apple's Mail and one of the annoying things in the 10.7 Finder is either the copy or paste command sometimes does not clear the clipboard. Then next time you try to copy something the previous item copied is pasted. This clipboard constipation is when the old Finder Clear Clipboard menu button would be handy.


I don't see Apple giving us back the Clear Clipboard in the Finder; however, I have a hold over Automator script from Snow Leopard 10.6 that works just as well in 10.7. All I have to do is pull down the File/Services Menu a select the option to Clear Clipboard. I can then copy the new item to the clipboard.


http://imageshack.us/photo/my-images/705/clearclipboard2.png/


If you have experienced the same clipboard constipation and are into AppleScripts and Automator the script is


http://imageshack.us/photo/my-images/41/clearclipboard.png/



on run {input, parameters}



tell application "System Events" to set the clipboard to ""


return input

end run


Save the scrip and drop it in your User/Library/Services folder and like magic the Clear Clipboard option will be under your File/Services menu.


What I would like to see a Clear Clipboard tool added to the Mail toolbox; however, I can live with the Services/Clear Clipboard.


I hope this tip is useful.

Posted on Aug 25, 2011 2:39 PM

Reply
20 replies

Aug 25, 2011 5:23 PM in response to aRKay

Better would be to save this as an AS app:


tell application "System Events" to set the clipboard to ""


Put it on your Dock and run it to clear the clipboard. Additionally, create a shortcut for the Finder's Show Clipboard option in Keyboard->Keyboard Shortcut prefPane. I use CMD+B to display its contents.

Aug 26, 2011 11:09 AM in response to baltwo

Disregard my comment about the AppleScript Editor not letting me type or paste anythhing. I had a bad boot. I quit and restarted the editor and the tip worked great. I now have Clear Clipboard on the dock that can be used the next time the clipboard need to be cleared.


Thanks... I now have two ways to clear the clipbard

Aug 26, 2011 11:32 AM in response to Marc Wilson

> You do realize that simply copying a new item displaces

> the old contents of the clipboard, right?


Yes, that is the way the Finder is designed to work. However, for some reason it does not always work correct. When a new COPY fails to clear the clipboard is when I need to use the Services/Clear Clipboard or the receently added Clear Clipbard on the dock.


I find it hard to understand that I am the only person with this isseu.

Mar 22, 2014 9:08 AM in response to aRKay

Wouldn't that still be a string on the clipboard, even it it is an empty string? Then many applications would still let you paste that empty string (Paste menu item would be enabled.)


tell application "System Events" to set the clipboard to null


After that, Finder>Edit>Show clipboard pronounces the contents of the clipboard as "unknown". IOW, no mimedata and unknown mimetype.

How to Clear the Clipboard - A Finder Annoyance

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.