• 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
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


  • 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
  • Follow-Ups:
    • Re: Get selected text from non-cocoa application
      • From: Sander Tekelenburg <email@hidden>
    • Re: Get selected text from non-cocoa application
      • From: Joe <email@hidden>
  • Prev by Date: Re: sometimes, true = false !
  • Next by Date: Re: Get selected text from non-cocoa application
  • Previous by thread: Rép: sometimes, true = false !
  • Next by thread: Re: Get selected text from non-cocoa application
  • Index(es):
    • Date
    • Thread