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

AS/CS3 open document without showing window

Participant ,
Oct 14, 2009 Oct 14, 2009

Hi everyone,

I'm pretty new to scripting and mostly I've used Applescript to script InDesign.

In InDesign you can open a file without showing the window, which often speeds up the script.

I cannot figure out how to tell Photoshop to open a file without showing the window.

Is this possible?

thanks!

TOPICS
Actions and scripting
823
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
Adobe
Advisor ,
Oct 14, 2009 Oct 14, 2009

Not possible.

However, if you are running a large batch of images, you may be able to iconize/hide photoshop manually and acheive a similar effect.

The image never makes it to the screen and the palettes are never updated. This can make a big difference in performance.

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
Guru ,
Oct 14, 2009 Oct 14, 2009
LATEST

With CS4 you can also toggle the panels and set image zoom to .25% to speed up the script.

togglePalettes();
setZoom( .25 );
function setZoom( zoom ) {// as percent
   cTID = function(s) { return app.charIDToTypeID(s); }; // from xbytor
   var docRes = activeDocument.resolution;
   activeDocument.resizeImage( undefined, undefined, 72/(zoom/100), ResampleMethod.NONE );
   var desc = new ActionDescriptor();
   var ref = new ActionReference();
   ref.putEnumerated( cTID( "Mn  " ), cTID( "MnIt" ), cTID( 'PrnS' ) );
   desc.putReference( cTID( "null" ), ref );
   executeAction( cTID( "slct" ), desc, DialogModes.NO );
   activeDocument.resizeImage( undefined, undefined, docRes, ResampleMethod.NONE );
}

// your code here

togglePalettes();


If you where using javascipt you could also place all you code in a string and suspendHistory to speed it up a little more.

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