2 Replies Latest reply on Mar 9, 2010 11:14 AM by l3ny

    Profile preferences for better performance

    l3ny Level 1

      Profile preferences for better performance

      Hi, i work with image sequences a lot and i use scripts alot too and often have to change the settings.
      i doing a set of preferences for those time when i have to work like that and not have to change preference manually.
      I have some properties but im missing a few.

      I have:
      app.preferences.createFirstSnapshot = false;
      app.preferences.maxRAMuse = 80;
      app.preferences.imageCacheLevels = 1;

      But i haven't made these worked:
      app.preferences.numberofHistoryStates = 3;
      app.preferences.savePaletteLocations = false; is it? or rememberPaletteLocations
      app.preferences.showToolTips = false;

      and i couldn't found enable version Cue anywhere(including JavaScript Scripting Reference)

      thank you in advance, if possible direct me to a good reference thanks.

      ~l3ny

        • 1. Re: Profile preferences for better performance
          xbytor2 Level 4

          Here's ScriptListener derived functions. You'll probably want to change the names and parameterize them.

           

          -X

           

          function ftn1() {
            function cTID(s) { return app.charIDToTypeID(s); };
            function sTID(s) { return app.stringIDToTypeID(s); };

           

              var desc13 = new ActionDescriptor();
                  var ref9 = new ActionReference();
                  ref9.putProperty( cTID('Prpr'), cTID('FlSP') );
                  ref9.putEnumerated( cTID('capp'), cTID('Ordn'), cTID('Trgt') );
              desc13.putReference( cTID('null'), ref9 );
                  var desc14 = new ActionDescriptor();
                  desc14.putBoolean( sTID('assetManagementEnabled'), false );
              desc13.putObject( cTID('T   '), cTID('FlSv'), desc14 );
              executeAction( cTID('setd'), desc13, DialogModes.NO );
          };

           

          function ftn1() {
            function cTID(s) { return app.charIDToTypeID(s); };
            function sTID(s) { return app.stringIDToTypeID(s); };

           

              var desc16 = new ActionDescriptor();
                  var ref11 = new ActionReference();
                  ref11.putProperty( cTID('Prpr'), cTID('CchP') );
                  ref11.putEnumerated( cTID('capp'), cTID('Ordn'), cTID('Trgt') );
              desc16.putReference( cTID('null'), ref11 );
                  var desc17 = new ActionDescriptor();
                  desc17.putInteger( cTID('HsSt'), 3 );
              desc16.putObject( cTID('T   '), cTID('CchP'), desc17 );
              executeAction( cTID('setd'), desc16, DialogModes.NO );
          };

           

           

           

          function ftn1() {
            function cTID(s) { return app.charIDToTypeID(s); };
            function sTID(s) { return app.stringIDToTypeID(s); };

           

              var desc19 = new ActionDescriptor();
                  var ref13 = new ActionReference();
                  ref13.putProperty( cTID('Prpr'), sTID('interfacePrefs') );
                  ref13.putEnumerated( cTID('capp'), cTID('Ordn'), cTID('Trgt') );
              desc19.putReference( cTID('null'), ref13 );
                  var desc20 = new ActionDescriptor();
                  desc20.putBoolean( cTID('ShwT'), false );
              desc19.putObject( cTID('T   '), sTID('interfacePrefs'), desc20 );
              executeAction( cTID('setd'), desc19, DialogModes.NO );
          };

           

           

          function ftn1() {
            function cTID(s) { return app.charIDToTypeID(s); };
            function sTID(s) { return app.stringIDToTypeID(s); };

           

              var desc22 = new ActionDescriptor();
                  var ref15 = new ActionReference();
                  ref15.putProperty( cTID('Prpr'), sTID('interfacePrefs') );
                  ref15.putEnumerated( cTID('capp'), cTID('Ordn'), cTID('Trgt') );
              desc22.putReference( cTID('null'), ref15 );
                  var desc23 = new ActionDescriptor();
                  desc23.putBoolean( cTID('PltL'), false );
              desc22.putObject( cTID('T   '), sTID('interfacePrefs'), desc23 );
              executeAction( cTID('setd'), desc22, DialogModes.NO );
          };

          • 2. Re: Profile preferences for better performance
            l3ny Level 1

            Thank you, I will use it like generated by script listener, i will change it to the simple form if i ever found out the simple way(as each property instead of the var thing :)).

            but yeah you are correct. thanks.