Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Thanks! My problem is that macOS calls the bash script without any argument. I wanted to get file names from the Open-AppleEvent so the bash script can pass them to myJarFile.jar. Commented Apr 5, 2020 at 11:33
  • This script, like red_menace's, optionally uses command-line arguments passed into it; and if none are, then it uses whatever is contained in the $args array that is declared manually in the script. So this is taking a series of items from bash and giving them to AppleScript. But it sounds like that's not what you wanted. Can you describe where and what your implementation is (or will) with regards to the aevtodoc (open) event ? Commented Apr 5, 2020 at 18:31
  • Actually I've just seen the comments between you and red_menace regarding the event handling, which now makes more sense. I was thrown by how your application was supposed to receive an aevtodoc, and wanted to check if you already knew it would be getting sent. But, it won't be. Perhaps putting the app bundle(s) and related program files on GitHub? That would reduce the to and fro here, and get you an indication straight away of whether or not we'll be able to help. Commented Apr 5, 2020 at 21:44
  • No github account, sorry. I could take this as the perfect opportunity to learn svn or github and Swift. At the least I will supply the complete bash code and Info.plist as soon as I get back to my computer. And finally learn Swift, to write a replacement for the bash script. Commented Apr 6, 2020 at 9:20