AppleScript: adding mounted folder to Finder Sidebar?

最后都变了- 提交于 2020-01-24 15:51:47

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/375323/applescript-adding-mounted-folder-to-finder-sidebar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!