使存储在闪存驱动器上的脚本在插入 OS X 系统时执行
我猜这是不可能完成的,因为它会很糟糕的安全性,甚至不能在 Windows 7 中完成,但是有没有办法让闪存驱动器在默认情况下插入 Mac 时自动执行功能设置。我假设所有可执行文件都隔离在闪存驱动器上,但它可以访问环境变量吗?驱动器名称可以包含脚本吗?无论如何,我只是想跳出框框思考这个问题,如果有人有任何想法,我很乐意听到他们。
谢谢
十一月
I'm guessing this can't be done as it would be terrible security, can't even be done in windows 7, but is there a way to make a flash drive automatically preform a function when it is plugged into a mac with default settings. I assume all executable files are quarantined on the flash drive, but could it access environmental variable? Could the drives name contain a script? I'm just trying to think outside the box on this one, anyway, if anyone has any ideas I would love to hear them.
Thanks
November
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不能。自 1997 年左右起,Mac 操作系统就不再支持任何形式的自动运行,当时 QuickTime 2.5 默认禁用 CD 自动播放。
You can't. No form of autorun has been supported on Mac OS since around 1997, when QuickTime 2.5 disabled CD autoplay by default.