Skip to main content
deleted 15 characters in body
Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275

Given the lack of script-friendliness of the current incarnation of the System Preferences app, perhaps a more fruitful approach would be to use this answer on Ask Different to change the setting directly.

So to turn on time announcements, you would use both of the following:

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled -bool YES "

do shell script "open /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesisServer.app"

And to turn off announcements, you would use just

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled -bool NO "

Given the lack of script-friendliness of the current incarnation of the System Preferences app, perhaps a more fruitful approach would be to use this answer on Ask Different to change the setting directly.

So to turn on time announcements, you would use both of the following:

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled -bool YES "

do shell script "open /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesisServer.app"

And to turn off announcements, you would use just

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled -bool NO "

Given the lack of script-friendliness of the current incarnation of the System Preferences app, perhaps a more fruitful approach would be to use this answer on Ask Different to change the setting directly.

So to turn on time announcements, you would use both of the following:

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled -bool YES "

do shell script "open /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesisServer.app"

And to turn off announcements, you would use just

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled -bool NO "

needs -bool YES instead of 1
Source Link
Daniel
  • 35.1k
  • 31
  • 155
  • 193

Given the lack of script-friendliness of the current incarnation of the System Preferences app, perhaps a more fruitful approach would be to use this answer on Ask Different to change the setting directly.

So to turn on time announcements, you would use both of the following:

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled 1-bool YES "

do shell script "open /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesisServer.app"

And to turn off announcements, you would use just

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled 0-bool NO "

Given the lack of script-friendliness of the current incarnation of the System Preferences app, perhaps a more fruitful approach would be to use this answer on Ask Different to change the setting directly.

So to turn on time announcements, you would use both of the following:

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled 1 "

do shell script "open /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesisServer.app"

And to turn off announcements, you would use just

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled 0 "

Given the lack of script-friendliness of the current incarnation of the System Preferences app, perhaps a more fruitful approach would be to use this answer on Ask Different to change the setting directly.

So to turn on time announcements, you would use both of the following:

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled -bool YES "

do shell script "open /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesisServer.app"

And to turn off announcements, you would use just

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled -bool NO "

Source Link
Daniel
  • 35.1k
  • 31
  • 155
  • 193

Given the lack of script-friendliness of the current incarnation of the System Preferences app, perhaps a more fruitful approach would be to use this answer on Ask Different to change the setting directly.

So to turn on time announcements, you would use both of the following:

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled 1 "

do shell script "open /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesisServer.app"

And to turn off announcements, you would use just

do shell script "defaults write com.apple.speech.synthesis.general.prefs TimeAnnouncementPrefs -dict-add TimeAnnouncementsEnabled 0 "