Posted on 07-04-2017 10:53 AM
Hi,
Does anyone have a script to disable icon previews in Mac OS Sierra?
I found an old script I used on previous OS X but this doesn't work fully, it disables it in finder/desktop but if I browse to a network share icon previews are turned back on again
Cheers
Matt
Posted on 07-05-2017 07:59 AM
This one?
Run at user login:
loggedInUser=/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'
plistbuddy=/usr/libexec/PlistBuddy
plistfile=/Users/$loggedInUser/Library/Preferences/com.apple.finder.plist
$plistbuddy -c 'Delete StandardViewSettings:ExtendedListViewSettings:showIconPreview' $plistfile;
$plistbuddy -c 'Delete StandardViewSettings:IconViewSettings:showIconPreview' $plistfile;
$plistbuddy -c 'Delete StandardViewSettings:ListViewSettings:showIconPreview' $plistfile;
$plistbuddy -c 'Delete StandardViewOptions:ColumnViewOptions:ShowIconThumbnails' $plistfile;
$plistbuddy -c 'Delete StandardViewOptions:ColumnViewOptions:ColumnShowIcons' $plistfile;
$plistbuddy -c 'Add StandardViewSettings:ExtendedListViewSettings:showIconPreview bool false' $plistfile;
$plistbuddy -c 'Add StandardViewSettings:IconViewSettings:showIconPreview bool false' $plistfile;
$plistbuddy -c 'Add StandardViewSettings:ListViewSettings:showIconPreview bool false' $plistfile;
$plistbuddy -c 'Add StandardViewOptions:ColumnViewOptions:ShowIconThumbnails bool false' $plistfile;
$plistbuddy -c 'Add StandardViewOptions:ColumnViewOptions:ColumnShowIcons bool false' $plistfile;
chown -R "$loggedInUser:staff" $plistfile
dsstore=/Users/$loggedInUser/Library/Preferences/com.apple.desktopservices.plist
defaults write $dsstore DSDontWriteNetworkStores true
chown -R "$loggedInUser:staff" /Users/$loggedInUser/Library/Preferences/com.apple.desktopservices.plist
killall cfprefsd
killall Finder
Posted on 07-05-2017 09:01 AM
Also "Note that existing .DS_Store files on an SMB share may override these defaults"