Re: Detecting clipboard state
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