AppleScript:将安装的文件夹添加到 Finder 侧边栏?
我有一个简单的 Apple 脚本来安装文件夹:
mount volume smb://machineip/folder
由于 Mac OS X 10.5.5 没有像 Windows 那样的映射驱动器的概念,因此该脚本在启动时运行。 但剧本并没有达到我想要的程度。 我将计算机 IP 添加到 Finder 侧栏,当我单击它时,会显示该计算机的所有共享文件夹,包括上面带有小弹出图标的“文件夹”。 如何使用 Apple 脚本将该文件夹显示在 Finder 侧边栏的“设备”下。
有没有办法也通过 Automator 来做到这一点?
I have a simple Apple Script that mounts a folder:
mount volume smb://machineip/folder
This runs on start up since Mac OS X 10.5.5 doesn't have the concept of mapped drives like Windows. The script doesn't go as far as I'd like though. I get the machine IP added to Finder Sidebar and when I click it, all of the shared folders for that machine appear, including the above "folder" with the little eject icon. How do I get that folder to appear under "Devices" in Finder Sidebar using Apple Script.
Is there a way to also do this through the Automator?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想考虑使用 fstab 而不是安装脚本。 查看此处了解如何执行此操作。 如果您希望在 Finder 的侧边栏上安装可用的文件夹,您可能只需将 /Volumes/(name) 文件夹拖到您的位置栏即可。
You might want to look into using the fstab instead of a mount script. Check here for how to go about this. If you want to have mounted folders available on the sidebar of Finder, you probably can just drag the /Volumes/(name) folder to your places bar.