Rename X items... Shortcut

Hi!


I'm trying to add the "Rename X items…" menu option to work as a shortcut in Finder.

When I select multiple files in a Finder window I would like to use option-shift-enter to open the batch renaming window.

But I can't get this to work.

I've added the shortcut to system preferences and written it as it should be written. But what should I write instead of a number, to indicate variable value?


Say I select 2 files.

The shortcut has to be written as "Rename 2 files…" in System Preferences.

This works fine.

But if I select 3 files the same shortcut won't work. I have to add or change the shortcut to "Rename 3 files…"

But of course, if I select any other amount of files, this shortcut becomes unusable again.


How to I tell Shortcuts in System preferences that option-shift-enter should work for all quantities of selected files?

"Rename [variable value] items…" is what I want my Mac to understand.


Thanks in advance

-Erling

MacBook Pro TouchBar and Touch ID, macOS High Sierra (10.13.3), 15" 2.9Ghz i7 16GB RAM 512GB SSD

Posted on Jun 10, 2018 7:29 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 10, 2018 12:28 PM

Try this solution for another similar problem, Re: Command to move email to new folder

For your case, the first code block should be:

tell application "System Events"

tell process "Finder"

set RenameMenu to every menu item of menu "File" of menu bar 1 whose name starts with "Rename"

click (item 1 of RenameMenu)

end tell

end tell


Save that as an Application and nam it, "Rename Items"


The second code block (for the automator action) would be:

on run {input, parameters}

tell application "Rename Items" to run

end run

Follow the procedures in the other thread to create the shortcut and allow the script application to run.

Similar questions

1 reply
Question marked as Top-ranking reply

Jun 10, 2018 12:28 PM in response to Last Wordz

Try this solution for another similar problem, Re: Command to move email to new folder

For your case, the first code block should be:

tell application "System Events"

tell process "Finder"

set RenameMenu to every menu item of menu "File" of menu bar 1 whose name starts with "Rename"

click (item 1 of RenameMenu)

end tell

end tell


Save that as an Application and nam it, "Rename Items"


The second code block (for the automator action) would be:

on run {input, parameters}

tell application "Rename Items" to run

end run

Follow the procedures in the other thread to create the shortcut and allow the script application to run.

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.

Rename X items... Shortcut

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