How to configure AppleScript to work with Java 7 on Mac OS X