• 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
Applescripting Eclipse using UI scripting not possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applescripting Eclipse using UI scripting not possible?


  • Subject: Applescripting Eclipse using UI scripting not possible?
  • From: Andrew Bush <email@hidden>
  • Date: Sun, 11 Feb 2007 22:44:09 +1300

Hi all,

Ive been trying to use UI scripting to retrieve the name of the frontmost window in Eclipse, but have had no luck, should this be possible or does the UI scripting rely on assumptions that are unlikely to be true with a java application that is not written specifically for mac os x?

Im using the following script:


tell application "System Events"
launch
set wName to the name of window 0 of process "Eclipse"
end tell

that same script works with REALbasic 5.5, a non-java non-applescriptable application, but when I replace 'REALbasic' with 'Eclipse' I get a NSReceiverEvaluationScriptError 4.

Has anyone tried to do this before?  has anyone had the same problem with using UI scripting on other java applications?

thanks for any help.


Yours cheerfully,


Andrew Bush
 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Applescripting Eclipse using UI scripting not possible?
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Eudora Message Selection Query
  • Next by Date: Re: Getting started with XML?
  • Previous by thread: Out of the office for leave
  • Next by thread: Re: Applescripting Eclipse using UI scripting not possible?
  • Index(es):
    • Date
    • Thread