I want to make my application autorun, like using autorun.inf on Windows. I googled and there is one way for me to do that: "On the Mac side there are many applications you can buy for creating a Finder window that looks a certain way but all these changes can be made within finder. You then will need to copy the DS_Store file to the CD and finder will automatically apply any changes that you have made.

Also using -hfs-openfolder will cause it to open automatically when inserted on the mac."

Can anyone tell me more clearly about that, or is there any other way? Thanks so much.

有帮助吗?

解决方案

According to this page, you should be able to do that with bless:

sudo bless --folder "/Volumes/discName" --openfolder "/Volumes/discName"

The man page confirms that, at least on 10.6.8. I don't have Lion in front of me right now.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top