applescript – Making Folders Hide and Unhide

When I created my automator service I used the information below. This link does a great job of explaining how to create the automator service.

on run if “chflags hidden ~/Desktop/*” then do shell script “chflags nohidden ~/Desktop/*” else do shell script “chflags hidden ~/Desktop/*” end ifend run

via applescript – Making folders hide and unhide – Stack Overflow.