• 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: Scott Haneda <email@hidden>
  • Date: Sun, 24 Oct 2010 13:29:25 -0700

On Oct 24, 2010, at 12:45 PM, Steve Thompson <email@hidden> wrote:

> 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

I want to play a system sound when copy is invoked, only when copy is permissible to be invoked. Checking if it is empty or not does not tell me the apps position on whether of not a copy should be allowed.

There is no feedback from copy; copy can at times be critical that it worked. Hearing an audible tone or screen flash on would could help in my case.
--
Scott * If you contact me off list replace talklists@ with scott@ *

 _______________________________________________
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

References: 
 >Detecting clipboard state (From: Scott Haneda <email@hidden>)
 >Re: Detecting clipboard state (From: Steve Thompson <email@hidden>)

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