Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to do some batch processing in terminal with texturePacker. The creator of texturePacker said that this is the way that you batch convert a directory of .pngs to .pvr.ccz.

find <directoryname> -name \*.png | sed 's/\.png//g' | \
    xargs -I % -n 1 TexturePacker %.png \
        --sheet %.pvr.ccz \
        --data dummy.plist \
        --algorithm Basic \
        --allow-free-size \
        --no-trim \
        --opt RGBA4444 \

But I keep getting this output in the terminal. (find: *.png: No such file or directory) Does anyone know why it would be saying that?

share|improve this question
up vote 1 down vote accepted

Did you specify the name of the directory containing the files: where the placeholder <directoryname> is? Is there at least one file ending in .png in that directory?

Try with the first part of the command:

find <directoryname> -name \*.png

to see if you get the list of files.

share|improve this answer
I did replace it with the correct directory and all of the files in that directory are named sequentially frame0.png frame1.png etc... – Stephen Apr 24 '13 at 19:53

It's likely you're not inputting the directory properly. The command you enter in should be something like: find /Users/me/mydir/ -name \*.png […], with no angled brackets, and if you have any spaces in the directory path, be sure to put it in quotes, like so: '/Users/me/my directory/'.

It's also worth noting that the command will act on any PNGs not just within the directory you give it, but also any subdirectories.

An alternate (and slightly more concise) version that just acts on the current directory would be:

for f in *.png; do TexturePacker "$f" --sheet ${f%.*}.pvr.ccz --data dummy.plist --algorithm Basic --allow-free-size --no-trim --opt RGBA4444 --dither-fs; done

Navigate to whatever directory you want in Terminal (easiest way is to type cd, drag the folder onto the Terminal window and hit enter), then run that command.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.