简体   繁体   English

自动运行适用于Mac?

[英]Autorun for Mac?

I've got a Flash projector which I plan to distribute on CD. 我有一台Flash投影机,我计划在CD上发行。 I'm making a projector for Mac and Windows. 我正在为Mac和Windows制作投影仪。 I know how to do Autorun on Windows, but I want to do so on Mac as well. 我知道如何在Windows上进行自动运行,但我也想在Mac上进行自动运行。

How does that work? 这是如何运作的?

It doesn't. 它没有。 Mac OS 7–9 had a similar system but Mac OS X has nothing of the sort. Mac OS 7-9有一个类似的系统,但Mac OS X没有那种类型。

Your best bet is to make a nice Finder window design that makes it clear what to do. 最好的办法是制作一个漂亮的Finder窗口设计,清楚地说明该做什么。 DropDMG may be useful. DropDMG可能很有用。

You can't set an application to autorun for security reasons. 出于安全原因,您无法将应用程序设置为自动运行。 However you can set a Finder window to auto open on insert. 但是,您可以将Finder窗口设置为在插入时自动打开。 I've seen a lot of CDs do this then have a "Click here to start" icon. 我看过很多CD都这样做,然后有一个“点击此处开始”图标。

This is the terminal command to set it up on your diskimage before burning. 这是在刻录之前在磁盘映像上设置它的终端命令。 discName should be the name of your disk image. discName应该是磁盘映像的名称。

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

More info here 更多信息在这里

OSX中没有自动运行。

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. 只需右键单击Dock中的图标,选择“选项”,然后选择“在登录时打开”,然后每次OSX启动时都会启动所选应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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