开发者

pdf2swf using MAC OS Batch command or Apple script

开发者 https://www.devze.com 2022-12-30 01:33 出处:网络
How do I write a batch process on the Mac for pdf2swf, I want to convert all pdfs in a folder into swf. But pdf2swf doesn\'t have a option to c开发者_高级运维onvert a folder of pdfs to swfs, you have

How do I write a batch process on the Mac for pdf2swf, I want to convert all pdfs in a folder into swf. But pdf2swf doesn't have a option to c开发者_高级运维onvert a folder of pdfs to swfs, you have to do it one at a time. I'm not sure how if I should use a Apple script or a Shell script, either one I'm not sure how to get or assign a file name variable.

pdf2swf file_name_variable.pdf -o file_name_variable.swf -T 9 -f

Thanks


Open up Terminal and do something like this:

$ for f in `find /path/to/my/pdf/directory -name \*.pdf` ; do
>   echo "Processing $f..."
>   pdf2swf $f -o ${f/.pdf/.swf} -T 9 -f
> done
0

精彩评论

暂无评论...
验证码 换一张
取 消