Page 1 of 1

Renaming drops extension

PostPosted: 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.

Re: Renaming drops extension

PostPosted: 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

Re: Renaming drops extension

PostPosted: 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.