Skip to main content

Thanks slhck for your Answeranswer, it helped me a bunch to getdo what I wanted done.

So sinceSince I like shortcuts, I created a "Run Shell Script" Service thoughthrough Automator.:

for f in "$@"
do
    STATUS=`getFileInfo -ae "$f"`
    if [ $STATUS== 0 ];
    then
        SetFile -a E "$f"
    else
        SetFile -a e "$f"
    fi
done

Then I went toin Finder -> Services Preferences and, I added a shortcut to the Service.

 "Command + Shift + H" didn't work for me,
 "Command + H" hides the application
 so i chose "Command + Shift + E"

Hope it helpsCommand+Shift+H didn't work for me, and Command+H hides the application. =)I chose Command+Shift+E.

Thanks slhck for your Answer, it helped me a bunch to get what I wanted done.

So since I like shortcuts, I created a "Run Shell Script" Service though Automator.

for f in "$@"
do
    STATUS=`getFileInfo -ae "$f"`
    if [ $STATUS== 0 ];
    then
        SetFile -a E "$f"
    else
        SetFile -a e "$f"
    fi
done

Then I went to Finder -> Services Preferences and added a shortcut to the Service.

 "Command + Shift + H" didn't work for me,
 "Command + H" hides the application
 so i chose "Command + Shift + E"

Hope it helps. =)

Thanks slhck for your answer, it helped me do what I wanted.

Since I like shortcuts, I created a "Run Shell Script" Service through Automator:

for f in "$@"
do
    STATUS=`getFileInfo -ae "$f"`
    if [ $STATUS== 0 ];
    then
        SetFile -a E "$f"
    else
        SetFile -a e "$f"
    fi
done

Then in Finder -> Services Preferences, I added a shortcut to the Service.

Command+Shift+H didn't work for me, and Command+H hides the application. I chose Command+Shift+E.

Back tick after STATUS= command
Source Link

Thanks slhck for your Answer, it helped me a bunch to get what I wanted done.

So since I like shortcuts, I created a "Run Shell Script" Service though Automator.

for f in "$@"
do
    STATUS=`getFileInfo -ae "$f""$f"`
    if [ $STATUS== 0 ];
    then
        SetFile -a E "$f"
    else
        SetFile -a e "$f"
    fi
done

Then I went to Finder -> Services Preferences and added a shortcut to the Service.

 "Command + Shift + H" didn't work for me,
 "Command + H" hides the application
 so i chose "Command + Shift + E"

Hope it helps. =)

Thanks slhck for your Answer, it helped me a bunch to get what I wanted done.

So since I like shortcuts, I created a "Run Shell Script" Service though Automator.

for f in "$@"
do
    STATUS=`getFileInfo -ae "$f"
    if [ $STATUS== 0 ];
    then
        SetFile -a E "$f"
    else
        SetFile -a e "$f"
    fi
done

Then I went to Finder -> Services Preferences and added a shortcut to the Service.

 "Command + Shift + H" didn't work for me,
 "Command + H" hides the application
 so i chose "Command + Shift + E"

Hope it helps. =)

Thanks slhck for your Answer, it helped me a bunch to get what I wanted done.

So since I like shortcuts, I created a "Run Shell Script" Service though Automator.

for f in "$@"
do
    STATUS=`getFileInfo -ae "$f"`
    if [ $STATUS== 0 ];
    then
        SetFile -a E "$f"
    else
        SetFile -a e "$f"
    fi
done

Then I went to Finder -> Services Preferences and added a shortcut to the Service.

 "Command + Shift + H" didn't work for me,
 "Command + H" hides the application
 so i chose "Command + Shift + E"

Hope it helps. =)

Source Link

Thanks slhck for your Answer, it helped me a bunch to get what I wanted done.

So since I like shortcuts, I created a "Run Shell Script" Service though Automator.

for f in "$@"
do
    STATUS=`getFileInfo -ae "$f"
    if [ $STATUS== 0 ];
    then
        SetFile -a E "$f"
    else
        SetFile -a e "$f"
    fi
done

Then I went to Finder -> Services Preferences and added a shortcut to the Service.

 "Command + Shift + H" didn't work for me,
 "Command + H" hides the application
 so i chose "Command + Shift + E"

Hope it helps. =)