If you get a AccessDeniedException when processing files you'll need to fix the owner/group and permissions of the output folder.
Fixing Permissions
You can do it either in the DSM environment or with the terminal/command line:
DSM:
Log into DSM of your NAS, as user with admin rights.
Open File Station and locate the destination folder
Right click and select properties
At the bottom of the window you have a drop-down menu that lets you select owner
Give it the same user, that runs your fb-script. Worked with DSM 5.1
If that doesn't seem to work immediately you might have to check the user permissions in Control Panel/User by right-clicking the profile and then setting Permissions.
Terminal:
ssh into your NAS (I did it as root)
type: chown [user] [/path/to/destination]
You have to change [user] and the [path/...] to the profile and the destination you need. I for example do "chown admin /volume2/video/Movies". If that doesn't seem to work immediately you might have to change the user permissions with "chmod 777 /path/to/destination"
That should do it.
[AccessDeniedException] Fixing Permissions
[AccessDeniedException] Fixing Permissions
Please read the FAQ and How to Request Help.