Re: Calling Applescript from Netbeans
Re: Calling Applescript from Netbeans
- Subject: Re: Calling Applescript from Netbeans
- From: Stan Cleveland <email@hidden>
- Date: Tue, 06 Sep 2011 15:22:53 -0700
On Sep 6, 2011, at 2:39 PM, Philip Ershler wrote:
> I am running Snow Leopard 10.6.8 and Netbeans IDE 7.0.1. I am trying to learn now to call an Applescript from Java in Netbeans. I need to pass a parameter to the Applescript as well. Can anyone suggest any links that might help me out. So far I have been unable to ask Mr. Google the appropriate question(s) to find any useful links.
Hi Phil,
I have no NetBeans experience, but believe one or both of the following could meet your needs.
One option is to do a call to the 'osascript' shell command, by which you can execute AppleScript code. You can type 'man osascript' in Terminal for info.
Though more roundabout, the following link shows how to call rb-appscript (a Ruby-based OSA language and excellent alternative to AppleScript) from NetBeans:
http://macdevelopertips.com/tools-utilities/netbeans-61-ruby-and-applescript.html
It would mean translating your AppleScript code into rb-appscript, but there are appscript tools available to help with that.
HTH,
Stan C.
_______________________________________________
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