- EC Boston
- Many Websites
- Catalog App
- Mini Scripts
|
|
Refresh HTML File
Download AppleScript
I encountered a situation where files couldn't be easily batch processed without first copying the contents into a new file and saving as the old name. Sounds like a perfect situation for scripting, right? Indeed it is! I quickly drafted up this script to do just that across all files in all folders (recursive) in a chosen directory. Currently it only touches HTML files, but if you are savvy, you could modify it to only perform this on TXT, or RTF files.
If you use FlashGot with Mozilla Firefox to batch download web pages and content, it saves the HTML files as foreign files and prompts you to confirm you want to open a downloaded file before opening it.
|
|
Rename Files
Download AppleScript
When faced with batch renaming thousands of files to remove a prefix of various numbers followed by a short string, I knew there would be a quicker way than manually retyping the file names. I created a script that recognizes if the file name starts with the prefix, or if there are significant numbers at the beginning, and then deletes the prefix from the file name if it exists. It also works recursively in the chosen folder so you can process a whole tree of files at once.
|
|
Show Long Filenames
Download AppleScript
1, 2, 3, 4, 5... Counting the number of characters in every file name would just take forever! But wait, what if AppleScript counts the file name length and flags the ones that are too long? Of course! It can change the label of the long ones to a super-visible red, toggle freshly shortened names to no label color, and create a list of those that are too long. How about it also work recursively in a chosen folder? Easy and efficient solution? Definitely.
|
|