How to add script to unlock a locked file

I was able to run permission reset using script for Hazel perfectly fine.
No I'm trying to add script to UNLOCK a file but it fails, mostly with a "1" which indicates error or failure and in fact the file doesn't get unlocked.
None of these worked....
tell application "Finder"
set locked of every file of folder this_folder to false
end tell
....
tell application "Finder"
set locked of file tfile to false
end tell
....
tell application "Finder"
set locked of file theFile to false
end tell
....
I also tried shell script but I didn't get any further...
chflags -R nouchg %1
....
SetFile -a l %1
=======
Does any of these has a slight chance to work?
Thanks.
No I'm trying to add script to UNLOCK a file but it fails, mostly with a "1" which indicates error or failure and in fact the file doesn't get unlocked.
None of these worked....
tell application "Finder"
set locked of every file of folder this_folder to false
end tell
....
tell application "Finder"
set locked of file tfile to false
end tell
....
tell application "Finder"
set locked of file theFile to false
end tell
....
I also tried shell script but I didn't get any further...
chflags -R nouchg %1
....
SetFile -a l %1
=======
Does any of these has a slight chance to work?
Thanks.