You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
It would be great if no changes to the source code be necessary. JavaMacLauncher should handle those scenarios and convert them as in-line arguments to the program so it would work as it is as on other platforms (Windows, Linux...).
It would be great if no changes to the source code be necessary. JavaMacLauncher should handle those scenarios and convert them as in-line arguments to the program so it would work as it is as on other platforms (Windows, Linux...).
Yes, I agree! It would also be great if there was a version of JavaMacLauncher for ARM64
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.
The text was updated successfully, but these errors were encountered: