From 84d885d1337b4975928b034a07844104c1cb3924 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Thu, 27 Nov 2014 11:59:15 -0300 Subject: [PATCH 1/2] Use postflight DSL with key option in alfred --- Casks/alfred.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Casks/alfred.rb b/Casks/alfred.rb index 63d24efc6f..745d5623df 100644 --- a/Casks/alfred.rb +++ b/Casks/alfred.rb @@ -10,7 +10,6 @@ cask :v1 => 'alfred' do app 'Alfred 2.app/Contents/Preferences/Alfred Preferences.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.runningwithcrayons.alfred-2', 'suppressMoveToApplications', '-bool', 'true' + suppress_move_to_applications :key => 'suppressMoveToApplications' end end From 1ac5469bd80ae72ba8cbb33e9ab252b138671aec Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Thu, 27 Nov 2014 11:59:15 -0300 Subject: [PATCH 2/2] Use postflight DSL with key option in path-finder --- Casks/path-finder.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Casks/path-finder.rb b/Casks/path-finder.rb index 34475abab6..f2b463581f 100644 --- a/Casks/path-finder.rb +++ b/Casks/path-finder.rb @@ -9,8 +9,7 @@ cask :v1 => 'path-finder' do app 'Path Finder.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.cocoatech.PathFinder', 'kNTMoveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications :key => 'kNTMoveToApplicationsFolderAlertSuppress' end zap :delete => [