LoginSignup
1
1

More than 5 years have passed since last update.

AppleScriptでスクリーンセーバを呼び出す

Last updated at Posted at 2015-06-08

AppleScriptでスクリーンセーバを呼び出すには、
下記のようにスクリプトエディタで書きます。

screensaver.scpt
tell application "System Events"
    set ss to screen saver "Flurry"
    start ss
end tell

Automaterにサービスとして登録すれば、
キーボードショートカットに登録できるので簡単に呼び出せます。

また、システム環境設定のセキュリティとプライバシーにある
「スリープとスクリーンセーバの解除にパスワードを要求」を設定すれば
画面のロックもすることができるので便利です。

1
1
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
1
1