Hello all, this is my first time here and thanks for any advice.
I have written some workflow scripts with Automator and they keyboard shortcuts all work except when I start or restart the machine. Then I must drop the services menu down and hover over the scripts with the mouse. I can then close the menu without executing the scripts and the keystrokes will then execute the script. Below is the code which hides/unhides all desktop icons but leaves any mounted disk icons visable.
set spacechar to ASCII character 32
do shell script “ls -Ol ~/Desktop/” – Read chflags in ls
if result contains “staff” & spacechar & spacechar & “hidden” then
do shell script “chflags nohidden ~/Desktop/"
do shell script "chflags hidden ~/Desktop/”
I have some screenshots but cannot find where to upload them.
Model: iMac (27-inch, Mid 2011)
Browser: Safari 601.2.7
Operating System: Mac OS X (10.10)