0

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:

  1. How would I do this from Clojure code in a REPL
  2. How would I set this once (statically) so it is automatic anytime I start a project namespace in a REPL

1 Answer 1

1

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
Sign up to request clarification or add additional context in comments.

1 Comment

thanks. I just found this as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.