开发者

How to open a symlink without the terminal window popping up? [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update 开发者_如何学运维the question so it's on-topic for Stack Overflow.

Closed 12 years ago.

Improve this question

How 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜