How can Automator or Applescript rotate 500,000 images in folders and subfolders?

Posted by Ludi on Super User See other posts from Super User or by Ludi
Published on 2012-12-01T13:38:05Z Indexed on 2012/12/01 17:07 UTC
Read the original article Hit count: 211

I have very specific question.

I've got 500,000 images that sit in 98 subfolders. Some of the subfolders contain 25,000 images.

Is there any script/automator workflow that I can use?

I was trying to create a workflow:

  1. Ask for Finder Items
  2. Get Folder Contents (tick repeat for each subfolder found)
  3. Rotate images

It works OK, but only for these folders where there is less than 4,096 files: I normally receive following error message:

Rotate images failed - 1 error too many arguments (12019) -- limit is 4096

Is there any way to increase this limit or create completely different apple script? I really hope that someone will help me with this one.

© Super User or respective owner

Related posts about osx

Related posts about automation