Mac/Automator - How to ignore subfolders in search?


8 replies to this topic - - - - -

#1 emmx

    Neowinian²

  • 189 posts
  • Joined: 20-February 05
  • Location: Michigan

Posted 13 January 2013 - 20:10

I'd like to setup a workflow to organize my Mac's Downloads folder. I'm starting with moving all the images to the Pictures folder, but I don't want to move the images that are in subfolders, because I download many things that include images with them, and I don't want those images being separated from the folder they belong in.

For example, if I have downloaded a Wordpress theme, I want those images to stay in their theme folder instead of being moved to "Pictures".

So how do I make finder (within automator) only select the immediate images in the downloads folder and ignore subfolders?

I realize it would be easy for me to sort by "kind" and move them all manually. I'm just fooling around with Automator, and maybe I'll set this as a future automatic, periodic task.


#2 einsteinbqat

    Resident Fanatic

  • 869 posts
  • Joined: 16-May 02
  • Location: Canada
  • OS: OS X Mountain Lion • 10.8.3
  • Phone: iPhone 4S 64GB • iPad 2 32GB • iOS 6.1.3

Posted 13 January 2013 - 20:45

View Postemmx, on 13 January 2013 - 20:10, said:

I'd like to setup a workflow to organize my Mac's Downloads folder. I'm starting with moving all the images to the Pictures folder, but I don't want to move the images that are in subfolders, because I download many things that include images with them, and I don't want those images being separated from the folder they belong in.

For example, if I have downloaded a Wordpress theme, I want those images to stay in their theme folder instead of being moved to "Pictures".

So how do I make finder (within automator) only select the immediate images in the downloads folder and ignore subfolders?

I realize it would be easy for me to sort by "kind" and move them all manually. I'm just fooling around with Automator, and maybe I'll set this as a future automatic, periodic task.

Try this. This seems to be working.

You run the app, and select a folder. The app looks for jpg in that folder only, and ignores any subfolder. Then it moves the jpf files found to the Pictures folder.

Attached Images

  • Attached Image: Screen Shot 2013-01-13 at 15.44.27.png


#3 einsteinbqat

    Resident Fanatic

  • 869 posts
  • Joined: 16-May 02
  • Location: Canada
  • OS: OS X Mountain Lion • 10.8.3
  • Phone: iPhone 4S 64GB • iPad 2 32GB • iOS 6.1.3

Posted 13 January 2013 - 20:52

By the way, you should have posted this in the Mac subforum.

#4 OP emmx

    Neowinian²

  • 189 posts
  • Joined: 20-February 05
  • Location: Michigan

Posted 15 January 2013 - 02:10

View Posteinsteinbqat, on 13 January 2013 - 20:45, said:

Try this. This seems to be working.

You run the app, and select a folder. The app looks for jpg in that folder only, and ignores any subfolder. Then it moves the jpf files found to the Pictures folder.
Thank you! That works, except in your screenshot it doesn't show to select "folders" in the "Ask for finder items" step. I think this is a huge step in the right direction. Now to find a way to do it that does not involve any interaction from me (selecting the folder every time it runs).

EDIT: I replaced the first rule (Ask for finder items) with the "Find finder items" where the KIND is Folder and the Name is Downloads (searching under my home directory). You got me to that point though. Thanks again!

#5 einsteinbqat

    Resident Fanatic

  • 869 posts
  • Joined: 16-May 02
  • Location: Canada
  • OS: OS X Mountain Lion • 10.8.3
  • Phone: iPhone 4S 64GB • iPad 2 32GB • iOS 6.1.3

Posted 15 January 2013 - 02:13

Yes, sorry. I forgot to mention that you had to change files to folder. I took the screenshot before changing it, and just told myself that I would tell you, but obviously forgot.

View Postemmx, on 15 January 2013 - 02:10, said:

Thank you! That works, except in your screenshot it doesn't show to select "folders" in the "Ask for finder items" step. I think this is a huge step in the right direction. Now to find a way to do it that does not involve any interaction from me (selecting the folder every time it runs).


#6 einsteinbqat

    Resident Fanatic

  • 869 posts
  • Joined: 16-May 02
  • Location: Canada
  • OS: OS X Mountain Lion • 10.8.3
  • Phone: iPhone 4S 64GB • iPad 2 32GB • iOS 6.1.3

Posted 15 January 2013 - 02:27

In that case, try the following. Simply running the app should suffice.

Attached Images

  • Attached Image: Screen Shot 2013-01-14 at 21.45.01.png


#7 Marshall

    Neowinian UNSTOPPABLE

  • 7,349 posts
  • Joined: 22-June 03
  • Location: USA

Posted 15 January 2013 - 02:30

Moved Here

#8 OP emmx

    Neowinian²

  • 189 posts
  • Joined: 20-February 05
  • Location: Michigan

Posted 19 January 2013 - 15:39

I more or less used the same settings you told me to use, but a tad different. I attached a screenshot of what I am using now and it's working like a charm. Thank you!

Attached Images

  • Attached Image: Screen shot 2013-01-19 at 10.36.27 AM.png


#9 einsteinbqat

    Resident Fanatic

  • 869 posts
  • Joined: 16-May 02
  • Location: Canada
  • OS: OS X Mountain Lion • 10.8.3
  • Phone: iPhone 4S 64GB • iPad 2 32GB • iOS 6.1.3

Posted 19 January 2013 - 22:13

Cool! :)