Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 1, 2012, 08:47 AM   #1
ludwip
macrumors newbie
 
Join Date: Dec 2012
How can Automator or Applescript rotate 500,000 images in folders and subfolders.

Hi Everyone,
I have very specific question.
I've got 500,000 images that sit in 98 subfolders. Some of the subfolders contain 25,000 images.
Now my question: 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?
By the way I'm running OS Mountain Lion
I really hope that someone will help me with this one.
ludwip is offline   0 Reply With Quote
Old Dec 1, 2012, 08:55 AM   #2
ChristianJapan
macrumors Demi-God
 
ChristianJapan's Avatar
 
Join Date: May 2010
Location: 日本
have a look on ImageMagick (http://www.imagemagick.org) ... a great toolset for image manipulation ...
that in combination with a shell script running recursive through your files will do it.

more hint: http://www.imagemagick.org/script/convert.php

Just make sure you have a backup in case something goes wrong
__________________
Member of MacRumors.com Folding@Home Team (#3446) & developer of the F@H Mobile Monitoring app.
ChristianJapan is offline   0 Reply With Quote
Old Dec 1, 2012, 11:27 AM   #3
subsonix
macrumors 68040
 
Join Date: Feb 2008
Quote:
Originally Posted by ludwip View Post
'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?
Probably. Post the code you have, it sounds like you are adding all files as arguments, you can instead do something like: for all files in folder, apply rotate image.
subsonix is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Automator and/or AppleScript Help jbsmithmac Mac Programming 6 May 5, 2013 05:02 PM
Importing pictures in folders and subfolders to iPhoto? Evangelion Mac Applications and Mac App Store 11 Mar 16, 2013 05:51 AM
Automator and/or Applescript Help downingp Mac Programming 2 Oct 24, 2012 08:35 PM
Digg.com sells for... $500,000? Prof. Community Discussion 30 Jul 17, 2012 04:19 AM
Batch convert all of my tiffs to jpeg2000 into original folders and subfolders TomJak Digital Photography 4 Jun 11, 2012 05:30 AM

Forum Jump

All times are GMT -5. The time now is 01:45 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC