Skip to content

Instantly share code, notes, and snippets.

View inferjay's full-sized avatar
🏠
Working from home

脉脉不得语 inferjay

🏠
Working from home
View GitHub Profile
on run
-- Read the current value of AppleShowAllFiles
set plistValue to do shell script "defaults read com.apple.finder AppleShowAllFiles"
set plistCommand to "defaults write com.apple.finder AppleShowAllFiles"
if plistValue is "false" then
set shellCommand to plistCommand & " true"
else
set shellCommand to plistCommand & " false"
end if