Article View: adobe.postscript.programming
Article #1405Re: File rename by Post script file
From: SaGS
Date: Fri, 12 Jul 2002 06:44
Date: Fri, 12 Jul 2002 06:44
12 lines
1954 bytes
1954 bytes
What exactly are you trying to do? While I agree there's no PORTABLE way to get the current date&time from PostScript code, this can be done with Acrobat Distiller, with GhostScript and with Jaws PDF Creator. However, there are other problems I see. You say "rename of exist PDF file before PS file running". Does this mean "automatically backup (by changing its name) an older version of a PDF while creating a newer version"? This is not likely to be done from PROLOG.PS, because PROLOG.PS is not procesed separately from, but as part of, the "main" PostScript file. At the time Distiller executes your "rename", the old PDF file may have already been overwritten, and definitely the new one is not yet available. A second problem: PROLOG.PS cannot figure out automatically the name of the old file. That being said, why not use some kind of operating-system level scripting (batch file, shell script, Windows Script Host) to do the rename and then launch Distiller (or whatever converter you use)?
Technical Details
Message-ID:
<2AC0DB833E632AFFF51683A01E78D427@in.WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef9936d.-1@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c61a,988ca88b1a019ae0 X-Google-Attributes: gid10c61a,public X-Google-ArrivalTime: 2002-07-12 00:59:42 PST From: "SaGS" <AntiSpamRemoveAllZsags54Z95@hotZmail.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.postscript.programming Subject: Re: File rename by Post script file Message-ID: <2AC0DB833E632AFFF51683A01E78D427@in.WebX.aaQKaf7vad4> Date: Thu, 11 Jul 2002 23:44:12 -0700 References: <ef9936d.-1@WebX.aaQKaf7vad4> Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit