MacResource
help with Automator script ....again. - Printable Version

+- MacResource (https://forums.macresource.com)
+-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1)
+--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3)
+--- Thread: help with Automator script ....again. (/showthread.php?tid=209696)



help with Automator script ....again. - Fritz - 10-10-2017

I wrote this to remove sub-folders on my music USB stick for the car.
The car software can only access 1500 folders in total.
I have subs for every LP of every one of 300 or so artists, so I've run out.

I would like to be able to d&d a number of folders onto the app at once rather than 1 at a time. Sloooooow.

When I try that now, all the songs of all artists end up in the 1st artist folder.

Can anyone help augment this script?






Re: help with Automator script ....again. - Markintosh - 10-11-2017

Ohhhhh...I like that idea. :popcorn:


Re: help with Automator script ....again. - mattkime - 10-11-2017

I’m getting lost. Need specific examples showing before and after.


Re: help with Automator script ....again. - Fritz - 10-11-2017



all the cuts from all the LP subfolders, move to 1 folder for each individual artist.
right now I can do it with that script, but one artist at a time.

I'd like to d&d 10 artists folders onto the automator app at once and have all songs for one artist go to that artist folder.




Re: help with Automator script ....again. - Marc Anthony - 10-12-2017

Automator is practically incomprehensible to me, so I'm not the one to advise you on your requested method. AppleScript, however, could easily do the job.

set enclosingFolder to (choose folder)

tell application
Finder
set AllFolders to enclosingFolder's folders
repeat with aFolder in AllFolders
move aFolder's entire contents's files to aFolder
delete aFolder's folders
end repeat
end tell



Re: help with Automator script ....again. - Fritz - 10-13-2017

unfortunately, script didn't do anything.


Re: help with Automator script ....again. - Marc Anthony - 10-13-2017

Surely the script returned some value in the Script Editor, even if it was an error. Did you run the script on the correct folder? The enclosing folder choice must be the folder that contains all the other music folders—from Alice Coltrane to Be-Bop Deluxe.


Re: help with Automator script ....again. - Fritz - 10-14-2017

operator error. works very well on a test of 10 folders and their subs.
Thanks very.


Re: help with Automator script ....again. - Fritz - 10-23-2017

Thanks again, Marc. works quite well.