Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Print PS file in CUSTOM path

Explorer ,
Sep 08, 2008 Sep 08, 2008
Hi scripters

I want to create PS file my current document. Here is my script

app.activeDocument.print(false);

when I am executing this I am getting application print dialog box. Now what my problem is the Save PostScript File dialog box goes to default location. I want the change Save PostScript File dialog box path to activeDocument path

If I work with print preferences

myFile = new File("D:/1/test/test.ps" );
document.printPreferences.printFile = myFile;
app.activeDocument.print(false);

This works well, but the print dialog box is not shown. So I ignored this way.

How I can change the default path Save PostScript File dialog box? Kindly advice me

Thanks

regards
a r u l
TOPICS
Scripting
545
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 08, 2008 Sep 08, 2008
arul, have a look on the documentation or ESTK help, it contains all you need.
Document.print (printDialog:boolean, using:any)
Prints the ^Object(s).

b printDialog: Data Type: boolean

b Whether to invoke the print dialog (Optional)

using: Data Type: any
Printer preset to use. Can accept: PrinterPresetTypes enumerator or PrinterPreset. (Optional)

Loic
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 09, 2008 Sep 09, 2008
Thanks Loic

I will work with ESTK help.

thanks

regards
a r u l
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 09, 2008 Sep 09, 2008
LATEST
It's just that it contains a lot of things as the whole object model libraries for JS/ScriptUI and Indesign.
It doesn't mean that you can't ask for something however but use some parcimony and don't expect people to do the effort for you :-)
Loic
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines