MacOSXHints 今日有一篇相關的小秘技,請參考 Sync to Dropbox from anywhere in your home folder
不慣用 Command 方式的朋友,可以至 Apple 官網下載:Automator - Symbolic Actions, 僅適用 10.5 之後版本。裡頭除了Symbolic Link 之外,還有其他一些有用的 Actions 與 Workflows,點兩下這些 Actions 就能安裝進機器人中。
![[分享] Symbolic link 與 Dropbox](http://attach.mobile01.com/attach/200910/mobile01-8e844189fad3e9613f05a8c7a7e2daea.jpg)
10.6 的朋友可以把 Actions 當做 Services 來使用,只需將安裝資料夾 Services for Snow Leopard 中的檔案複製進 (帳號)/Library/Services 中,打開機器人建立新的 Services,如:
» 指定 files or folders, 程式選擇 any application 或是 Finder, 儲存路徑自行指定,勾選 Show this action when workflow runs, 存檔結束。
![[分享] Symbolic link 與 Dropbox](http://attach.mobile01.com/attach/200910/mobile01-9f53ab5745f4e99041a9f55edc0fafbe.jpg)
接著在 Finder 中任意選取檔案(夾) > 滑鼠右鍵呼叫出 Services 選單 > 製作好的 Symbolic Link Services, 如此一來就能替檔案建立 Symbolic Link 替身。
有一些軟體開始整合 Dropbox 這種線上服務,如著名的 1Password, 也提供使用 DropBox 同步備份更新你的密碼檔案的方法。另一個例子是 Mailplane, 你也能以類似的手法,備份你在 Mailplane 中的帳號設定,方法如下:
- 關閉 Mailplane
- 備份 (帳號)/Library/Application Support/Mailplane/ 資料夾
- 在 (帳號)/Dropbox 中建立一個名為 Mailplane 的資料夾
- 在 Finder 底下,將 (帳號)/Library/Application Support/Mailplane/Accounts.xml 搬至 (帳號)/Dropbox/Mailplane 資料夾中
- 打開終端機輸入:
ln -s ~/Dropbox/Mailplane/Accounts.xml ~/Library/Application\ Support/Mailplane/Accounts.xml
這一步,是建立 Symbolic Link, 使用上面教過的方法,
將 (帳號)/Dropbox/Mailplane/ 中的 Accounts.xml 建立替身,把替身搬至 (帳號)/Library/Application\ Support/Mailplane/
- 如果使用 Mailplane 2.1-beta: 重複上面的步驟,要處理的檔案是 Accounts_2.xml
- 啟動 Mailplane