action:Start_Screen_Saver
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| action:Start_Screen_Saver [2022/09/28 04:47] – peternlewis | action:Start_Screen_Saver [2023/10/26 14:14] (current) – peternlewis | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====== Start and Stop Screen Saver ====== | ====== Start and Stop Screen Saver ====== | ||
| - | The //Start and Stop Screen Saver// actions immediately start or stop the screensaver selected in System Preferences. . | + | The //Start and Stop Screen Saver// actions immediately start or stop the screensaver selected in System Preferences. |
| + | |||
| + | Note that there is a bug in macOS such that, depending on your system preferences, | ||
| + | |||
| + | ``` | ||
| + | delay 1 | ||
| + | tell application " | ||
| + | ``` | ||
| + | |||
| + | You can display what the system thinks the current screen server is with the AppleScript: | ||
| + | |||
| + | ``` | ||
| + | tell application " | ||
| + | ``` | ||
| + | |||
| + | To resolve this issue, you can change your screen server settings until the system figures it out and the above command returns something valid, or you can use the AppleScript and select a screen saver explicitly like this: | ||
| + | |||
| + | ``` | ||
| + | delay 1 | ||
| + | tell application " | ||
| + | ``` | ||
| + | |||
| + | You can get a list of the options with: | ||
| + | |||
| + | ``` | ||
| + | tell application " | ||
| + | ``` | ||
| + | |||
| + | ===== See Also ===== | ||
| + | |||
| + | ==== Actions ==== | ||
| + | |||
| + | * [[Execute an AppleScript]] | ||
| + | * [[: | ||
| ===== See Also ===== | ===== See Also ===== | ||
action/Start_Screen_Saver.1664340475.txt.gz · Last modified: by peternlewis
