Is it possible to use scripts to duplicate a layer?

I recently asked this question in the Illustrator forum that I did not know there was a separate script forum: find and replace text problem

I finished just dangling down and solve my problem after spending a few hours just to experiment with script guide.

Now, I'm finishing the final piece of the puzzle for this script which would be totally solved my problem. Is it possible to make the script duplicate a layer? There is a duplicate() function, but it seems not to apply to the layer element. Is there a work around?

Thanks for your help

Michael

Regarding javascript:
-CS5, you must name a new layer, called the same name as your source for baptism layer and then duplicate each element of the source for the new layer.

Be aware that things such as graphical styles, layer, opacity masks on layers and sublayers don't get carried forward like that.

However, with the CS6 + that allows a script to play an action, you can actually get "whole enchilada" by recording an action where you go into the menu drop down and use the "Duplicate" command This will save "layers > duplicate Selection" in action. Then, you can use javascript to target your desired layer and play this action. Your new layer will be a string of "copy" added automatically, so you can choose to delete or modify that.

Tags: Illustrator

Similar Questions

  • Is it possible to use a Script in action? -It doesn't seem to work...

    Is it possible to use a Script in action? -It doesn't seem to work...

    I use the script "around any corner" of SATO Hiroyuki..., and I want to apply to only one anchor (on multiple boxes)

    An Action can call a script in the file > Scripts menu through the point of Menu Add Action step. But it works only for the duration of your Illustrator work session. IF you exit and then restart, the add step Menu item will be empty. This bug has been reported for the COMPLETE FOUR VERSIONS of this botched program.

    However, if I understand your description of what you're trying to automate an Action won't able to automate the selection of a particular anchorpoint several paths. You will need to perform the selections at the beginning. If the script would then apply as you wish to each path depends on the way in which the script is written.

    JET

  • Is it possible to use a script with groovy activity code in a versioned project?

    Hello, we are trying to use script with groovy code activities. We use subversion to keep and share code between developers. (we are versioning projects, no applications)

    When a developer creates a script everything works fine until the code is only in the local workspace.

    When the developer commits new code (the XXX.gy file, the XXX.bpmn file and the XXXdocumentation.xml) and an another laurys the new file to the workspace, the script will not work. The activity of script will have an alert icon saying that "the method called in zzzz script does not exist.

    This happens always, except when a developer deletes its project and it checks entirely from svn.

    UPDATE:

    We discovered that some references to the identifier of the script are stored in database files in the .data file. This file is not versioned when versioning applications and we do not know if it's a good idea to release it. But without updating this data will not be found scripts...

    Is there a patch for this?

    Thank you

    OK, discovered, you need to remove the .data directory and restart jDeveloper

  • Use scripts to create digital orders without button increase/decrease

    I'll have fun using scripts to do things that were once "impossible", like the creation of a cluster programmatically in a list of variable names and their types associated with (use in a later program).

    When I create a digital control on a front, she has the visible increment/decrement key, by default.  I wanted to create controls without this feature, but I could not understand how (or even if it is possible, but I don't see why not).

    Any ideas?

    BS

    Just above the digital named menu item is the one you are looking for: digital

    Use the digital constant digital control for Style and class.

  • Is it possible to use decimal format US while using Spanish as their main language?

    We work with the PLM for process 6.1.1.4 in Spanish. We noticed that the decimals are using the European format (comma instead of points) and we want to preserve the American format. Is it possible to use the application in Spanish, but manage the decimals using points?

    Thank you.

    Enrique has.

    It is possible to work around this problem.  There are a few bugs with the Spanish language pack that makes the solution a bit more difficult, but it is possible to find a solution in 6.1.1.4 for this issue by having the user set their profile and preferences to Spanish (Mexico).  Here's workaround (remember to save the tables affected before implementing the solution, to be sure):

    2 run the following script:

    -Allows Spanish language (need to work around the bug 20088642)

    UPDATE SUPPORTEDLANGUAGES VALUE ACTIVE = 1 WHERE LANGID = 2;

    -Then the 2 lines are needed to activate the culture Spanish (Mexico) (Bug 21452139)

    UPDATE SUPPORTEDCULTURES VALUE ACTIVE = 1 WHERE LCID = 2058;
    UPDATE SUPPORTEDCULTURESNEW SET LANGID = 2 WHERE LCID = 2058;

    3 user preferences. change of Español (Mexico) - users previously had the "Español (España)" option should now be able to select "Español (Mexico)" in the profile and preferences under the language of the user interface (i.e. Perfil y prefencias) below the drop-down list of IU of Idioma)

    4. with this new option of culture, the decimals in PLM for process should appear like this 0,00000 (decimal point) kg instead of 0,00000 kg (comma).  A test to ensure that it works.
    5 migrate in other environments, as necessary.

  • Duplicate the layer just above the layer source by script

    Hello

    I'm trying to duplicate the layer by using script. Layer duplicated only taking place at the beginning of the order of the layers. I want the duplicate layer just above the layer.

    I got this forum.

    var docRef = app.activeDocument;  
    with(docRef) {  
             var ll = docRef.activeLayer ; 
             var ln=ll.name;
             var ol = layers.getByName(ln);  
                   ll.visible = false;  
            var nl = layers.add();  
             nl.name = 'Duplicated Layer';  
             for (var a = ol.pageItems.length-1; a >= 0; a--) {  
                  ol.pageItems[a].duplicate(nl, ElementPlacement.PLACEBEFORE);  
                  nl.visible = true;
             }  
        }  
    
    //~ ElementPlacement.PLACEBEFORE); // moves it above a group named 'my group' in the stacking order  
    //~ ElementPlacement.PLACEAFTER); // moves it below a group named 'my group' in the stacking order  
    //~ ElementPlacement.INSIDE); // moves it inside a group named 'my group', at the top of the stacking order  
    //~ ElementPlacement.PLACEATBEGINNING); // moves it inside a group named 'my group', at the top of the stacking order just like ElementPlacement.INSIDE  
    //~ ElementPlacement.PLACEATEND);
    

    Screen Shot 2016-06-28 at 11.20.59 AM.png

    I duplicated the layer 2 and place it at the top. Strange.

    Help, please

    Kind regards

    Kitty

    Try this code...

    var docRef = app.activeDocument;
    with(docRef) {
        var ll = docRef.activeLayer ;
        var n=docRef.layers.length;
        x=ll.zOrderPosition;
        var ln=ll.name;
        var ol = layers.getByName(ln);
        ll.visible = false;
        var nl = layers.add();
        nl.name = 'Duplicated Layer';
        for (var a = ol.pageItems.length-1; a >= 0; a--) {
            ol.pageItems[a].duplicate(nl, ElementPlacement.PLACEATBEGINNING);
            nl.visible = true;
        }
        docRef.layers.getByName("Duplicated Layer").move(docRef.layers[n-x], ElementPlacement.PLACEAFTER);
    }
    

    -yajiv

  • Is it possible to use Dreamweaver with WordPress (has the classes by Joseph Lowery) only uses a test server AWS and not an environment local localhost?

    Is it possible to use Dreamweaver with WordPress (has the classes by Joseph Lowery) only uses a test server AWS and not an environment local localhost?

    Yes, I want to talk and EC2 instance and I am able to do Dreamweaver to easily connect using SFTP which I believe is a SSH protocol. See the image below. This method works.

    I currently have a test instance and will finally have an instance of production when the site is finished.

    Local environment is not installed on my workstation and my thought was that put it on the server would allow transparent operation including scripts on the server side. The testing station is not public.

  • using script to get the values of percentage and not able to sum up to 100%

    Hi all

    I am trying to use a parseFloat() function to convert the string value as a percentage, and then try to add all the values of %.

    but for a few scenrios even if the amount is 100% of the service I get the PctValue be <>100.00%

    the calculation of the function is as follows: -.

    code-

    {iterating_through_all_the_fields}

    PctValue += parseFloat (this.getField("Percentage1").valueAsString);

    }

    sample-

    11.12

    11.11

    11.11

    11.11

    11.11

    11.11

    11.11

    11.11

    11.11

    amount is 100

    but through code mentioned above I return 99.99

    Any help is appreciated in this regard.

    It is a result using the floating point IEEE standard and conversion from decimal to binary values values. We need to round up all the calculations of money or mils will accumulate and cause errors. For percentages, it is better to round up receipts and total final eliminate the accumulation of amounts below the figure the least significant.

    It is possible to use the util.printf of rounding.

    The following script will show what is happening:

    function Round (nValue, nDec) {}
    If (typeof nDec == "undefined") nDec = 0;
    Return number (util.printf ('%, 1 0. nDec + "f", Number (nValue)));
    }

    var nValues = new Array (11.12 11.11 11.11, 11.11, 11.11, 11.11, 11.11, 11.11, 11.11);
    nSum var = 0;
    for (var i = 0; i)< nvalues.length;="" i++="" )="">
    nSum = nSum + Round (nValues [i], 2);
    Console.println (i + "" + nValues [i] + "" + nSum);
    }
    Console.println (nSum);
    nSum = Round (nSum, 2);
    Console.println (nSum);

    Progression of the sum at each stage.
    0 11,12 11.12
    1 11.11 22.229999999999997
    2 11.11 33.339999999999996
    3 11.11 44.449999999999996
    4 11.11 55.559999999999995
    5 11.11 66.66999999999999
    6 11.11 77.77999999999999
    7 11.11 88.88999999999999
    8 11.11 99.99999999999999
    99.99999999999999
    100

    true

    It's a good idea to use decimal values a percentage and leave the determination of the field format display and the borough. But for applications of the sum, the user can round up the value of the actual field and not only display.

  • Is it possible to use the CONTRAST DETECTION as a method of applying mask/Matte?

    This could be one of these more stupid questions, but I would still put forward and I hope that I can get answers that can satisfy my curiosity.


    I came across this issue when I thought about how I can color-grade the subject independently without defining a range of color like the color of the skin, or peel the subject on the bottom and add something between the two without scope of roto. Then I thought of autofocus and it is possible to reverse the process of update automatic and really separate the proportions of the image are under discussion and which are out of focus. Usually I shoot with a narrow depth of field, and I think the BG would get a little blurry. So, it is possible to extract the areas of focus of the out-of-focus areas?


    So the process of detection of contrast or edge detection (or to phase detection) detection during an irreversible autofocus?

    Or require dynamic variations (to get different samples) to compare and evaluate values?

    Or is it limited process to perform in only a small area rather than an entire image and would take too much if applied to a large area processing power?

    Or is it just that all this is not mathematically this practice?


    Many thanks to those who could answer this question!


    Wish you a pleasant and creative day ~



    It is possible to use the channel information to extract a mast. This information comes from the color and luminance values. It's what we call a procedure cache. Usually you duplicate your layer of film and start applying color effects to isolate certain areas of color and luminance, and then you use this sequence as a cache of luminance to the layer below.

    Having said that, although it is fairly easy to find details of contours (actually find contours) it is extremely difficult to know which of these edges must be outside the desired area of masking. Trying to deconstruct the automatic update function, that a camera uses the image data would be quite a daunting task, and I don't know how effective is, it would be because there is currently no metadata binding to any part of the frame to something as the face of the person you want to use as a mask. Face detection algorithms can have a chance to do this for the faces, but other parts of the body would be extremely difficult to understand.

    Stereo may offer a solution to extract a procedure cache on the part of your shot which is development that took you great care, setting up correct convergence for couples of images, but it would not isolate skin tones.

    Rotobrush is an automated tool that requires user input to set inside the desired mask that uses the values of color and edge detection. It is very effective if you take care with photography original, but if you're not careful automatic roto using any tool becomes difficult if not impossible. Afterwards, the Visual effects are much more complicated if there is no production planning.

    Colorista II is my favorite tool for this kind of color correction. It is a very effective tool of internal mast that can do amazing things using the color range. Other color Correctors (Davinci, for example) have other tools to isolate areas based on the color and luminance values. Your idea is interesting, but it would be very difficult to remove using current tools EI.

  • Create database pending active using the RMAN Duplicate command

    Hello guys,.

    I created the database before using the RMAN Duplicate command, but here I am stuck.

    Please help me to overcome this >

    RMAN > run {}
    2 > allocate channel prmy1 type disk;
    3 > allocate channel prmy2 type disk;
    4 > allocate channel prmy3 type disk;
    5 > allocate channel prmy4 type disk;
    6 > allocate auxiliary channel stby type disk;
    7 > duplicate target database for the eve of the active database
    8 > spfile
    9 > parameter_value_convert "orcl", "orclstd".
    10 > set db_unique_name = "orclstd".
    11 > set db_file_name_convert = "/ orcl / ', ' / orclstd / '.
    12 > set log_file_name_convert = "/ orcl / ', ' / orclstd / '.
    "13 > set control_files="D:\app\employee3\oradata\ORCLSTD\control01.ctl ', 'D:\app\employee3\flash_recovery_area\ORCLSTD\control02.ctl '.
    14 > set log_archive_max_processes = '5'
    15 > set fal_client = "orclstd."
    16 > set fal_server = "orcl".
    17 > set diagnostic_dest =: \app\employee3'
    18 > set db_recovery_file_dest = a: \app\employee3\flash_recovery_area'
    19 > set standby_file_management = 'AUTO '.
    "20 > set log_archive_config ='dg_config = (orcl, orclstd)"
    21 > set log_archive_dest_2 = 'service = orcl ASYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = orclstd';
    {22 >}

    allocated channel: prmy1
    channel prmy1: SID = 70 type device = DISK

    allocated channel: prmy2
    channel prmy2: SID = 135 type device = DISK

    allocated channel: prmy3
    channel prmy3: SID = 191 type device = DISK

    allocated channel: prmy4
    channel prmy4: SID = 7 type of device = DISK

    allocated canal: stby
    channel stby: SID = 129 type device = DISK

    From 7 November 12 Db double

    content of Script memory:
    {
    backup that copy reuse
    TargetFile "E:\app\RAJKUMAR\product\11.2.0\dbhome_1\DATABASE\PWDorcl.ORA" auxiliary format
    "D:\app\employee3\product\11gr2\DATABASE\PWDorclstd.ORA" targetfile
    ' E:\APP\RAJKUMAR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SPFILEORCL. ORA' auxiliary format
    ' D:\APP\EMPLOYEE3\PRODUCT\11GR2\DATABASE\SPFILEORCLSTD. ORA';
    clone of SQL ' alter system set spfile = "D:\APP\EMPLOYEE3\PRODUCT\11GR2\DATABASE\SPFILEORCLSTD." ORA "«;»
    }
    execution of Script memory

    From backup 7 November 12
    Backup finished in 7 November 12

    SQL statement: alter system set spfile = "D:\APP\EMPLOYEE3\PRODUCT\11GR2\DATABASE\SPFILEORCLSTD. ORA "

    content of Script memory:
    {
    clone of SQL 'alter system set audit_file_dest =
    "E:\app\RAJKUMAR\admin\orclstd\adump" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set dispatchers =
    ''(Protocol=TCP) (SERVICE = orclstdXDB) "comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set db_unique_name =
    "Orclstd" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set db_file_name_convert =
    "/orcl/", "/orclstd/" comment is
    ' ' scope = spfile;
    clone of SQL 'alter system set log_file_name_convert =
    "/orcl/", "/orclstd/" comment is
    ' ' scope = spfile;
    clone of SQL 'alter system set control_files =
    "D:\app\employee3\oradata\ORCLSTD\control01.ctl", "D:\app\employee3\flash_recovery_area\ORCLSTD\control02.ctl" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set log_archive_max_processes =
    5 comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set fal_client =
    "Orclstd" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set fal_server =
    "Orcl" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set diagnostic_dest =
    "D:\app\employee3" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set db_recovery_file_dest =
    "D:\app\employee3\flash_recovery_area" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set standby_file_management =
    Comment by "AUTO" =
    ' ' scope = spfile;
    clone of SQL 'alter system set log_archive_config =
    Comment by "dg_config" (orcl, orclstd) =. =
    ' ' scope = spfile;
    clone of SQL 'alter system set log_archive_dest_2 =
    "service = orcl ASYNC = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = orclstd valid_for" comment =
    ' ' scope = spfile;
    clone to stop immediately;
    startup nomount clone;
    }
    execution of Script memory

    SQL statement: alter system set audit_file_dest = comment "E:\app\RAJKUMAR\admin\orclstd\adump" = "' scope = spfile

    SQL statement: alter system set dispatchers = ''(PROTOCOL=TCP) (SERVICE = orclstdXDB) "comment ="' scope = spfile

    SQL statement: alter system set db_unique_name = comment "orclstd" = "' scope = spfile

    SQL statement: alter system set db_file_name_convert = "/orcl/", "/orclstd/" comment = "' scope = spfile

    SQL statement: alter system set log_file_name_convert = "/orcl/", "/orclstd/" comment = "' scope = spfile

    SQL statement: alter system set control_files = "D:\app\employee3\oradata\ORCLSTD\control01.ctl", "D:\app\employee3\flash_recovery_area\ORCLSTD\control
    02.CTL "comment ="' scope = spfile

    SQL statement: alter system set log_archive_max_processes = 5 = comment "' scope = spfile

    SQL statement: alter system set fal_client = comment "orclstd" = "' scope = spfile

    SQL statement: alter system set fal_server = comment "orcl" = "' scope = spfile

    SQL statement: alter system set diagnostic_dest = comment "D:\app\employee3" = "' scope = spfile

    SQL statement: alter system set db_recovery_file_dest = comment "D:\app\employee3\flash_recovery_area" = "' scope = spfile

    SQL statement: alter system set standby_file_management = comment "AUTO" = "' scope = spfile

    SQL statement: alter system set log_archive_config = "dg_config = (orcl, orclstd)" comment = "' scope = spfile

    SQL statement: alter system set log_archive_dest_2 = "service = orcl ASYNC = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = orclstd valid_for" comment = "'s
    face = spfile

    Instance Oracle to close

    connected to the auxiliary database (not started)
    Oracle instance started

    Total System Global Area 1071333376 bytes

    Bytes of size 1375792 fixed
    528482768 variable size bytes
    Buffers data 536870912 bytes
    Redo buffers 4603904 bytes
    allocated canal: stby
    channel stby: SID = 63 type device = DISK

    content of Script memory:
    {
    backup current controlfile to standby auxiliary copy format ' D:\APP\EMPLOYEE3\ORADATA\ORCLSTD\CONTROL01. CTL';
    Restore clone controlfile to ' D:\APP\EMPLOYEE3\FLASH_RECOVERY_AREA\ORCLSTD\CONTROL02. CTL' of
    ' D:\APP\EMPLOYEE3\ORADATA\ORCLSTD\CONTROL01. CTL';
    }
    execution of Script memory

    From backup 7 November 12
    channel prmy1: from data file copy
    copy of the control file ensures
    name=E:\APP\RAJKUMAR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SNCFORCL output file. ORA tag = RECID = 1 STAMP = 798743550 TAG20121107T171229
    channel prmy1: datafile copy complete, duration: 00:00:03
    Backup finished in 7 November 12

    From restoration to November 7, 12

    channel stby: copy of copy of control files
    Restoration finished November 7, 12

    content of Script memory:
    {
    SQL clone 'alter database sleep mounting database';
    }
    execution of Script memory

    SQL statement: alter database mount rescue
    output channel: prmy1
    output channel: prmy2
    output channel: prmy3
    output channel: prmy4
    exit canal: stby
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the command duplicate Db at 07/11/2012 17:12:40
    RMAN-05501: abandonment of duplicate target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\MIGRATION_DATA01 auxiliary file name. DBF conflict with a file used by the target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\DEMO_INDX01 auxiliary file name. DBF conflict with a file used by the target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\DEMO_DATA01 auxiliary file name. DBF conflict with a file used by the target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\USERS01 auxiliary file name. DBF conflict with a file used by the target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\UNDOTBS01 auxiliary file name. DBF conflict with a file used by the target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\SYSAUX01 auxiliary file name. DBF conflict with a file used by the target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\SYSTEM01 auxiliary file name. DBF conflict with a file used by the target database

    RMAN >

    Thank you
    Reverchon

    user9192565 wrote:

    11> set db_file_name_convert='/orcl/','/orclstd/'
    12> set log_file_name_convert='/orcl/','/orclstd/'
    
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\MIGRATION_DATA01.DBF conflicts with a file used by the target database
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\DEMO_INDX01.DBF conflicts with a file used by the target database
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\DEMO_DATA01.DBF conflicts with a file used by the target database
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\USERS01.DBF conflicts with a file used by the target database
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\UNDOTBS01.DBF conflicts with a file used by the target database
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\SYSAUX01.DBF conflicts with a file used by the target database
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\SYSTEM01.DBF conflicts with a file used by the target database
    

    The strings that you entered in your file name conversion settings does not match where actually your data files. If the string does not match the names of files, there is no names of files to convert. Because you're on windows, how about something like this?

    set db_file_name_convert='\ORCL\','\ORCLSTD\'
    set log_file_name_convert='\ORCL\','\ORCLSTD\'
    

    Hope that helps...

    Patrik

  • Is it possible to use Video Phone (Cirrus Sample Application) with FMS4?

    Hello

    could someone explain to me please, is possible to use Video Phone (Cirrus Sample Application) with FMS4?

    It seems to be possible as the video source are these text:

    RTMFP (Adobe Cirrus or FMS) server address
    [Bindable] private var connectUrl:String = "rtmfp://p2p.rtmfp.net";

    If possible, where you will find a script server to FMS/opt/adobe/fms/applications/videophone/folder?

    Sorry for the bad English
    Thank you very much!

    the last VideoPhoneLabs uses a new feature of relay short messages on Codename Cirrus.  the semantics is super simple and there is no reason that you could not implement the feature on FMS4.

    the relay function works like this: when peerID a01234... wants to send a short message to peerID b12345... (both connected to Cirrus), peerID... a01234

    NC is the NetConnection

    NC. Call ("Relay", null, "b12345...",... args...);

    the message will come out as a call to the function onRelay of the customer in the NetConnection on b12345:

    nc.client.onRelay ("a01234...",... args...)

    VideoPhoneLabs uses this function to the call signaling.  You should be able to concoct a similar function on the side server for FMS4.

    Otherwise, other that the URI that you use to connect to SGF, the introduction of P2P on FMS function should be identical to Cirrus.

  • How to get the RGB value of a pixel in a psd document using scripting Photoshop

    Hi, guys!    Does anyone know how to get the RGB value of a pixel in a psd document using scripts in Photoshop?  I myself have missed for a long time and could not resolve. I am very happy to hear your voice as soon as possible!

    Here is an example...

    var originalUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    var doc = activeDocument;
    var Colour1 = GetHexColour(eyeDropperRGB(1,doc.height-1));
    var Colour2 = GetHexColour(eyeDropperRGB(20,doc.height-5));
    var Colour3 = GetHexColour(eyeDropperRGB(40,doc.height-14));
    alert("Colour 1 = " +Colour1 + "\rColour 2 = " +Colour2 + "\rColour 3 = " +Colour3);
    var decColour = eyeDropperRGB(40,doc.height-14);
    alert("Red = " +decColour[0] + "\rGreen = " +decColour[1] + "\rBlue = " +decColour[2]);
    app.preferences.rulerUnits = originalUnits;
    function GetHexColour(reqHex){
    var out='';
    for(No in colours = reqHex){
     out = out.concat(zeroPad(d2h(reqHex[No]),2));
     }
    return out;
    };
    function eyeDropperRGB(x,y) {
     var x2 = x + 1;
     var y2 = y + 1;
     var out = new Array(3);
     activeDocument.selection.select([[x,y], [x2,y], [x2,y2], [x, y2]], SelectionType.REPLACE, 0, false);
     for(ch in list = ["Red", "Green", "Blue"]) {
     histogram = activeDocument.channels[list[ch]].histogram;
      for (i = 0; i <= 255; i++) {
       if (histogram[i]) {
        out[ch] = i;
        break;
       }
      }
     }
      return out;
    };
    function d2h(d) {return d.toString(16);}
    function zeroPad(n, s) {
       n = n.toString();
       while (n.length < s)  n = '0' + n;
       return n;
    };
    
  • Is it possible to use Microsoft Money on a mac laptop?

    I think of buying my first mac laptop.

    Is it possible to use Microsoft Money on the mac?

    Install Windows on your Apple computer then any program that runs on Windows. Windows can be installed using Boot Camp Assistant or using a machine virtual Parallels, Fusion, or VirtualBox.

  • Is there a way to the target url by using the power of Attorney (I want to say is possible to use the proxy to target a site something like that.)?

    Is there a way to the target url by using the power of Attorney (I want to say is possible to use the proxy to target a site something like that.)?

    By default, you can not in Firefox.

    But you can use an add-on like FoxyProxy Standard, I think he understands the functionality you need.

  • Is it possible to use the Remote app with the Apple TV connected via ethernet and iPhone via WiFi?

    Is it possible to use the Remote app with the Apple TV connected via ethernet and iPhone via WiFi? When I try this Apple TV does not appear in the list of devices on my iPhone.

    Yes, I'm doing exactly this with the same put in place.

    If the problem persists the next relative to the following articles might help you.

    Troubleshooting home sharing

Maybe you are looking for