Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Get selected text from non-cocoa application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get selected text from non-cocoa application



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


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.