How do I delete file extensions on files in sub folders?

I want to delete all file extensions on the files I have in several sub folders.

If I highlight the files themselves in a folder and run "Get Selected Finder Items", then "Replace Text in Finder Item Names", then it works. However, how can I have Automator choose ALL files in ALL sub folders of a folder and then do it's magic on all those files at once?

Thanks.

17" MacBook Pro 2.4GHz, Mac OS X (10.6.4), Dual 2GHz G5, 17" 1.5GHz Powerbook, PCs.

Posted on Jul 16, 2010 9:37 AM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Jul 16, 2010 3:45 PM

Does the Notebook software accept aliases? If so, you could rename aliases instead of the main file, so that the original extensions are preserved.

For your original question, you can use an action to get the folder contents, and adding a filter action will just give you the file names - for example:

1) *Get Selected Finder Items*
2) *Get Folder Contents* (repeat for each subfolder found)
3) *Filter Finder Items* -- remove items that are folders
4) *Replace Text in Finder Item Names*
8 replies
Sort By: 
Question marked as ⚠️ Top-ranking reply

Jul 16, 2010 3:45 PM in response to Don_McCracken

Does the Notebook software accept aliases? If so, you could rename aliases instead of the main file, so that the original extensions are preserved.

For your original question, you can use an action to get the folder contents, and adding a filter action will just give you the file names - for example:

1) *Get Selected Finder Items*
2) *Get Folder Contents* (repeat for each subfolder found)
3) *Filter Finder Items* -- remove items that are folders
4) *Replace Text in Finder Item Names*
Reply

Jul 16, 2010 10:01 AM in response to Kappy

I'm using a notes software called Notebook from Mark/Space. When dragging text files from a folder to Notebook, the note takes it's title from the file name. I don't want every note to have a *.txt in the title, so removing the file extensions before dragging the files to Notebook eliminates this problem.
Reply

Jul 18, 2010 9:17 AM in response to red_menace

Thank red_menace, that formula worked! 🙂 However, I had to omit step 3 as it gave an error message. I tried both "Kind is folder" and "Kind is text". But it worked without that step.

I know it's a bad idea to remove extensions, but these files are just copies for this purpose and they really needed no file extension to show up correctly in Notebook.

Thanks again,
Don
Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I delete file extensions on files in sub folders?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.