Last active
August 29, 2015 14:10
-
-
Save nicolinuxfr/0b9efc1c11dfcd4bd00c to your computer and use it in GitHub Desktop.
Script pour couper les mises à jour automatiques de Chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Affichage d'une notification | |
on notif(message) | |
display notification message with title "Mises à jour Chrome" | |
delay 1 | |
end notif | |
-- Lecture du paramètre actuel | |
set majAuto to do shell script "defaults read com.google.Keystone.Agent checkInterval" as string | |
-- Modification : si les mises à jour étaient coupées, alors les relancer. Et vice-versa. | |
if majAuto is "0" then | |
do shell script "defaults write com.google.Keystone.Agent checkInterval 18000" | |
my notif("Mises à jour automatiques relancées") | |
else | |
do shell script "defaults write com.google.Keystone.Agent checkInterval 0" | |
my notif("Mises à jour automatiques coupées") | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment