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

Mar 22, 2014 3:32 PM in response to aRKay

You're right, I should have tried it first.


You're wrong, it works as I discussed. After >echo "" | pbcopy , Finder>Edit>ShowClipboard says there is 'text' on the clipboard, and an application I am writing has Paste enabled, and if you choose it, it pastes empty text. Maybe my app should not paste empty text, but my point is, the OS tells the app there is mimedata of mimetype 'text' on the clipboard.


Of course if another application doesn't handle mimetype text, then having empty text on the clipboard is the same as having nothing on the clipboard, to that application. But there is a subtle difference, at least to programmers.

Mar 22, 2014 3:43 PM in response to bootchk

My main concern is having a clipboard emtpy of any passwords or sensitive data I may have copied to it last. What you wrote is mostly over my head, but are youi saying there is effectively no recoverable information in the clipboard after running that command or not? I am seeing "clipboard contents: text."

Mar 23, 2014 5:17 AM in response to WZZZ

Oh, we have different concerns. I am mostly concerned about when Paste is enabled.


Your method WOULD effectively eliminate sensitive information from the clipboard.


But can you even Copy a password (when it is displayed as *** in a password field)? My guess is the OS would not put the password on the clipboard, just the '***'. Which is not the same as the password itself. If users save their passwords in 'plain text' in a document so they can copy and paste them into password fields, then yes, I suppose the password could be on the clipboard. But I think most people recommend you not keep your passwords in plain text on your computer. Only written in pencil on your monitor.

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.