comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » how to get filename of current PS output
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to get filename of current PS output [message #7280 is a reply to message #7212] Thu, 24 October 1996 00:00 Go to previous message
Peter Mason is currently offline  Peter Mason
Messages: 145
Registered: June 1996
Senior Member
On 18 Oct 1996, T.Osborn wrote:
> Is there any way in which a program can find out the filename of the
> currently open postscript file. I know you can do help,/device to
> display it on the screen, but I'm not sure how to put the filename into
> a variable.

The default filename is "idl.ps". If you set your own filename with the
DEVICE,FILENAME=... command (after doing SET_PLOT,'PS'), then the easiest
way to know the filename is to keep track of the one you used!
If you simply have to do it automatically, then do:
J=FSTAT(!D.UNIT) &FNAME=J.NAME
(This will only work if something has already been written out to the file.)

I imagine that you might be wanting to do this to find out the directory
in which the file has been created. I think the only way to do this is
to include a full path spec in DEVICE,FILENAME=...


Peter Mason
[Message index]
 
Read Message
Read Message
Previous Topic: Re: PV Wave visualization experts?
Next Topic: Re: [Q] writing color JPEGS

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 23:25:56 PDT 2025

Total time taken to generate the page: 1.44038 seconds