現在のドキュメントのすべてのレイヤーの名前を置き換えることができますが、「名前が終わる場所」を渡すと失敗し、例外は貴重なフィードバックを提供しません。
tell application "Adobe Photoshop CS3"
tell current document
set name of every layer where name ends with "copy*" to "replace_using_sed"
end tell
終わりを告げる
エラーを見つけることができますか、それとも別の方法を知っていますか?