kasper / phoenix

A lightweight macOS window and app manager scriptable with JavaScript
https://kasper.github.io/phoenix/
Other
4.39k stars 128 forks source link

Add App.open() method #309

Open nb opened 2 years ago

nb commented 2 years ago

Opens a file with the default associated app, instead of launching an app. Useful to open files/directories via keyboard shortcuts. My specific use-case was to open my “Downloads” directory.

From developer interface standpoint, having those two methods makes sense, but I am happy to hear any feedback since we are increasing the API surface.

Implementation notes:

Thank you for the great project :)

If the maintainers think the change makes sense, I am happy to add docs/changelog entry.