MacOS – way to turn off the ‘Are you sure you want to open 25 items?’ warning in Mojave

command linefindermacosmojave

Ever since upgrading to Mojave, every time I try to open 25 or more files using either cmd ⌘ + or cmd ⌘ + o I get this warning:

25 or more images warning

Opening a bunch of files at once is something I do a lot so I would like to disable this, but wouldn't know where to look for a Terminal command to do it.

Best Answer

This works for me using the latest version of macOS Mojave.

I seem to have found a workaround which will bypass the "Are you sure you want to open 25 items?" Dialog box in Finder. This following AppleScript code will open the selected files in the front most Finder window, without the warning.

tell application "Finder"
    set frontmost to true
    set selectedFiles to get selection as alias list
    open selectedFiles
end tell

You can create a new Automator quick action and add a "run AppleScript" command to the workflow... with the AppleScript code. Then name and save the file. I named my Automator quick service "Open More Than 25.workflow"

enter image description here

Now you can assign your own keyboard shortcut in System Preferences … which will run the "Open More Than 25.workflow", bypassing the "Are you sure you want to open 25 items?" Dialog box in Finder.

enter image description here

Now anytime you have selected files in Finder, pressing that new keyboard shortcut will open the files without the annoying "Are you sure you want to open 25 items?" Dialog box.

Here it is in action using the new "Quick Action"

enter image description here

Here it is in action using the new keyboard shortcut.

enter image description here

If your newly created keyboard shortcut does not work when trying it with the selected files in Finder, it probably means the keyboard shortcut you created is already being used with something else. If so, go back and assign different keys to your keyboard shortcut.