Toggle Folder Locked/Unlocked via AppleScript or Automator?

Is it possible to toggle the Locked/Unlocked status of a folder via Applescript or Automator? I have a folder in my Documents folder named “Export Files” that is usually locked to prevent trashing/moving the files by mistake. Every day or so I need to add a file or 2 to this folder and need to unlock it to do that, then lock again when finished. Not a big deal but would be nice to automate/speed this process up.

Thanks in advanced,

Model: iMac 2.8 GHz Intel Core i7
AppleScript: 2.3
Browser: Safari 534.52.7
Operating System: Mac OS X (10.6)


this toggles the locked state of a folder. The literal string must be a valid HFS path

tell application "Finder"
	tell folder "StartupDisk:Path:to:folder" to set locked to not (get locked)
end tell

Thank you so much. Works perfectly. What a time saver for me. Thanks again,