Needing Automator Quick Action help

jayhawk1941

macrumors newbie
Original poster
Oct 9, 2018
13
4
Long story short, I have to upload thousands of pictures to a website that only allows 50 pictures per upload (I know it's ridiculous...it's for a yearbook). I'm wanting to create a Quick Action in Finder that takes photos in the current folder and, upon clicking the button for the Quick Action, takes those photos and puts them into folders that hold 50 photos each. The folders can be named anything, but preferably would just be named 1, 2, 3, etc.

I am familiar with programming in C, Objective-C, and Swift, but this is my first foray into using Automator. Any help would be greatly appreciated!!!
 

jayhawk1941

macrumors newbie
Original poster
Oct 9, 2018
13
4
Anyone use Automater here? Or do you think I might have more luck on Apple’s message boards?
 

cruisin

macrumors 6502a
Apr 1, 2014
962
223
Canada
Automator isn't that great for fine tuned actions (like the partial file move you want).

You can use a terminal command (assuming you don't have spaces in the filename and the folder exists):
Code:
mv `ls -p | grep -v / | head -50` folder
The ` are the ones above the TAB key

If you need to make a bunch of folders:
Code:
mkdir 1 2 3 4 5
makes folders named 1, 2, 3, 4, 5
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.