Skip to content

Do not pass Apple Event "Open File" to Java application #1

Description

@eduardomozart

Hello,
When using JavaMacLauncher as a Java stub, when using Info.plist to associate a extension with the program (e.g. *.por files), when clicking into a *.por file, it opens the Java program but it didn't pass the file path as an argument to the Java program.
In AppleScript, it's possible to intercept them using "On Open", that receives kAEOpenDocuments (Apple Events), as "Open With" actions do not pass them as arguments (argv) to the executable, instead, it passes the files to open as an Apple Event. There's a workaround in https://github.com/RichardBronosky/AppleScript-droplet which receive those events and bypass them to the Bash script as arguments.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions