I want every file downloaded to my Downloads folder to have its file extension hidden. So I use the built-in AppleScript
- Code: Select all
tell application "Finder"
set extension hidden of theFile to true
end tell
I have a rule that is applied to every file downloaded that contains this AppleScript. However, I also want certain files to also be moved to an appropriate folder based on the site they were downloaded from, so for this I need a rule that has both this AppleScript and the file-moving part. I have about six of these rules, so I need to duplicate this built-in AppleScript for each.
What should be allowed, and what's the most intuitive, would be for a file that needs to be moved to another folder, have the extension-hiding rule AND the file-moving rule be applied to that file, so I wouldn't have to duplicate the AppleScript each time. This way, each file-moving rule would just contain the command to move the file to the appropriate folder.