Created
October 20, 2020 08:48
-
-
Save adriannier/ae39b055315e63fa78de542b45b9c35c to your computer and use it in GitHub Desktop.
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
osascript -e 'set safariCacheFolder to (((path to library folder from user domain) as text) & "Caches:com.apple.Safari")' -e 'try' -e 'set safariCacheFolderInfo to info for alias safariCacheFolder' -e 'on error' -e 'set safariCacheFolderInfo to false' -e 'end try' -e 'if safariCacheFolderInfo is not false then' -e 'do shell script "touch -f " & quoted form of (POSIX path of safariCacheFolder)' -e 'return (size of safariCacheFolderInfo) / (1000 ^ 2)' -e 'end if' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment