I would like to know if this is possible/easy with automator:
I need a copy of a directory tree (folders and subfolders) that only contains jpg, gif and other images. I need to retain the directory structure (empty folders are OK), but remove non-image files. I can use three letter file extensions to differentiate the image files.
For example,
parent/folder/images/one.jpg
parent/folder/images/two.jpg
parent/folder2/images/one.gif
parent/folder2/text2.txt
parent/text.txt
parent/three.jpg
would become:
parent/three.gif
parent/folder/images/one.jpg
parent/folder/images/two.jpg
parent/folder2/images/one.jpg
My backup plan is to write a perl script, but I wonder if Automator would be easier? I have almost no experience with Automator and thus am not sure where to begin. Any help is appreciated.
TIA,
derekhed
Model: MacBook Pro
AppleScript: 2.2.1?
Browser: Safari 525.27.1
Operating System: Mac OS X (10.5)