Skip to content

Instantly share code, notes, and snippets.

@cypok
Last active Nov 14, 2016
Embed
What would you like to do?
OS X Automator service that toggles extension showing
for f in "$@"
do
if [ "`GetFileInfo -ae "$f"`" == "0" ]
then
SetFile -a E "$f"
else
SetFile -a e "$f"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment