Get selected text from non-cocoa application
Get selected text from non-cocoa application
- Subject: Get selected text from non-cocoa application
- From: Rounak Jain <email@hidden>
- Date: Mon, 21 Sep 2009 22:53:19 +0530
ThisService can take text from front application and process it.
(http://macscripter.net/viewtopic.php?pid=106211#p106211)
But it does not seem to work on non-cocoa applications like Firefox. I
tried to write a script like
on process(input)
set input to......
on error e
tell app "System events" to keystroke "c" using command down
........
but that does not work.
Maybe, because the error occurs in the first line "on process(input)"
and the script does not proceed.
Does anyone know about an alternative way to get text from front
application so as to process it?
Thanks
_______________________________________________
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