AppleScript:将安装的文件夹添加到 Finder 边栏? [英] AppleScript: adding mounted folder to Finder Sidebar?

查看:37
本文介绍了AppleScript:将安装的文件夹添加到 Finder 边栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个安装文件夹的简单 Apple 脚本:

I have a simple Apple Script that mounts a folder:

mount volume smb://machineip/folder

这会在启动时运行,因为 Mac OS X 10.5.5 没有像 Windows 那样的映射驱动器的概念.不过,该脚本并没有达到我想要的程度.我将机器 IP 添加到 Finder 侧边栏,当我单击它时,该机器的所有共享文件夹都会出现,包括上面带有小弹出图标的文件夹".如何使用 Apple 脚本使该文件夹显示在 Finder 边栏中的设备"下.

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.

有没有办法也通过 Automator 做到这一点?

Is there a way to also do this through the Automator?

推荐答案

您可能想考虑使用 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.

这篇关于AppleScript:将安装的文件夹添加到 Finder 边栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆