Maybe OT: Handling MacOS 'openfile'

Johan Vromans <[email protected]> Mon, 21 Sep 2020 17:42:05 +0200
Newsgroups gmane.comp.python.wxglade
Organization Squirrel Consultancy
Message-ID <[email protected]>
Hi,

I have a wxWidgets app (Perl, developed with wxGlade) that runs on Linux.
Windows and MacOS. For MacOS, I've bundled the app into a real MacOS app,
including file associations.

In the case of MacOS I would like the application to respond to a
double-click on a file with a designated type. This already works by
default, but my app expects the name(s) of the files to process as command
line arguments.

Is there some kind of wrapper that runs like a MacOS app, responds to
MacOpenFile, stashes the file name into @ARGV and then invokes my app?

-- Johan