if lockFile then (current application's NSFileManager's defaultManager()'s setAttributes:{NSFilePosixPermissions:292} ofItemAtPath:(POSIX path of theFile & "/Contents/Resources/Scripts/main.scpt") |error|:(missing value)) -- the equivalent of -r--r--r--