Hi Kevin,

If you speak it when something else posts new content to the clipboard, no,
there's no event I know of which you could use.

You could pole the clipboard with a timer, once a second for instance, and
if it's text compare it to the last contents you spoke, and if it's
different then try to figure out if it's a file name (test for existence of
the file?), and if so speak it; but it seems quite a bit to do to get it to
speak the file name.

BTW, if the person is interested they could just use a hotkey to speak the
clipboard, which reminds me there is an app named sayClip I remember seeing
which does do that I think?

Chip
 

> -----Original Message-----
> From: Kevin Huber [mailto:[email protected]] 
> Sent: Friday, June 15, 2012 1:40 PM
> To: gw-scripting
> Subject: Speaking contents of the clipboard
> 
> Hi:
> I am in the process of writing a script which has three 
> hotkeys.  One will copy text from the clipboard and speak the 
> contents of the clipboard, another will cut text to a 
> clipboard and read the contents of the clipboard, and still 
> another will paste text from the clipboard and announce the 
> contents of the clipboard.
> My question is, if I am copying filenames to the clipboard, 
> is there a way to get Window-eyes to speak the contents of 
> the clipboard, similar to the line:
> "speak clipboard.text", which speaks the contents of the 
> clipboard when the clipboard contains text.
>  Kevin Huber
> 

Reply via email to