Re: AppleScript script engine

2014-02-18 Thread Michael Hall
On Feb 15, 2014, at 8:00 AM, Michael Hall wrote: > Meanwhile, I was still thinking about grabbing the source and setting up > something on github with a dylib/jar pair that developers could add to their > projects > to get this scripting engine without hacking JDK/JRE's. Seem a reasonable > i

Re: AppleScript script engine

2014-02-15 Thread Michael Hall
ecent builds have this fixed? >> > I took a quick poke around and I now see that the reason AppleScript is > located on my system is because ServiceLoader is locating the service > configuration file in /System/Library/Java/Extensions/AppleScriptEngine.jar. > Although the Apple

Re: AppleScript script engine

2014-02-15 Thread Scott Palmer
If I don't define JAVA_HOME I automatically get the latest jdk when I run commands. Something is handling that. I think it is the commands that are linked to - they don't run java 6 automatically. Scott On Feb 15, 2014 1:01 PM, "Michael Hall" wrote: > On Feb 15, 2014, at 11:00 AM, Scott Palmer

Re: AppleScript script engine

2014-02-15 Thread Michael Hall
On Feb 15, 2014, at 11:00 AM, Scott Palmer wrote: > > Maybe, but I don't think so. I think that stuff is part of the magic that > makes JAVA_HOME work without messing around with the path. > It looked like most of the java commands default link to the Apple Java 6 versions. I set up this in m

Re: AppleScript script engine

2014-02-15 Thread Michael Hall
On Feb 15, 2014, at 11:00 AM, Scott Palmer wrote: > Maybe, but I don't think so. I think that stuff is part of the magic that > makes JAVA_HOME work without messing around with the path. > > I think OpenJDK has a JIRA bug system now, but the usual place at oracle.com > still works. > > Scott

Re: AppleScript script engine

2014-02-15 Thread Scott Palmer
On Feb 15, 2014 11:10 AM, "Michael Hall" wrote: > I think that may also explain my remaining jrunscript problem. > ls -l /usr/bin/jrunscript > lrwxr-xr-x 1 root wheel 80 Mar 12 2013 /usr/bin/jrunscript -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jrunscript > I wil

Re: AppleScript script engine

2014-02-15 Thread Alan Bateman
ppleScript is located on my system is because ServiceLoader is locating the service configuration file in /System/Library/Java/Extensions/AppleScriptEngine.jar. Although the AppleScript script engine is included in rt.jar, there isn't in fact a service configuration file for it resources.jar

Re: AppleScript script engine

2014-02-15 Thread Michael Hall
ecent builds have this fixed? >> > I took a quick poke around and I now see that the reason AppleScript is > located on my system is because ServiceLoader is locating the service > configuration file in /System/Library/Java/Extensions/AppleScriptEngine.jar. > Although the Apple

Re: AppleScript script engine

2014-02-15 Thread Michael Hall
On Feb 15, 2014, at 8:00 AM, Michael Hall wrote: > I have had partial success on this based on this Stack Overllow post… > http://stackoverflow.com/questions/10054252/trying-to-use-rhino-getenginebynamejavascript-returns-null-in-openjdk-7 > Sorry again, one more correction, based on this URL… ht

Re: AppleScript script engine

2014-02-15 Thread Michael Hall
On Feb 15, 2014, at 8:00 AM, Michael Hall wrote: > I'm not sure if Robert Palmer and Alan Bateman somehow just missed out on > this problem or had a easier or better solution? If so I'd be interested in > hearing it. Sorry Scott, put you in Led Zeppelin there for a bit. Except for Scott's 1.7

Re: AppleScript script engine

2014-02-15 Thread Michael Hall
I have had partial success on this based on this Stack Overllow post… http://stackoverflow.com/questions/10054252/trying-to-use-rhino-getenginebynamejavascript-returns-null-in-openjdk-7 I had updated my _40 era jdk build to a nice new 1.7.0_51-b13 which had unfortunately done me no good. So I add

Re: AppleScript script engine

2014-02-15 Thread Alan Bateman
On 14/02/2014 21:17, Michael Hall wrote: On Feb 13, 2014, at 7:49 PM, Michael Hall wrote: Is the AppleScript engine no longer not even the default one but no longer shipped? Not seeing a reply here. Is there a more appropriate forum for OS X specific java questions now? I just checked my lo

Re: AppleScript script engine

2014-02-14 Thread Michael Hall
On Feb 14, 2014, at 9:23 PM, Scott Palmer wrote: > $ jrunscript -q > Language AppleScript 2.3 implementation "AppleScriptEngine" 1.1 > Language ECMAScript ECMA - 262 Edition 5.1 implementation "Oracle Nashorn" > 1.8.0 Thanks, not sure why it doesn't show for me then but thanks. I'll verify App

Re: AppleScript script engine

2014-02-14 Thread Scott Palmer
$ jrunscript -q Language AppleScript 2.3 implementation "AppleScriptEngine" 1.1 Language ECMAScript ECMA - 262 Edition 5.1 implementation "Oracle Nashorn" 1.8.0 I have Apples, latest Java 6 runtime as well as JDK 1.7.0_51 and JDK 1.8.0 b129 installed. Based on the "Oracel Nashorn" 1.8.0, I woul

Re: AppleScript script engine

2014-02-14 Thread Michael Hall
On Feb 14, 2014, at 5:47 PM, David DeHaven wrote: > > What Java version are you testing? Command line I show... /usr/libexec/java_home --exec java -version java version "1.7.0_40" Java(TM) SE Runtime Environment (build 1.7.0_40-b43) Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode

Re: AppleScript script engine

2014-02-14 Thread David DeHaven
> Is the AppleScript engine no longer not even the default one but no longer > shipped? > My HalfPipe application has some launch dependencies on it being there. It > was throwing NPE's apparently not getting the engine. > I stuck in some code to list out available engines and get… What Java ve

Re: AppleScript script engine

2014-02-14 Thread Michael Hall
On Feb 13, 2014, at 7:49 PM, Michael Hall wrote: > Is the AppleScript engine no longer not even the default one but no longer > shipped? Not seeing a reply here. Is there a more appropriate forum for OS X specific java questions now? Michael Hall trz nio.2 for OS X http://www195.pair.com/mik3

Re: AppleScript script engine

2014-02-13 Thread Michael Hall
On Feb 13, 2014, at 7:49 PM, Michael Hall wrote: > Is the AppleScript engine no longer not even the default one but no longer > shipped? > My HalfPipe application has some launch dependencies on it being there. It > was throwing NPE's apparently not getting the engine. > I stuck in some code to

AppleScript script engine

2014-02-13 Thread Michael Hall
Is the AppleScript engine no longer not even the default one but no longer shipped? My HalfPipe application has some launch dependencies on it being there. It was throwing NPE's apparently not getting the engine. I stuck in some code to list out available engines and get… ScriptEngineFactory Inf