開機自動執行 Google Chrome App on Mac OS X

  1. 找到你電腦裡的 chrome app,在想開機自動啟動的 chrome app 上點右鍵選「Get Info」,路徑 eg.
    /Users/Ca/Applications/Chrome Apps/Google Keep - notes and lists.app
  2. 複製這一串亂碼英文
  3. 執行內建的應用程式 Automator ,選「Application」
  4. 拖曳 "Run Shell Script" 至右方視窗
  5. 在這對話框內輸入,以下是自動同時執行兩個 app 的例子:
    (/Applications/CaMacApps/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --profile-directory=Default --app-id=afhcomalholahplbjhnmahkoekoijban) & (/Applications/CaMacApps/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --profile-directory=Default --app-id=anotherchromeappidnmahkoekoijban) &

    PS.
    app-id 要換成剛剛複製的英文亂碼;
    Google Chrome.app 要指向你自己的位置路徑;
    同步啟動 app 用 &、要按照順序執行的話改為 &&

  6. 存檔後,再到 System Preferences > Users & Groups > Login Items ,把剛剛存檔的 app 加進來後,開機時就會執行這個 app。


參考資料:
Launching a Google Chrome App on system startup in Windows or OSX

留言

這個網誌中的熱門文章

電話線四芯或二芯(4C或2C)的差別