Is there a command in terminal that does it for a batch of files ??
Is there something wrong with using the Terminal and systems supplied 'pstopdf' tool?
#!/bin/bash
#
# sudo chmod 777 ps2pdf
for f in *.ps
do
pstopdf "$f"
done
Code:for f in *.ps
for f in "$@"
for f in *.ps
do
pstopdf "$f"
done
That line should be:
Code:for f in "$@"
You don't have to make it a separate shell script, though. The OP could just copy and paste these lines into a Terminal window (assuming his shell is bash).
Code:for f in *.ps do pstopdf "$f" done
This assumes the ps files all end in ".ps", and they are all in the current directory. To improve the script, though, we'd need the OP to tell us more about where the ps files are located, e.g. whether they're in nested sub-dirs, on a remote server, etc.
This assumes the ps files all end in ".ps", and they are all in the current directory. To improve the script, though, we'd need the OP to tell us more about where the ps files are located, e.g. whether they're in nested sub-dirs, on a remote server, etc.