LoginSignup
0
0

More than 5 years have passed since last update.

launchdで、ShiftItを自動立ち上げしてみた

Last updated at Posted at 2018-05-06

はいけい

開発元未確認のアプリケーションにより、ShiftItが、動かない。

セキュリティとプライバシーから、「すべてのアプリケーションを許可」にして、アプリをたちあげようとするが、
「すべてのアプリケーションを許可」が見当たらない。

sudo spctl --master-disable
で、「すべてのアプリケーションを許可」を出現するように変更

ShiftItをクリック。
無事、ShiftIt起動!やったね!

作業開始。

作業終えて、ログアウト。

作業開始するためにログイン。
ShiftItが立ち上がってない。

という感じのことがありました。

クリックすれば、起動はできるのですが、
毎回ログインするたびに、クリックするのめんどくさいなーと思い、
自動化してみました。

やったこと

sample.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>exex.app</string>
    <key>ProgramArguments</key>
    <array>
      <string>open</string>
      <string>-a</string>
      <string>Shiftit</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
  </dict>
</plist>

上記のplistファイルを、
~/Library/LaunchAgents
のディレクトリに置くだけです。

環境

macOS High Sierra

code

参考元

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0