Skip navigation

Help with Automator to Clear Clipboard

3268 Views 6 Replies Latest reply: Dec 9, 2010 6:17 AM by aRKay RSS
aRKay Level 2 Level 2 (205 points)
Currently Being Moderated
Dec 8, 2010 5:07 AM
This posting is for Terence Devlin because his email address is not available. I really
appreciated your postings on how to create a Services option to send iPhotos to
Apple Mail and this got me started on using the Automator.

I have a very simple AppleScript that I need to use all the time to clear the clipboard
and I would like to have it show up under the Services menu using Automator.

The simple AppleScript is

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

For reasons I don't understand my OS X sometimes fails to clear the clipboard after
a paste action. You cannot add a new item until the old item is cleared

Apple used to have a Finder Clear Clipboard command but is became history.

Can this easy AppleScrip be converted to Automator format?
 24" iMac and 13" MacBook Pro both w/4GB , Mac OS X (10.6.4)
  • Terence Devlin Level 10 Level 10 (121,765 points)
    Currently Being Moderated
    Dec 8, 2010 6:48 AM (in response to aRKay)
    Well I'm no expert on Automator, but when you launch automator, opt to make a Service. Then in the Left Most Pane choose Utilities, and from there choose Run Apple Script. Should be straightforward from there.

    But why do you need to clear the clipboard? Surely copying something new to the cipboard overwrites what was there?

    Regards

    TD
    MacBook Pro 15 2.4 C2D / iMac 20" 2.66 C2D, Mac OS X (10.6), 4 gig RAM/ 4 gig RAM
  • Terence Devlin Level 10 Level 10 (121,765 points)
    Currently Being Moderated
    Dec 8, 2010 7:53 AM (in response to aRKay)
    The clipboard never clears +on paste+. Copying something new overwrites the clipboard contents. To remove something from the clipboard, copy something else.

    Regards

    TD
    MacBook Pro 15 2.4 C2D / iMac 20" 2.66 C2D, Mac OS X (10.6), 4 gig RAM/ 4 gig RAM

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.