How to open a symlink without the terminal window popping up? [closed]
Want to improve this question? Update 开发者_如何学运维the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this questionHow can I open a symlink without the terminal window popping up? Moreover, when I close the terminal window, the application quits as well. I tried using
nohup open symlink1
without any results. I have made a symlink to the iTunes executable (the one inside the contents package, NOT the iTunes.app) which I want to be able to open by double clicking the link, but without the terminal window popping up.
Why not just make an HFS+ alias? Command-option-drag the iTunes app anywhere you want on your machine, and it should work like you want it to.
I just figured out a solution:
Make an executable (intended as the link)
#!/bin/bash
cd /Applications/iTunes.app/Contents/MacOS
nohup ./iTunesX &
exit
and change under preferences in Terminal
When the shell quits: close if the shell exited cleanly
Change iTunesX and the cd path to any desired target.
精彩评论