使用 Bash shell on OS x 是否可以编写一个脚本让我将 OneDrive 挂载到桌面?

With the Bash shell on OS x is it possible to write a script that will let me mount OneDrive to the desktop?

我希望能够将我的 OneDrive 帐户安装到桌面。然后使用 rsync 将其与本地文件夹同步。我知道如何使用 rsync,但需要有人指导我安装 OneDrive 的正确方向。

我已经能够将文件夹 PC 同步到 Mac,方法是将 PC 共享文件夹安装到 Mac,然后使用 rsync 进行同步。

还没有连接到 OneDrive 的代码。

能够将 OneDrive 安装到 Mac 桌面。

您无法将远程 "drive" 装载到 OneDrive,因为 synchronization/authentication 协议未在 OS X 文件系统中实现。

(答案来自 mac stackexchange here

一些专有软件可以解决这个问题并且可以提供帮助,或者您可以编写自己的软件。