Has anyone been successful at deploying folder actions through Casper? There appears to be some potential with an Applescript. I've gotten the following script to work for 10.6 up through 10.10 but the "attach action" command appears to have been deprecated in 10.11. It will enable folder actions on the specified folder in 10.11 but does not assign the folder action script.
tell application "System Events"
attach action to folder "path/to/folder" using "path/to/script"
end tell
My other thought was to edit the “com.apple.FolderActionsDispatcher.plist” located in the user’s preferences folder. This is storing the data that assigns the folder actions and scripts. However, the XML node storing the data I would need to change appears to be encrypted. Initially, my thought was that I could use the “defaults write” command to edit this file and use some variables to accommodate for all the different accounts. Anyone know if there’s a way to edit this plist if it’s encrypted?