萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 作業系統 >  >> macOS 教學

Mac 用 Automator 讓 Sparrow 郵件客戶端支援右鍵「以附件寄送」

Mac 原生「服務」選單提供「新增含附件郵件」功能,但僅支援內建 Mail.app。透過 Automator 建立服務腳本,調用 Sparrow 的 AppleScript 支援,即可實現右鍵檔案一鍵以附件寄送(Sparrow 版)。

建立服務步驟

  1. 安裝 Sparrow(或 Sparrow Lite)。
  2. 開啟 Automator → 選擇「服務」。
  3. 頂部設定:「服務收到」選「檔案或資料夾」,「位於」選「任何應用程式」。
  4. 左側搜尋「執行 AppleScript」,拖入右側,貼入以下腳本:
    on run {input, parameters}
        tell application "Sparrow"
            activate
            set theMessage to make new outgoing message
            tell theMessage
                repeat with ii in input
                    make new mail attachment with properties {filename:ii as alias}
                end repeat
                compose
            end tell
        end tell
    end run
  5. 儲存(命名如「以 Sparrow 寄送附件」),即會出現在右鍵選單「服務」中。

Automator 服務設定

此法同樣適用於其他支援 AppleScript 的郵件客戶端(如 Airmail、Postbox),只需修改腳本中應用程式名稱。

copyright © 萬盛學電腦網 all rights reserved