I'm trying find an automated way to cancel Watch Folder mode in After Effects on all of the machines on my Render Farm. When I need to restart the machines or relaunch AE I must use Remote Destop to access each machine then click "Cancel" in each one's Watch Folder window. When the watch folder window is open AE won't run ".jsx" scripts & Remote Desktop's Restart All times out. I'm thinking the only way to do it is a script that simulates clicking the "Cancel" button in the Watch Folder window.
This is what I came up with but it's not working:
activate application "Adobe After Effects CS3"
tell application "System Events"
tell process "Adobe After Effects CS3"
click button "Cancel" of window "Watch Folder"