简体   繁体   中英

How to make application autorun on Mac?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM