Always a problem with a Mac
The best way is not Gimp but imagemagick,
http://www.imagemagick.org Running the mogrify command in the images folder
mogrify -units pixelsperinch -density 300 *.*
snags: not going to work with .xcf format, always dangerous to alter files in place, best to use with copies.
For Gimp, a quick hack of an existing plugin. Attached, unzip and put in your Gimp user plugins folder, wherever that is in a Mac. Check that permissions are set. Registers bottom of Tools menu
Looks like this in linux Gimp 2.8.22

snags: Only one file type at a time, + same as with IM.
(Edit: One of those python plugins that does not work with the regular Windoze Gimp 2.10 - No problems with Partha's version)