Renaming drops extension

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Renaming drops extension Fri Jul 31, 2020 1:51 pm • by nunuvyurbiz
I'm trying to setup a simple rename:

Code: Select all
Name starts with "Scanned Document"

Rename with pattern: (date created)(extension)


It renames to the date created, but the extension (which was .pdf) gets dropped. I tried changing (extension) to .pdf, and it still just gets dropped. I thought maybe it was there but invisible (even though Finder is set to show all extensions) and added a second step to toggle the extension to visible, and it made no difference.

What am I doing wrong?

Edit: I changed the (extension) setting from no change to lowercase, and now the extension is preserved. Weird.
nunuvyurbiz
 
Posts: 2
Joined: Wed Feb 03, 2016 8:49 pm

Re: Renaming drops extension Sun Aug 02, 2020 2:55 pm • by EdBurke
Is there a reason it must be coded in Applescript? If not, this Hazel rule will work for you...

Image
EdBurke
 
Posts: 11
Joined: Wed Apr 18, 2012 6:58 am

Re: Renaming drops extension Mon Aug 03, 2020 9:52 am • by Mr_Noodle
Try checking the logs. Go to the "Info" section and click "View Log". Search for a file whose extension was getting stripped and post/email in the resulting excerpt.
Mr_Noodle
Site Admin
 
Posts: 8623
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron