How can I Edit preferences performance use Graphics Processor option through the jsx script

Hi I need to check and access the Edit>preferences>performance>use Graphics Processor option setting through the script. i cant find it in the object domain, I have the following to check the current state:
var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID('capp'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
var openglEnabled = executeActionGet(ref).getObjectValue (charIDToTypeID('CchP')).getBoolean (stringIDToTypeID('openglEnabled'));
alert( openglEnabled );
but then i am unable to set the value using this:
var openglEnabled = executeActionGet(ref).getObjectValue (charIDToTypeID('CchP')).putBoolean (stringIDToTypeID('openglEnabled'));
I tried using a recorded action but that doesnt work. Any recommendations?

If you load the scriptlisener plug-in when you set  your preference to enable your GPU it will record the code you need.  The Code I posted to your thread in the scripting forum the other day.
// =======================================================
var idsetd = charIDToTypeID( "setd" );
    var desc29 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref19 = new ActionReference();
        var idPrpr = charIDToTypeID( "Prpr" );
        var idCchP = charIDToTypeID( "CchP" );
        ref19.putProperty( idPrpr, idCchP );
        var idcapp = charIDToTypeID( "capp" );
        var idOrdn = charIDToTypeID( "Ordn" );
        var idTrgt = charIDToTypeID( "Trgt" );
        ref19.putEnumerated( idcapp, idOrdn, idTrgt );
    desc29.putReference( idnull, ref19 );
    var idT = charIDToTypeID( "T   " );
        var desc30 = new ActionDescriptor();
        var idMmrU = charIDToTypeID( "MmrU" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc30.putUnitDouble( idMmrU, idPrc, 90.000000 );
        var idopenglEnabled = stringIDToTypeID( "openglEnabled" );
        desc30.putBoolean( idopenglEnabled, true );
    var idCchP = charIDToTypeID( "CchP" );
    desc29.putObject( idT, idCchP, desc30 );
executeAction( idsetd, desc29, DialogModes.NO );

Similar Messages

  • How can I access the Edit preferences performance use Graphics Processor option through the jsx scri

    I want to runa a script with and without GPU options. I made an actionto click on the Edit>Preferences>Performace>use graphics processor checkbox. But now I want to check wether the checkbox is ticked or not to determine i should use it for a with GPU run or without GPU run. I cant seem to find the prefernce/property/object name to access this selection in the photoshop scripting library. Can someone help me here?

    I did not see anything in the Object Viewer for preference open GL, performance or GPU  so I do not think there is a DOM method available to retrieve or set it.  You can set it using the action manager using scriptlistener code.
    // =======================================================
    var idsetd = charIDToTypeID( "setd" );
        var desc29 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref19 = new ActionReference();
            var idPrpr = charIDToTypeID( "Prpr" );
            var idCchP = charIDToTypeID( "CchP" );
            ref19.putProperty( idPrpr, idCchP );
            var idcapp = charIDToTypeID( "capp" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref19.putEnumerated( idcapp, idOrdn, idTrgt );
        desc29.putReference( idnull, ref19 );
        var idT = charIDToTypeID( "T   " );
            var desc30 = new ActionDescriptor();
            var idMmrU = charIDToTypeID( "MmrU" );
            var idPrc = charIDToTypeID( "#Prc" );
            desc30.putUnitDouble( idMmrU, idPrc, 90.000000 );
            var idopenglEnabled = stringIDToTypeID( "openglEnabled" );
            desc30.putBoolean( idopenglEnabled, true );
        var idCchP = charIDToTypeID( "CchP" );
        desc29.putObject( idT, idCchP, desc30 );
    executeAction( idsetd, desc29, DialogModes.NO );

  • How can one edit a .gif file graphics background and change the fonts in Photoshop Elements 13?

    I am trying to change the color and fonts of some of my web sites .gif files. Can I change the color to another hexadecimal color and change the fonts of the letters in Photoshop 13? I am using Windows 7 and heard that you could save the .gif file to another format, edit it, then change the file back to a .gif file. Is this true? If so, how do you do it? The file just has a solid color with the letters "Firm " on it. No animation.

    You can edit a gif without changing the format, but once you save the file as a gif the text becomes part of the image, not text anymore, so you would need to clone or heal away the existing text and then create a new text layer and use save for web to create a new gif.
    For access to the most editing tools, while the file is open in the editor go to image>mode and change it from index color to RGB. Saving as a gif will change it back to index mode.

  • How can I edit multiple clips with different frame rates on the same timeline

    how can I edit multiple clips with different frame rates on the same timeline

    You do not want to edit material from different frame rates on one timeline. You CAN do this, but it is a very bad idea - and this is why.
    Once you establish the sequence frame rate - lets say it is PAL material at 25fps, any material that you drop into the sequence other than 25 fps will have to be changed to play at 25 fps. If the material you add is NTSC (29.97), FCP will DROP 5 frames per sec to bring the frame rate down to 25 fps. Which 5 get thrown away? Every 6th one. This yields a funky cadence that becomes even more complex as as there are also interlaced fields (DV/NTSC is an interlaced format). Oh, and by the way, the image sizes are different as well. DV/PAL has 576 lines of resolution and DV/NTSC has 480. FCP has to scale up the NTSC to fit the PAL frame.
    You do not want FCP adjusting these things on the fly. You want to do a thoughtful (and time consuming) conversion so that you end up with all your material in one format with the best possible image from the conversion process. Compressor can do an adequate job with Frame Controls turned on. The Natress Standards Conversion FCP plugin is another way to go. A third option is to find a post house that can do the conversion for you using a hardware based process.
    The good news is, once everything is in the same format, editing it will be painless and the output process very quick.
    Whatever frame rate/ image size you select, I'd suggest using ProRes for the codec. It is 4:2:2 color and will withstand color correction and composting with much more grace than any variant of DV based codecs.
    Have fun.
    x

  • How can I edit a PDF?  Someone told me about the "typewriter" feature, but can't locate that.

    How can I edit a PDF?  Someone told me about the "typewriter" feature, but can't locate that.

    Hi karenw22462415,
    You'll need to Acrobat to edit a PDF file. If you don't have Acrobat, you're welcome to download a 30-day trial from http://www.adobe.com/products/acrobat.html.
    This Help document will get you started: https://helpx.adobe.com/acrobat/using/edit-text-pdfs.html.
    Best,
    Sara

  • How can reset password of bulk users in one time through AD or script?

    how can reset password of bulk users in one time through AD or script?

    Hello Mr. Lovely,
    Do you have ActiveDirectory Module which shipped with Windows Server 2008 R2? If you have it, you can complete this task very easily.
    #First, you need to import ActiveDirectory Module
    Import-Module ActiveDirectory
    #Second, generate a SecureString which contains the password.
    $securePwd = ConvertTo-SecureString -String "P@ssw0rd!" -Force -AsPlainText
    #Third, find the Active Directory users ,and use Set-ADAccountPassword for resetng the password.
    Get-ADUser -Filter {Name -like "Test*"} | Set-ADAccountPassword -NewPassword $securePwd
    Also, you can review following link for more details about the Active Directory cmdlets.
    Active Directory Cmdlets in Windows PowerShell
    http://technet.microsoft.com/en-us/library/ee617195.aspx
    Best Regards,
    Greg Gu
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • When I´m editing a pallete - be it the controls palette or the function one - How can I edit a .mnu file, so that it shows the picture I want?

    When one decide to edit controls or functions palletes, one of the options available is the insertion of a submenu and, when it´s done, the user is prompted to select which menu file - a file with a .mnu extension - he wants to use. All I want to know is how I can create a .mnu file so that it shows a picture I want - if instead of choosing a existent .mnu file I choose one that doesn´t exist, it will be created and a default picture will be shown. I went through the LabVIEW help without avail, so ...any help would be deeply appreciated !

    If you wish to change the default submenu Icon to yours, simply right-click on the submenu Icon and select "Edit Submenu Icon..."
    Is that what you wanna do?
    Cheers!
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com

  • HT4865 How can I report some one using my email address on the Apple site?

    I have a Keith Walls of Consett UK using my email address on the apple site I have reported it but had no reply from Apple so I reset the password and all so removed his name, address details, phone number but days later I find the log on email reverted back to this person once again I requested a password reset to get on to this site. Can anyone help me find how to sort this out, or remove my email address from the Apple site? Thanks for any help and assistance.

    You might try contacting the Apple account security team: http://support.apple.com/kb/HT5699.

  • HT5824 How can i reset my iphone using icloud but dont have the device

    how can i use my icloud accout to reset my iphone 4s when i do not have the phone i sold it before i reset it and they need me to reset it from my pc

    Follow the steps listed under "If the previous owner is not present" in this article: http://support.apple.com/kb/TS4515.  Use the appriate instructions based on whether or not you already erased the phone.

  • How can you edit a User defined Graphic Style Library?

    Sometimes I need to make small changes to my User defined Graphic Style Libraries - Add or remove an item or update another etc... Is this possible?
    Thank you for your time
    ++Michael

    I thought I was the only one!
    I asked a similar question and got no reply. My problem is I want to move from one library to another. I even had a chat with Adobe tech support and got no answer.
    I ended up deleting the assets and re-downloading into the new one.

  • How can I edit a photo in Photoshop Elements and have the edit appear in Windows 7, My Pictures?

    In Windows XP Pro, any edit I made to a photo in Photoshop Elements 10 appeared automatically in that photo in My Pictures.   This does not happen in my new Windows 7 computer.  Can I change that and have the edit from PE10 appear in My Documents/My Pictures?

    When you finish editing choose:
    File >> Save As
    Then choose a file name and folder and save.

  • HT201328 how can i unlock my phone using itunes i cant remember the passcode

    ive accidentially pressed the wrong passcode multiple time and now my phone is locked its says connect to itunes, im not really sure what to do after that.. id appriciate any help. thanks

    With the new IOS 7 therer has been what is know as an activation lock in which disables the user to restore the device to default settings without knowing the password to the apple id. Once you have restored the device back to default settings it will then ask you to plug in the apple id password. Once you have verified your identity with the apple id password you will be good to go!
    Good luck.

  • How can I edit a PDF file using Adobe assistant?

    How can I edit a PDF using Adobe assistant?

    The is no PDF editor called Adobe Assistant. What did you actually buy (check your invoice for the name if you can't otherwise tell)?

  • How can i create splash screen using netbean?

    how can i create splash screen using netbean?

    Welcome to the Sun forums.
    gabbyndu wrote:
    how can i create splash screen..Java 6 offers a splashscreen functionality. See [New Splash-Screen Functionality in Java SE 6|http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/splashscreen/] *(<- link)* for details.
    [Java Web Start|http://java.sun.com/javase/technologies/desktop/javawebstart/index.jsp] has offered splash screens to applications since Java 1.2. See [How can I provide my own splash screen?|http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#206] in the JWS FAQ for more details.
    .. using netbean?We don't support Netbeans here. Ask that on a [Netbeans forum|http://forums.netbeans.org/].

  • Ok so i dowloaded the pdf editor and only amall screen shows up and i log in but it doesnt let me do anything other that stare at it ... how can i edit a pdf?

    ok so i dowloaded the pdf editor and only amall screen shows up and i log in but it doesnt let me do anything other that stare at it ... how can i edit a pdf?

    Word processor like "editing" is not tolerated by PDF (the file format/technology discussed and described by the ISO Standard for PDF, ISO 32000-1).  Minor touchups are tolerated. The textual characters have to be renderable text (a scanner's output image of text is a picture of text not "real" text).
    Open the PDF with Acrobat XI.
    Click-path:
    Tools - Content Editing - Edit Text & Images
    Be well...

Maybe you are looking for

  • At what percentage should I to charge my macbook pro and prolong the life of my battery?

    I want to prolong the life of my laptop battery.  I just got a new macbook pro and want to know the proper way to charge the battery. 

  • Red-Eye Correction Malfunctioning

    When I try to use the Red-Eye correction tool in iPhoto, it either doesn't work at all, or it will correct a random spot of the picture instead of the eyes. Any clues?

  • Dead iBook G3

    A friend gave me her 500mhz iBook G3 to play with. Upon startup I get the missing system folder icon. I tried putting in an old G4 Restore CD and it begins to load into OS 9 but encounters a bus error and can not continue. I also tried my Tiger insta

  • ITunes download episodes ON

    I use a lot iTunes desktop podcast. Last weeks I have a lot of problems with this program. Podcasts episodes do not download as usual. I need to go to each podcast and click the icon to download. I have checked settings  and they are "download on" (l

  • BPM count

    Scenario is N:1 (IDOC to FlatFile) using BPM. BPM receive step will receive IDOC. But it should terminate when the number of messages equals to 500. In which step I have to define this count in BPM?