Reputation: 8098
Later versions of Java (7, 8) do not include Apples AppleScript script engine and it is required to modify a java projects META-INF services.
So, two questions:
Upvotes: 0
Views: 193
Reputation: 1524
Oracle JDK 8 for Mac OS X still comes with an AppleScript engine and you can use it dynamically from Clojure without configuring META-INF/services
. The following example demonstrates a say-hello script.
user> (import 'apple.applescript.AppleScriptEngineFactory)
apple.applescript.AppleScriptEngineFactory
user> (let [engine (.getScriptEngine (AppleScriptEngineFactory.))]
(.eval engine "say \"hello\""))
nil
Upvotes: 1