What I'm wanting to do is have the dock hide when I am using after effects. When I got to another app I want the dock to automatically show again. I am confused how to run this and would really appreciate the help. Here is screenshots of what I have, and the script I am using is
tell application "System Events"
set the autohide of the dock preferences to true
end tell