Skip to content

umjammer/vavi-script-apple

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

37 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Release Java CI with Maven CodeQL Java

vavi-script-apple

jsr223 for apple script. mac jdk stopped including the apple script engine after version 6.

rococoa version is included also.

Note: this is a fork of https://github.com/mik3hall/AppleScriptEngine

install

maven

  • repository

https://jitpack.io/#umjammer/vavi-script-apple

  • dylib

https://github.com/umjammer/vavi-script-apple/wiki/How-To-Install

  • jvm option
      -Djava.library.path=${project.build.testOutputDirectory}              # for AppleScriptEngine
      -Djna.library.path=${project.build.testOutputDirectory}               # for AppleScriptRococoa
      -XstartOnFirstThread

caution

this package includes both jni and jnr version. the name "AppleScript" conflicts and the engine manager returns null. so that specify long name for each like "AppleScriptEngine", "AppleScriptRococoa".

jni version is deprecated

TODO

  • use jna instead of jni
  • notification by application (see javapackager plugin in pom.xml)
    • javapackager (use snapshot because: issue)
    • weired behavior -> check runtime jdk version
      • bundle 1.8 jre (because info.plist:JavaX:JVMVersion doesn't work)
      • stub's jdk direction doesn't work well *1
app click on finder run stub on commandline open command
rococoa OK crash*1 OK
jni OK crash*1 OK

[1] application path needs to be specified by full path

Languages

  • Java 65.6%
  • Objective-C 33.8%
  • ActionScript 0.6%