-
Notifications
You must be signed in to change notification settings - Fork 9
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
Open command ignores --args #17
Comments
Yep this is a known problem and I'm not sure it can be solved using just applescript. I tried my hand at this in https://github.com/hraban/mac-app-util/tree/pure-osascript but it didn't seem to pan out. I'm working on seeing if maybe a fully compiled swift app can do this. It's not a priority for me, and not to be too lawyery about it, but: it's not listed as a feature of this app :) the primary goal is "launch an application from spotlight." It would of course be nice to support generic Anyway, valid point, not saying it's WONTFIX, but definitely not jumping on this any time soon :) |
Thanks for the fast response!
I totally understand, I just wanted to ask since it seems related to this app's purpose. Do you know what the underlying issue is? There is a gist that tries to solve the spotlight problem a different way: https://gist.github.com/elliottminns/211ef645ebd484eb9a5228570bb60ec3, but is full I think that if needed, I can move all my GUI-based apps to brew to solve this issue. |
That uses mkalias which is a fundamentally different approach which is incompatible with certain apps , and yields very inconsistent results with spotlight indexing unfortunately. I cut my teeth on this with applescript and I have a very strong feeling the only way forward is a full-blown objective-c / swift app which does the trampolining. I've just written literally zero lines of either of those ever so it's gonna take a while to even get that ball rolling I'm afraid :/ |
I should probably at least add an explicit note in the readme about "why not mkalias" because it's a recurring question. |
I am using nix-darwin to install PyCharm:
This seems to work since spotlight is able to find PyCharm. However, I like to open my projects in PyCharm like this:
Unfortunately, this only opens the PyCharm app. The path argument seems to be ignored. If I use the homebrew cask to install PyCharm instead, then the above script works perfectly.
I am very new to Nix still, and so I'm not super familiar with all the pieces yet. But, is this functionality something that I should expect to work with mac-app-util configured the way it is above?
nixpkgs-unstable
branch and the problem persistsThe text was updated successfully, but these errors were encountered: