Skip to content

Instantly share code, notes, and snippets.

@tperfitt
Created May 25, 2014 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tperfitt/64c6bf9ed862d77e5100 to your computer and use it in GitHub Desktop.
Save tperfitt/64c6bf9ed862d77e5100 to your computer and use it in GitHub Desktop.
folders=`mdfind -onlyin ~ 'kMDItemContentType==public.folder && kMDItemDisplayName == Dropbox'`
for folder in $folders
do
if [ -e $folder/$'Icon\r' ]
then
echo $folder
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment