What would be the macro to automatically hide all extensions in a particular folder?

I know my trigger would be a folder, but other than that, I'm lost. How would I go about doing this? Thanks.

Do you mean that you want files that are put into a particular folder to have their extensions hidden? This would be a good start, for a Desktop folder called "Extension Test":

Hide Extension.kmmacros (1.7 KB)

This only works on files, though. If you want to also be able to drop in folders of files it'll be more complicated...

1 Like

Ok. So, I take it 1 means empty?

It worked, thanks!

"Extension hidden" is a boolean property -- true or false. In KM, 0 is false and anything that's not 0 is true.

I checked this by using the "Get File Attribute" action to find out what the "extension hidden" value was for various files :wink: Indeed, KM returns 1 when the extension is hidden, so that's what I used.