AppleScript to hide file extension of selected Finder file(s)
Hello, I am trying to write an AppleScript that would hide the file extension of one or more files selected in the Finder.
I tried a number of approaches, none worked for me. (I also tried to write a script that would hide the extension of all files is a folder, also without success.)
For example, why would this not work:
tell application "Finder"
set fileList to every file of the selection
repeat with currentFile in fileList
set extension hidden of currentFile to true
end repeat
end tell
Would appreciate any help and guidance.
Thank you.
MacBook Pro