Mac OS X Technologies

AppleScript to hide file extension of selected Finder file(s) Question marked as solved helpful ★ Latest reply  by  VikingOSX Latest update on the question 1 reply 44 views asked by  Hilal Malawi User profile for user: NarcisMG NarcisMG User level: Level 1 Path Visual Studio Code

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.

Click to rate this post!
[Total: 0 Average: 0]

Related posts

Automator help


Xcode build failed


Leave a Comment