Skip to content

Instantly share code, notes, and snippets.

@jmesnil
Created July 25, 2008 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmesnil/2427 to your computer and use it in GitHub Desktop.
Save jmesnil/2427 to your computer and use it in GitHub Desktop.
public class AppleScriptTest {
public static void main(String[] args) throws Exception {
ScriptEngineManager factory = new ScriptEngineManager();
ScriptEngine engine = factory.getEngineByName("AppleScript");
engine.eval("tell application \"Finder\"\n display dialog \"Who cares?\"\n end tell");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment