• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting clipboard state
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting clipboard state


  • Subject: Re: Detecting clipboard state
  • From: Steve Thompson <email@hidden>
  • Date: Sun, 24 Oct 2010 20:45:35 +0100

On 24 Oct 2010, at 14:29, Scott Haneda wrote:

> If not possible, does anyone know a way to check the clipboard state in bash or some other language OS X has already installed?

What is it you're trying to do? You can do this to see if there's anything on the clipboard

set m to do shell script "pbpaste"

if m is "" then
   -- clipboard is empty
end if

But what you're going to do with it depends on the type of data on the clipboard

Steve _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Detecting clipboard state
      • From: Scott Haneda <email@hidden>
References: 
 >Detecting clipboard state (From: Scott Haneda <email@hidden>)

  • Prev by Date: Re: Still, script won't run on an older iMac.
  • Next by Date: Re: Detecting clipboard state
  • Previous by thread: Detecting clipboard state
  • Next by thread: Re: Detecting clipboard state
  • Index(es):
    • Date
    • Thread