Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Document Handling for macOS #174

Open
abhillman opened this issue Jan 27, 2024 · 0 comments
Open

Implement Document Handling for macOS #174

abhillman opened this issue Jan 27, 2024 · 0 comments

Comments

@abhillman
Copy link

On macOS, users can open a document with a desired application by "dropping it" on top of the icon for an Application bundle in the dock1:

image

Unfortunately, however, when a document is passed to an application, it is not provided in argv. Here is a simple repository that demos the issue https://github.com/abhillman/macos-argv.

Footnotes

  1. It turns out there are actually several ways you can open a document, but they all go through the same code path: (1) dropping a document on an application bundle in a folder, (2) dropping an document on a dock icon for an application bundle, (3) control-clicking on a document and open it with a desired application bundle, (4) running open -a <path/to/bundle.app> <document>in a shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant