Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Benjamindaines

macrumors 68030
Original poster
Mar 24, 2005
2,841
5
A religiously oppressed state
I am looking for a way (preferable using Automator or Terminal) to select the entire contents of a folder, create a new folder and move everything in the first folder to the new one. Oh yeah, and the original folder cannot be modified (other than having everything moved out of it), so you can't copy the folder, paste it in a new location, delete the original and create a new one with the same name.

--thanks.
 
Create a new folder (cmd-shft-n). Select all the items in source folder. Drag to new folder.

Otherwise, I'm confused too.
 
In terms of Terminal, these are basic operations.

Code:
mkdir /path/to/the/new/dir; mv /path/to/dir/to/copy/from/* /path/to/the/new/dir

The semicolon chains the two commands onto one line. Note the asterisk, because it tells mv to move everything within the directory.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.