Skip to content

Instantly share code, notes, and snippets.

@nicolinuxfr
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolinuxfr/0b9efc1c11dfcd4bd00c to your computer and use it in GitHub Desktop.
Save nicolinuxfr/0b9efc1c11dfcd4bd00c to your computer and use it in GitHub Desktop.
Script pour couper les mises à jour automatiques de Chrome
-- 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