Manipulating Postscript File
Manipulating Postscript File
- Subject: Manipulating Postscript File
- From: email@hidden
- Date: Thu, 24 Jan 2002 01:17:04 EST
Here's the scenario:
I have a Freehand 9 file which needs to be printed using thousands of
different addresses. Instead of doing all that manually, I want to write a
script to make the substitutions. Here's what I'm hoping I can do:
I'd like to write a postscript file to disk just once, open the .ps file in a
text editor such as BBEdit, do a search and replace with the new address and
save the file under a new name.
I won't have any trouble scripting most of this myself, but I am stuck on
searching and replacing in the .ps file and I don't know enough about
postscript to solve this myself. When I do a search for the address, it
fails. I think it's because the string is coded in hex instead of just as an
ascii string. If that's not correct, does anyone know why I can't find the
string?
Can anyone help me to learn how to search a Freehand 9 postscript file to
find a string of text and replace it with another string (which will probably
need to be converted to hex, if that's in fact what's happening)? Any in
formation about this, complete or not, will be greatly appreciated.
Thanks in advance!
Ken Fleisher
email@hidden