• 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
Re: Applescript and Java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript and Java


  • Subject: Re: Applescript and Java
  • From: has <email@hidden>
  • Date: Thu, 22 Nov 2007 23:30:27 +0000

Amandeep Singh wrote:
Hi, Anyone know if it is possible to access Java classes (available in .jar or .class files) from within Applescript?
Directly, no. Your options would be:

1. invoke the 'java' command via 'do shell script'

2. write an osax that can access Java classes via JNI

3. wrap your Java classes as a scriptable application.

Questions on #2 and #3 would be best put to the AppleScript- implementors mailing list <http://lists.apple.com/mailman/listinfo/applescript-implementors >. Though again, if you want more specific advice you'll have to say more about what it is you're working on. For example, if you're wanting to control scriptable applications from Java/Jython/JRuby/ etc., I believe the [deprecated] Java-Cocoa bridge is still around if you want to try using NSAppleScript, though for anything non-trivial you may well be better off with a proper Java-Apple event bridge a-la Python/Ruby/ObjC appscript (mail me off-list if you want to discuss this).

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

_______________________________________________
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
  • Prev by Date: Applescript and Java
  • Next by Date: Date Method(Handler)
  • Previous by thread: Need to export data to another program
  • Next by thread: Date Method(Handler)
  • Index(es):
    • Date
    • Thread