Re: Applescript and Java
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