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.