ファイル拡張子の表示・非表示クイックアクション
2022年2月8日
最終更新日時 :
2022年9月27日
Bellwood-Lab
macOSにはファイルの拡張子を表示・非表示に切り替える機能が標準で備わっています。ファイルのアイコンを選んで,ファイルの情報を見る → 拡張子を表示・非表示のチェックボックスで制御できます。
DaVinci Resolveでレンダリングした動画ファイルの拡張子がデフォルトで非表示になるので,ファイル拡張子をまとめて表示に変更できるクイックアクションを作成しました。
クイックアクションはAutometorで作成します。
選択したファイルの拡張子をまとめて表示させるためのAppleScript
on run {input, parameters}
tell application "Finder"
if not (get selection) = {} then
set theSelection to (selection as alias list)
else
display alert "Nothing selected in the Finder." giving up after 10
return
end if
end tell
repeat with theFile in theSelection
tell application "Finder" to set extension hidden of theFile to false
end repeat
return input
end run拡張子を隠すクイックアクションも同様の手順で作成できます。AppleScriptの13行目の最後の「falese」を「true」に変更するだけです。

