How to understand to which layer is used in the log listener script?

I performed an action "Change color fill layer" in the ScriptingListenerJS.log file and I can understand sort of output, but how to know which layer style is changed to?

First I clean up the code scriptlistener and turn it into function. Then do something like this.

// make your array of solidfill layers however you like
var l1 = activeDocument.layers.getByName( 'Color Fill 1' );
var l2 = activeDocument.layers.getByName( 'Color Fill 2' );
var l3 = activeDocument.layers.getByName( 'Color Fill 3' );
var layers = [ l1, l2, l3 ];

// iterate the array calling the scriptlistener function
for( l = 0;l< layers.length; l++ ){
     setFillColorByName( layers[ l ].name );
}
function setFillColorByName( name ){
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
        ref.putName( stringIDToTypeID( "contentLayer" ), name );
    desc.putReference( charIDToTypeID( "null" ), ref );
        var colorDesc = new ActionDescriptor();
            var rgbDesc = new ActionDescriptor();
            rgbDesc.putDouble( charIDToTypeID( "Rd  " ), 255.000000 );
            rgbDesc.putDouble( charIDToTypeID( "Grn " ), 222.630358 );
            rgbDesc.putDouble( charIDToTypeID( "Bl  " ), 140.000007 );
        colorDesc.putObject( charIDToTypeID( "Clr " ), charIDToTypeID( "RGBC" ), rgbDesc );
    desc.putObject( charIDToTypeID( "T   " ), stringIDToTypeID( "solidColorLayer" ), colorDesc );
     executeAction( charIDToTypeID( "setd" ), desc, DialogModes.NO );
}

Tags: Photoshop

Similar Questions

  • How do I know which extracts are used in the sequence

    Is there a way to tell if the clips in your project Panel are used in the current sequence? other than will for throughone search options. Can I somehow insert a column in the project Panel that would have activated, use the clip?

    Thank you

    Look in the Panel project to "use video" or "audio".  It will tell you the number of times that a clip has been used.

    The mouse click on the arrow next to it, and it will tell you the sequences in which it was used.

  • How do I know which account was used to join vCenter

    Hello

    I was wondering if anyone knows how you can know which account was used to join the hosts to vCenter.  We try to hunt down to an older installation, but can't seem to find it anywhere?

    Any help would be greatly appricated.

    You have to be Root - adding a host to vcenter requires root-level privileges and I know anyway to SUDO and add the host that it should have been done as root.

  • How will I know which subscription I use?

    I work in a small studio and we have several accounts and now person doesn't know which one they use. is it possible to know which subscription is used on the mac?

    Thank you

    m

    found. Creative cloud / preferences / general / account

  • How do I know which programs to take off the windows Installer CleanUp list?

    Windows Installer Cleanup of

    * original title - how do I know which programs to take off the windows Installer CleanUp list? I don't want to uninstall or remove a program that I always use currently__ *.

    Description of the Windows Installer CleanUp utility
    http://support.Microsoft.com/kb/290301 (MS Office only - replaced by the 'Fix It' utility)
    (Note: the Windows CleanUp utility has been replaced by the "Fit It":http://support.microsoft.com/fixit/ )

    The Windows Installer Cleanup utility:
    It was created to correct software installations that failed during the installation process and leaving a bunch of files (including a file name that ends with an extension .msi (= MicroSoft Installer .msi). For example an installation failed MS Office (note I said "failed").
    See: http://office.microsoft.com/en-us/help/HA011185721033.aspx

    Also if when you installed MS Office you decided at the time you had no need of Power Point and chose not to install it. You find out later you need to make a Power Point presentation, insert the Office CD and try installing PowerPoint and it causes an error.

    The tool using Windows Installer Cleanup will remove damaged installation files (located in C:\Windows\Installer). You then install Office and Power Point, once more, as they are not more present in the list of programs in the Add/Remove Control Panel. But at least this time Office and Power Point will install without errors as the Windows Installer Cleanup utility did what it was designed to do.

    The unfortunate side effect of the cleanup tool is when you select and delete software that works correctly you then will no longer be able to install this software because it is no longer in the Add/Remove Programs list.

    Now as to why there is so many files in the C:\Windows\Installer:
    You will find lots of them. MSI files belong to software such as Java, Microsoft .NET Framework software AV, Norton Ghost, file downloaded during a Windows Update session and so on. It would seem that some software will clean up after itself and deletions, this is the file that were in the folder C:\Windows\Installer. Windows Update failure will create and leave the folders and files behind every time that you try to install the update and so you could end up with a large number of files taking up disk space.

    It could also be a lot of files (is most needed) orphans.
    If you still have the original Windows Installer Cleanup utility, and then by using the msizap (msizap g!) command removes all cached Windows Installer data files that have been orphaned.

    JS
    http://www.PAGESTART.com

    Never be afraid to ask. This forum has some of the best people in the world to help.

  • In Task Manager, how can I know which processes are running in the background?

    In Task Manager, how can I know which processes are running in the background?

    Hello.

    What exactly is your problem?

    Details please! Thank you.

    • When you open the Task Manager, go to processes
    • under the seat of tab CPU reading 01, 02, or higher... that's how you know what programs are underway on the bottom.

    Helped?

  • How do I know which imported media are in the timeline in the project tree?

    I have so many clips, once the media is imported in project, how do I know which media is in the timeline?

    Wear in show used media ranges or something like in the view menu.

  • I have 2 bridges. I want the configuration in the way by which I can use both the way of door simultaeously

    1st gateway is 192.168.0.200 for internet

    and another gateway is 192.168.0.254 for leased line

    I need to adjust the two entry doors by which I can use internet and access to leased lines

    where I do pay gateways in windows xp professional and how much.

    Hello

    Try these steps and check if that helps:

    a. click on start

    b. click Control Panel

    c. Select network connections.

    d. double-click the connection that you want to work with and click on the properties button to display the information related to this adapter.

    e. click TCP/IP, and then click the properties button

    f. to change TCP/IP address, enter the necessary information and click on apply.

    g. click the Advanced tab and add the gateway address.

    You can access the link that contains multiple on the gateway configuration information: http://technet.microsoft.com/en-us/library/bb878104.aspx

  • How to understand accounting Flexfields as range parameter in the reports.

    Hello

    Nice day.

    I would ask for advice on how to include accounting flexfields as range parameter in the custom reports.

    Thanks in advance.

    Kind regards
    Diane

    Hi diane.

    You can use the pair or specific Types of set a value for the same thing.

    I would recommend you relative to some standard reports like the GL account analysis report... also check the definition of set valuse seeded GL_SRS_FLEXFIELD... maybe this will help you.

    Please do not hesitate to advise if you have any questions, understand this or using it in your condition.

    Thank you and best regards,
    JD

  • When I click to open a new tab how to get Firefox to display recent used frequently the web pages instead of my home page?

    When I click the icon "more" to open a new tab appears again my homepage. It displays a page of Web sites recently or frequently used in a format of screenshot showing the home page of the Web site that I could then click on and this website would be the load. Recently, Yahoo had an overlay on its splash screen that asked if I wanted it to be my default search engine. Without thinking, I clicked it and that seemed to change the way my home pages loaded on startup and how clicking on a tab is no longer produced the results I'm looking for as described above. I have since fixed the problem of the homepage so that it now loads properly when Firefox starts.
    Help, please. I would just go back to what I had when I clicked open a new tab. If anyone needs more information or clarification I will provide willingly. Thank you very much.

    One of your modules corresponds to this number, for example, the version 3.18, or sounds associated with "hp" in some way? You can copy and paste a list of your extensions in a response by selecting the Extensions from the list on the next page with the mouse, then using Ctrl + c or right click > copy. Either:

    • button "3-bar" menu > "?" button > troubleshooting information
    • (menu bar) Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    When you paste, it's a little messy, but we are used to it.

  • How does it choose which table of dimensions to the way to join Server BI

    Hello

    I have a question where I join 2 dimensions (user and Department each attached to 3 fact tables).

    If I do a query using only the 2 dimension fields, the BI server chooses one of these tables (which seems to be the smallest) to join through. I want to join with another table.

    Is it possible to specify what fact OBIEE table will join through, if there is no fact table fields in the query?


    Thank you

    Tim

    Tim,

    You must set the column is implicit in your field to achieve this.

    Reference http://gerardnico.com/wiki/dat/obiee/implicit_fact_column

    Hope its clear

  • Which card to use for the backup of Win8

    Windows 8 requires a minimum of 32 GB card to use for the backup. I bought a PNY 32 GB (http://www3.pny.com/32GB-Pro-Elite-Series-Hi-Speed-SDHC-Class-10-UHS-1---35MBs-233X-P3122C442.aspx ), but it wouldn't work. Even though it says 32 GB it is actually a little less. If I buy a 32 GB SanDisk will, that I meet the same problem? Exactly what the size is a SanDisk 32 GB card? (http://www.sandisk.com/products/memory-cards/sd/standard-class4/?capacity=32GB)

    Thank you

    Ed P2

    any card 32 GB will be less than 32GB after it is formatted to be used in a computer. It is a standard for all types of storage.

    If you need 32 GB of actual useful storage space, you will have to get a 64 GB card.

  • Soeome has a list of all the regional settings valid which can be used in the operation of valid sendDocument API?

    I have to build a validadion on my side and I would like to know the complete list of 'local' valid codes that can be used in the operation of sendDocument API.

    Thank you!

    en_US, en_GB, de_DE, fr_FR, nl_NL, it_IT, fi_FI, da_DK, sv_SE, es_ES, nb_NO, nn_NO, no_NO, pt_BR, pt_PT, ru_RU, is_IS, ja_JP, zh_CN, zh_TW, ko_KR, pl_PL, in_ID, ms_MY, vi_VN, th_TH, en_US, tr_TR, ca_ES, eu_ES, hr_HR hu_HU, ro_RO, sk_SK, sl_SI, uk_UK

  • How will I know which pages are selected in the Pages panel?

    I have a JavaScript that exports each page of the separate document as PDF file. I would do the same thing, but with a script that exports only the selected pages in the Pages table. Is there a way to tell which pages are selected in the Pages panel? Thanks in advance.

    -Rick

    I asked a similar question here: information on signs in Javascript

    The answer, @Harbs, was not. You could do your own dialog box to allow users to select pages, but it doesn't seem to be possible to integrate with the existing this way Committee.

  • How to uninstall Firefox, which I never used.

    Original title: firefox appeared in the upper left corner of my screen

    I've never used firefox, how do I get rid of him?

    Hello
     
    (1) what version of Windows are you using?
    (2) remember to make changes to the computer before the question?
     
    See the method mentioned below, if you are using Windows vista or Windows 7 as operating system and check if it helps.
     
    Uninstall or change a program
     
    Uninstall or change a program
     
    Hope this information helps.

Maybe you are looking for

  • Satellite 5200 - need compatible player

    Hello What are the compatible players for Satellite P5200 series?Build-in UJ-810 no longer works. Thank you

  • I can't download Firefox for Android

    I am trying to download the Firefox browser on my Samsung Intercept on Sprint network. I am to go to the www.firefox.com/m and clicking the button of Android. Whenever I try, I don't get NOT FOUND of error.

  • None of my USB ports work on my MacBook Pro 13 "retina

    I try to use my mouse and if not response. Also, I plugged the SuperDrive also fails on two USB ports.

  • HP Officejet Pro 8610: Scan from ADF

    I can't get my ADF to pull documentsfor scan to computer. I loading documents in the ADF. Notification lights 'Loaded Original.' I select "scan to computer". When I hit the scan, it analyzes the glass. No error message, just no attempt ever pull the

  • My shot to get PC anytime I leave more than 20 minutes

    I av observing any time, I leave my PC win vista Home premium for as above for 15 minutes, it freezes and when I press ctrl alt del to troubleshoot it came up with a blank screen "logon process has failed to create the security option dialog. After s