Noel Carboni


you seem seeing things little bit more me cs6 quality.

 

i try add white space make little easier read,

 

there seems call window of opportunity bug in pc version of photoshop cs6.   believe bug in how photoshop tasking or treading has been implemented.  if commands start execute when window open command fails.  

 

the command close no save seems open window.  setting photoshop preference interface open documents in tabs slows down photoshop window closed not way.

 

you know murphy law if can happen happen. 

 

you know hate edit in tabs.  in pursuit close window of opportunity , edit in floating windows  have tried set events automate process.  in doing triggered bug when preference set open documents in tabs.

 

i tried slow down action adding new first step edit preferences interface , check "open documents in tabs" action still failed. 

 

i added script action after set preference step slowed photoshop down , action worked.  script 1 liner "refresh();". 

 

once had action working converted script adding logic not try float documents whet there no open documents.

 

the action failed simple , demonstrates problem. edit photoshop preferences interface tab , un-check open documents in tabs. open new document  start recording new action on, name float all. record

step 1 edit>preferences>interface  in dialog check open documents in tabs , click ok

stop recording action use actions palette fly-out menu  insert 2 menu items:

menu window>arrange>float in windows

menu window>arrange>cascade

the action complete

 

next use menu file>scripts>script event manager... in event manager dialog:

check enable events run scripts/actions:

use photoshop event: pull-down , select everything

turn on action radio button , use pull down menus select action set , action float all

click add button done button.

floatallevent.jpg

now show bug.

open  2 new documents default photoshop size.

the documents in cascaded floating windows.

use x close 1 of document.

note action fails.  click continue.  click play button action works.

 

the script i'm playing with

 

#target photoshop

//

// floatall.jsx

//

ctid = function(s) { return app.charidtotypeid(s); };

stid = function(s) { return app.stringidtotypeid(s); };

function floatall() {

          opendocintabs();                                        // set photoshop preference interface "open documents in tabs"

          refresh();                                                  // slow down photoshop

          if (documents.length > 0) {                    // there open documents

                    floatallinwindows();                    // float documents in floating windows

                    arrangewindowscascade();          // cascage windows

          }

};

 

function opendocintabs(enabled, withdialog) {

          if (enabled != undefined && !enabled) return;

          var dialogmode = (withdialog ? dialogmodes.all : dialogmodes.no);

          var desc1 = new actiondescriptor();

          var ref1 = new actionreference();

          ref1.putproperty(ctid('prpr'), stid("interfaceprefs"));

          ref1.putenumerated(ctid('capp'), ctid('ordn'), ctid('trgt'));

          desc1.putreference(ctid('null'), ref1);

          var desc2 = new actiondescriptor();

          desc2.putboolean(ctid('egst'), true);

          desc2.putboolean(stid("opennewdocsastabs"), true);

          desc1.putobject(ctid('t   '), stid("interfaceprefs"), desc2);

          executeaction(ctid('setd'), desc1, dialogmode);

};

 

function floatallinwindows(enabled, withdialog) {

          if (enabled != undefined && !enabled) return;

          var dialogmode = (withdialog ? dialogmodes.all : dialogmodes.no);

          var desc1 = new actiondescriptor();

          var ref1 = new actionreference();

          ref1.putenumerated(ctid('mn  '), ctid('mnit'), stid("floatallwindows"));

          desc1.putreference(ctid('null'), ref1);

          executeaction(ctid('slct'), desc1, dialogmode);

};

 

function arrangewindowscascade(enabled, withdialog) {

          if (enabled != undefined && !enabled) return;

          var dialogmode = (withdialog ? dialogmodes.all : dialogmodes.no);

          var desc1 = new actiondescriptor();

          var ref1 = new actionreference();

          ref1.putenumerated(ctid('mn  '), ctid('mnit'), ctid('cscd'));

          desc1.putreference(ctid('null'), ref1);

          executeaction(ctid('slct'), desc1, dialogmode);

};

 

floatall();

i'll give details of more serious attention in morning.

 

i appreciate , respect preference use windowed rather tabbed mode, may important difference between folks feel it's not buggy , feel it's unacceptable.

 

anecdotally, while ago,in time of photoshop cs4, dyed-in-the-wool windowed mode user, wouldn't consider using new tabbed view.  plug-in used lot in actions - genuine fractals - stopped working when run in windowed view, , made 2 week solid effort use tabbed view.  amazingly grew on me, , didn't go back.

 

i'm thinking more folks @ adobe use tabbed view windowed.

 

-noel



More discussions in Photoshop General Discussion


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support