こんにちは。
Automaterのデフォルトアクションの「AppleScriptを実行」を使えば、簡単にロック状態を操作できます。
まず、「Finder項目の選択を求める」などのアクションでユーザにファイルかフォルダを選択してもらう部分を組み込みます。
2番目に「AppleScriptを実行」アクションを登録します。
「AppleScriptを実行」の本文を以下の文章に書き換えます。
--ここから
on run {input, parameters}
set b to false
set res to button returned of (display dialog "ロック状態を選択してください。
ロックを外したければOFF、ロックしたい場合はONをクリックします。" as Unicode text buttons {"キャンセル", "OFF", "ON"} with icon 1)
if res is "ON" then set b to true
repeat with i in input
tell application "Finder"
if folder ((i as alias) as text) exists then
set (locked of files of i whose locked is not b) to b
else
set locked of i to b
end if
end tell
end repeat
return input
end run
--ここまで
後はAutomaterを実行すれば、ファイルのロック状態を操作できます。
フォルダを対象にした場合は、その中にあるファイルすべてを対象にして処理します。(正確には、目標のロック状態と異なるファイルのみが対象です)
その他、Automaterには「シェルスクリプトを実行」のアクションもありますので、それらを駆使した場合はものすごく広範囲に自動処理できますね。