开发者

Autorun for Mac?

开发者 https://www.devze.com 2023-01-25 21:24 出处:网络
I\'ve got a Flash pr开发者_如何学运维ojector which I plan to distribute on CD. I\'m making a projector for Mac and Windows. I know how to do Autorun on Windows, but I want to do so on Mac as well.

I've got a Flash pr开发者_如何学运维ojector which I plan to distribute on CD. I'm making a projector for Mac and Windows. I know how to do Autorun on Windows, but I want to do so on Mac as well.

How does that work?


It doesn't. Mac OS 7–9 had a similar system but Mac OS X has nothing of the sort.

Your best bet is to make a nice Finder window design that makes it clear what to do. DropDMG may be useful.


There is no autorun in OSX anymore.


You can't set an application to autorun for security reasons. However you can set a Finder window to auto open on insert. I've seen a lot of CDs do this then have a "Click here to start" icon.

This is the terminal command to set it up on your diskimage before burning. discName should be the name of your disk image.

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

More info here


There is an easy way to do it. Just right-click the icon in the dock, chose "Options", then "Open at Login" Then the selected app will launch every time OSX boots.

0

精彩评论

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