Buffer busy waits and chained the lines

Hello

I have a database with many events expected occupied buffer.

This is caused by the application running on it and several storage spaces located in MSSM.

Many tables have chained rows.

My question is, can chained lines create another impact on buffer expects busy?

Thank you.

Mr.D. says:

So I want to copy it into the test env with migrated rows.

Trasportable tablespace is not available, I'm in 9.2.

Are you sure you can't use transportable tablespaces in 9.2 - I'm pretty sure you can.  I have not tested (and there may be some restrictions that apply in your particular case, but here are the last few lines 'help exp = yes' output on a 9.2 configuration):

TTS_FULL_CHECK control the total or partial dependency for TTS
List TABLESPACES of tablespaces export
TRANSPORT_TABLESPACE export transportable tablespace metadata (N)
Name of template TEMPLATE that calls export iAS mode

Export completed successfully without warnings.

Transport of the tablespace (s) will probably be easier than setting up a copy backup and recovery of the minimum set of tablespace.

Concerning

Jonathan Lewis

Now on Twitter: @jloracle

Tags: Database

Similar Questions

  • Error message: this action cannot be completed because the other program is busy. Choose ' switch to ' to activate the busy program and correct the problem

    Original title: server busy

    I get a popup server busy with the message: "this action cannot be completed because the other program is busy.  ' Choose ' switch to ' to activate the busy program and correct the problem.  There are two buttons"'Switch To' and 'Retry '.  Neither fixes the problem and I do not understand what they are talking about.

    Hi adarb,

    1. when exactly you get this message?

    2. what applications do you use when you get this message?

    Method 1:

    You can restart the computer and check if it helps.

    Method 2:

    You try to perform a clean boot. A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    http://support.Microsoft.com/kb/310353

    If your problem is resolved after the clean boot, and then follow the steps mentioned in the article above to refine the exact source.

    After you have used the boot is a way to solve your problem, you can follow the steps to configure Windows XP to start normally.

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • problem with tabs and filter the lines of memory cache

    Dear all I have a problem with the oaf page has two tabs under two of them consists of a table and add the button to the row. Second tab, it's a detail of the first tab, which means that each line in the first tab may refer to one or more lines in the second tab, my problem is when I add the line in the first tab and go to the second tab to add lines to this line of the display of the page added all lines not only the matching lines.

    my code:

    1 - controller

    When press Tab of Lot lines (partial action)
    If (goLotsTab".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM))) {" "}

    String trxLineId = "38";//row.getAttribute("TrxLineId").toString(); "
    AddLotParam serializable [] = {trxLineId};
    am.invokeMethod ("getTrxLot", addLotParam);
    }
    What press Add button lines of lots (partial action)
    If (addLot".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM))) {" "}
    String trxLineId = "38"; row.getAttribute("TrxLineId").toString ();
    AddLotParam serializable [] = {trxLineId};
    am.invokeMethod ("addTrxLot", addLotParam);
    }

    When press Add a tab line (partial action)
    If (addLine".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM))) {" "}
    am.invokeMethod ("addLine", params);
    }

    Methods 2 - am

    public void getTrxLot (String pTrxLineId)
    {
    OAViewObject vo = (OAViewObject) getXXSiteLotsVO1 ();
    LinVo OAViewObject = (OAViewObject) getXXSiteLineVO2 ();

    Line linRow = linVo.getFirstFilteredRow ("SelectLineFlag", "Y");
    pTrxLineId = linRow.getAttribute("TrxLineId").toString ();

    If (!) VO.isPreparedForExecution ())
    //{
    try {}
    String existringWhereClause = vo.getWhereClause ();
    vo.setWhereClauseParams (null);
    vo.setWhereClause("trx_line_id=:1");
    vo.setWhereClauseParam (0, (pTrxLineId) Number);
    vo.executeQuery ();
    vo.setWhereClauseParams (null);
    vo.setWhereClause (existringWhereClause);
    }
    catch (Exception exceptionl)
    {
    throw OAException.wrapperException (exceptionl);
    }

    // }
    following line is commented, but I think that it will contribute to the memory of the filter
    cached data to be mapped.

    Rank [] lotRows = vo.getFilteredRows ("TrxLineId1", pTrxLineId);
    }

    /////////////////////////////////////////////////////////////////
    public void addTrxLot (String pTrxLineId)
    {
    OAViewObject vo = (OAViewObject) getXXSiteLotsVO1 ();
    LinVo OAViewObject = (OAViewObject) getXXSiteLineVO2 ();

    Line linRow = linVo.getFirstFilteredRow ("SelectLineFlag", "Y");
    pTrxLineId = linRow.getAttribute("TrxLineId").toString ();

    If (vo.getFetchedRowCount () == 0) {}
    vo.setMaxFetchSize (0);
    // }

    VO. Last();
    VO. Next();
    Line = vo.createRow ();
    row.setAttribute ("TrxLineId", pTrxLineId);
    vo.insertRow (row);
    row.setNewRowState (Row.STATUS_INITIALIZED);
    }

    OK, I'll share my latest code using other

    public void createTransaction() {}

    OAViewObjectImpl vo = getXXSiteHeaderVO1();

    If (! vo.isPreparedForExecution ()) {}

    vo.executeQuery ();

    }

    If (vo.getFetchedRowCount () == 0)

    {

    vo.setMaxFetchSize (0);

    }

    String status = "incomplete."

    OADBTransaction txn = (OADBTransaction) getOADBTransaction ();

    • oracle.jbo.domain.Date currentDate = txn.getCurrentUserDate ();

    Line = vo.createRow ();

    row.setAttribute ("TrxStatus", status);

    1. row.setAttribute ("TrxDate", currentDate);

    vo.insertRow (row);

    row.setNewRowState (Row.STATUS_INITIALIZED);

    }

    {} public void addLine (String pTrxHeeaderId)

    OAViewObject vo = (OAViewObject) this.getXXSiteTrxVL1 () .getDestination ();

    VO. Last();

    VO. Next();

    Line = vo.createRow ();

    int linNum = vo.getFetchedRowCount () + 1;

    row.setAttribute ("TrxHeaderId", pTrxHeeaderId);

    row.setAttribute ("LineNum", String.valueOf (linNum));

    row.setAttribute ("SelectLineFlag", "Y");

    vo.insertRow (row);

    row.setNewRowState (Row.STATUS_INITIALIZED);

    }

    Public Sub getTrxLot()

    {

    LinVo OAViewObject = (OAViewObject) this.getXXSiteTrxVL1 () .getDestination ();

    Line linRow = linVo.getFirstFilteredRow ("SelectLineFlag", "Y");

    String pTrxLineId = linRow.getAttribute("TrxLineId").toString ();

    linVo.setCurrentRow (linRow);

    OAViewObject vo = (OAViewObject) this.getXXSiteLineLotsVL1 () .getDestination ();

    }

    Public Sub addTrxLot()

    {

    LinVo OAViewObject = (OAViewObject) this.getXXSiteTrxVL1 () .getDestination ();

    Line linRow = linVo.getFirstFilteredRow ("SelectLineFlag", "Y");

    String pTrxLineId = linRow.getAttribute("TrxLineId").toString ();

    linVo.setCurrentRow (linRow);

    OAViewObject vo = (OAViewObject) this.getXXSiteLineLotsVL1 () .getDestination ();

    VO. Last();

    VO. Next();

    Line = vo.createRow ();

    row.setAttribute ("TrxLineId", pTrxLineId);

    row.setAttribute ("RowKey", new oracle.jbo.domain.Number (1));

    vo.insertRow (row);

    row.setNewRowState (Row.STATUS_INITIALIZED);

    }

  • How to create an oval and thicken the line width?

    I need to create the half oval, but I can't seem to make the width of the line thicker? As you can see on the properties box on the right, where it says details of form, I can't click the color or type to change the line width. Why is this?

    Thank you.

    Screen Shot 2016-01-23 at 1.49.20 PM.png

    Using the tool to create a path in place using change drop down menu shape mode for fill and stroke, the color of your choice and the desired thickness.

  • Extraction of the sizes of the police and of the line, the height is completely buggy.

    Hello

    I have been using projectparfait / (now active) for a long time and I must say it has changed my entire workflow on the front-end development. Be able to quickly find the font sizes and height of line is/has been for me one of the most valuable features. Now a little while, any font-size/line height with a scale factor applied to what is more annoying, they essentially make this tool useless for me, there are still features such as the instrument of measurement that are big but in the end, I have to open it with photoshop that I try to avoid as much as possible.

    It would be awesome if you guys could focus on this.

    Best regards Thomas

    Hello

    Sorry about that! I have submitted an internal question and we'll try and get it fixed quickly.

  • Any solution to LAST_VALUE with count (*) and BETWEEN the LINES without limit precedi

    I'm working on the cover search active county from COV_CHG_EFF_DATE for the ID of strategy and Futures (sample data are for a single policy). The rule for the coverage of assets are counted as below
    Transaction Type Count
    01, 02                +1
    06, 07                +1
    09, 10                -1
    03                       0
    
     
    COVERAGE_NUMBER TRANSACTION_TYPE COV_CHG_EFF_DATE  Active_Cover_Count
    01                              01                       22/OCT/2011                  2
    02                              01                       22/OCT/2011                  2
    04                              02                       23/OCT/2011                  3
    05                              02                       28/OCT/2011                  4
    05                              09                       30/OCT/2011                  2
    02                              09                       30/OCT/2011                  2
    05                              06                       03/NOV/2011                  3
    05                              03                       03/NOV/2011                  3
    05                              09                       05/NOV/2011                  0
    01                              09                       05/NOV/2011                  0
    04                              09                       05/NOV/2011                  0
    I find LAST_VALUE limit with the help of count (distinct COVERAGE_NUMBER) and the LINES BETWEEN Unbounded preceding AND 1 previous characteristic. Is there another better logical or analytical function in support of the application to calculate the value of aggregation based set of rules? Data from table and sample before if anyone find solution. Thank you.
    ----------------------------------------------------------------------------------------------------------------------------------------
    drop table PC_COVKEY_PD;
    
    create table PC_COVKEY_PD (PC_COVKEY varchar(30),
    POLICY_NUMBER varchar(30),
    TERM_IDENT varchar(3),
    COVERAGE_NUMBER varchar(3),
    TRANSACTION_TYPE varchar(3),
    COV_CHG_EFF_DATE date,
    TIMESTAMP_ENTERED timestamp
    );
    
    delete from PC_COVKEY_PD;
    
    commit;
    
    insert into PC_COVKEY_PD values ('10695337P3021MC0020012', '10695337P3', '021', '002', '02', to_date('22/OCT/2011','DD/MM/YYYY'), cast('22/SEP/2011 03:10:12.523408 AM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0010012', '10695337P3', '021', '001', '02', to_date('22/OCT/2011','DD/MM/YYYY'), cast('22/SEP/2011 03:10:12.523508 AM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0040012', '10695337P3', '021', '004', '02', to_date('22/OCT/2011','DD/MM/YYYY'), cast('22/SEP/2011 03:10:12.864153 AM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0040032', '10695337P3', '021', '004', '03', to_date('22/OCT/2011','DD/MM/YYYY'), cast('22/SEP/2011 03:10:12.865153 AM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0050012', '10695337P3', '021', '005', '02', to_date('22/OCT/2011','DD/MM/YYYY'), cast('22/SEP/2011 03:10:12.976483 AM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0020042', '10695337P3', '021', '002', '09', to_date('22/NOV/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.006435 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0040042', '10695337P3', '021', '004', '03', to_date('22/NOV/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.135059 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0050042', '10695337P3', '021', '004', '09', to_date('22/NOV/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.253340 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0020042', '10695337P3', '021', '004', '03', to_date('22/NOV/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.363340 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0040032', '10695337P3', '021', '005', '09', to_date('29/NOV/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.463340 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0050032', '10695337P3', '021', '005', '03', to_date('29/DEC/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.563340 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0020012', '10695337P3', '021', '002', '03', to_date('30/DEC/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.663340 PM' as timestamp));
    
    commit;
    Published by: 966820 on October 30, 2012 20:30
  • Help - Add line and remove the line does not!

    Not able to understand why the button "Add and Remove row" do not work.

    Thanks in advance

    Hello

    To remove the specified line, use the function

    Table1._Row1.removeInstance (IND);

    where ind is the index of the line.

    You should put the button Delete in each row of the table and write onClic script:

    Table1._Row1.removeInstance (this.parent.index);

    BR,

    Paul Butenko

  • Compare lines with the contractor ID and choose the line with Min Date rental

    Hello

    I have a scenario where I need a line with the Minimum of the Pavilion main 'p' Hire Date whenever there are multiple records with the same ID of the contractor. I need a SQL for this

    For example

    Contractor_ID name Hire_Date end_date Primary_Flag

    123 Tom 9/11/2011-9/11/2012

    123 Tom 9/12/2012-5/12/2012


    I need to score the first line of 'P '. It is an example where there are thousands of discs where I have to mark. Some cases it can be 3 or 4 files to contractor_id even where I need a 'P' flag for recording with Min Hire_Date


    Thank you
    RAM

    Hello

    If you want to ensure that only 1 row by entrepreneur is marked "P", if the lines are the same, then I suggest you do something on the ROW_NUMBER analytic function, like this:

    SELECT       contractor_number
    ,       full_name
    ,       job_title
    ,       hire_date
    ,       end_date
    ,       CASE
               WHEN  1 = ROW_NUMBER () OVER ( PARTITION BY  contractor_number
                                                    ORDER BY          hire_date
                                  ,                end_date     DESC
                                )
               THEN  'P'
           END          AS primary_flag
    FROM       contractor
    ORDER BY  contractor_number
    ,            hire_date
    ,       end_date
    ;
    

    Output:

    CONTRACTOR
       _NUMBER FULL_NAME  JOB_TITLE  HIRE_DATE  END_DATE   P
    ---------- ---------- ---------- ---------- ---------- -
       1862180 Tom        Developer  8/01/2011  11/30/2012 P
       1862180 Tom        Developer  12/01/2012 11/30/2013
       1862181 Sam        Developer  9/01/2012  9/30/2012
       1862181 Sam        Developer  9/01/2012  12/30/2012
       1862181 Sam        Developer  9/01/2012  12/30/2012 P
    
  • Get more space above and below the line

    I'm trying to get more space above and below my lines of demarcation. This is my code:

    < hr size = "1" align = "center" width = "548" color = "#FFFFFF" >

    Can anyone help?

  • Remove # and clear the line from txt files

    Hello

    I have problem with my program.

    I need to remove the empy lines in my txt file.

    This is file look like:

    # Standard capacitance data file
    # Model capacity: parallel (K = 3.0)
    # Created by: ECT32v2 for Beta2.25 of Win32 (July 10, 2003 01:54:24)
    # Source: rec_flow_f45_v800_n2.bcp
    # Description: contents of the buffer to capture mode
    # Date: 12:04:43 GMT standard time, 29 March 04
    # Electrodes = 8, measures = 28
    # Data for plan 1

    # 1 frame (0 msec)
    0.006-0,001-0.004-0, 002 - 0.028-0.031-0,002
    -0.008-0, 005 - 0.007 - 0.024 0.005 0.004
    -0.014-0, 002 - 0.011-0.004 0.002
    -0.008 - 0.003 - 0.004 0.003
    -0.011 0.001 0.002
    0.005 0.004
    0,008

    # structure 2 (10 ms)
    -0.002 0, 005 - 0.008 0.006-0,002 0,023 0.011
    -0.008-0.004 - 0.004 - 0.003 0.010 0.001
    -0.007-0,001-0,012 0.007 0,008
    -0.015-0.004 0.002 0.001
    -0.007-0,002 0.001
    -0.002 0,008
    0.005

    I want to remove all empty lines, lines containing ' # '.

    I try as an attachment, but it does not work.

    How can I do this?

    Regads,
    Sorry for my English

    Ben Merci for example. Somehow, I missed the framework which enabled search expresion. Your example has sent me to the help files to understand. I have modified my first code for the show method, I hope I have the correct explanation. Not trying to do someones homework for them, but for those who need a quick start, maybe this will help someone else along the way.

  • wait and trigger the first incoming digital dashboard

    Maybe it's a frequently asked question, but I managed to understand the trigger DAQmx VI. Is the trigger VI supposed to block the program until Gets an edge? It waits indefinitely?

    A screenshot of my failed attempt is attached to this message. I want to start my measurement (HAVE several channels) to the first incoming digital edge (or increment of the counter) on a system time real PXI. Before entering the loop of measure I want to wait for an edge (possibly indefinitely). Inside this loop, I want to begin to acquire the data values and counter of I.

    I even tried to use the example, but I get an error of dialog (see screenshot).

    Hello pgraebel,

    The trigger VI just configures the behavior of the acquisition.  So, once the start VI task is called, the task itself will be armed and waiting for the trigger.  You trigger attempt.jpg, what will happen is that the task is configured and started.  When starting, running VI will proceed to the loop where you call the read I.  The map will wait for relaxation, with no sample being acquired until the material sees the trigger.  If the trigger is never sent, the loop will iterate that you have not the VI wait indefinitely, but only for 10 seconds.  Thus, if no data is received, the loop will iterate every 10 seconds. If you want to read to wait indefinitely, the value of the timeout on DAQmx Read.vi-1.

    All that being said, it is not quite clear what is the problem with your attempt to trigger - everything looks good to me; are you an error?  Or the just VI hang up (which could be due to the fact that the relaxation is never received)?

    Let me know if it helps.

    Cheers, Matt

  • How to show the two original and change the line

    I have a table looks to and it store the two original and change lines, how can I get the Original lines both edit? In this case, I want to display the first two lines (all columns are composite keys)

    In the meantime, I use more Partition BY with line number, but I get a line

    flag

    APPNO

    EXAM

    TYPE

    EXAM

    YEAR

    EXAM

    MONTH

    Object

    Origin

    1234567890

    HL

    2015

    01

    Art and Design

    Edit

    HL

    2015

    01

    Art and Design

    origin

    SL

    2015

    01

    Math

    New

    SD

    2015

    01

    English

    Please check this one, I think it can meet your needs.

    SQL> with meta_data (flag,APPNO,EXAM_TYPE ,EXAM_YEAR ,EXAM_MONTH,SUBJECT)
      2          as (select 'Origin',1234567890,'HL',2015,01,'Art and Design' from dual union all
      3                  select 'Edit',1234567890,'HL',2015,01,'Art and Design' from dual union all
      4                  select 'origin',1234567890,'HL',2015,01,'Math' from dual union all
      5                  select 'New',1234567890,'HL',2015,01,'English' from dual )
      6  select *
      7    from meta_data
      8  where exists ( select 1
      9                             from meta_data outer
    10                           where flag ='Edit'
    11                              and meta_data.APPNO          =outer.APPNO
    12                              and meta_data.EXAM_TYPE          =outer.EXAM_TYPE
    13                              and meta_data.EXAM_YEAR          =outer.EXAM_YEAR
    14                              and meta_data.EXAM_MONTH          =outer.EXAM_MONTH
    15                              and meta_data.SUBJECT          =outer.SUBJECT)
    16  /
    
    FLAG        APPNO EX  EXAM_YEAR EXAM_MONTH SUBJECT
    ------ ---------- -- ---------- ---------- --------------
    Edit   1234567890 HL       2015          1 Art and Design
    Origin 1234567890 HL       2015          1 Art and Design
    
    SQL>
    
  • How can I get my Eyedropper to sample a color and remove the line?

    Well, my problem is that I'm in Illustrator CS6 and I drew a red plan on a photo on a separate layer and when I taste the color under it leaves the Red streak.

    So all is well, Shelly?

  • Resizing Auto text in a bounding box (and remove the line break)

    I have a lot of certificates of completion of the course I create (using pre-made our graphic charts).  I set up some variables from my diapers and I use a data set to shoot in the person's name, the course title and date of a CSV file.  The text 'Name' encompassing that I created is set to a specific width and height (and must stay that way) with a font size of 94,22 pt; However, some names are REALLY long and are too big for the bounding box.  They dress up.  When I run the "data fusion", I need Photoshop to automatically resize the text in the bounding box so that it is not word wrap.

    For example, "Jane Doe" fits well in the box.  However, "Johnathan Cornelius Doe" is too long, and the word encapsulates.  Instead, I want Photoshop to the long name and simply its size down to fit properly in the lack of word envelope bounding box.

    I have about 200 of them to spend in Photoshop, print and send.  I really don't want to individually open each certificate to verify this last after that I have run through.  I just batch process and print batch.

    Is there a way to do this?  Please note that I have never made any script; so if this is the way it must take, I need to explain carefully and in simple terms.

    Thank you!

    OK, try this. Save the code in a text file with the extension .jsx below. Create an action that runs the script. Then, you can use this action with the batch command.

    #target photoshop
    var doc = activeDocument
    doc.activeLayer = doc.layers.getByName ('LastName')
    var ly = doc.activeLayer
    var before = ly.bounds[2]-ly.bounds[0]
    
    var amt = doc.width/before*100
    transText (amt)
    ly.translate (-ly.bounds[0], 0)
    
    function transText(amt){
        var idTrnf = charIDToTypeID( "Trnf" );
            var desc2 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
                var ref1 = new ActionReference();
                var idLyr = charIDToTypeID( "Lyr " );
                var idOrdn = charIDToTypeID( "Ordn" );
                var idTrgt = charIDToTypeID( "Trgt" );
                ref1.putEnumerated( idLyr, idOrdn, idTrgt );
            desc2.putReference( idnull, ref1 );
            var idFTcs = charIDToTypeID( "FTcs" );
            var idQCSt = charIDToTypeID( "QCSt" );
            var idQcsa = charIDToTypeID( "Qcsa" );
            desc2.putEnumerated( idFTcs, idQCSt, idQcsa );
            var idOfst = charIDToTypeID( "Ofst" );
                var desc3 = new ActionDescriptor();
                var idHrzn = charIDToTypeID( "Hrzn" );
                var idPxl = charIDToTypeID( "#Pxl" );
                desc3.putUnitDouble( idHrzn, idPxl, 0  );//259.646484
                var idVrtc = charIDToTypeID( "Vrtc" );
                var idPxl = charIDToTypeID( "#Pxl" );
                desc3.putUnitDouble( idVrtc, idPxl, 0.000000 );
            var idOfst = charIDToTypeID( "Ofst" );
            desc2.putObject( idOfst, idOfst, desc3 );
            var idWdth = charIDToTypeID( "Wdth" );
            var idPrc = charIDToTypeID( "#Prc" );
            desc2.putUnitDouble( idWdth, idPrc, amt);//1050.143628
            var idIntr = charIDToTypeID( "Intr" );
            var idIntp = charIDToTypeID( "Intp" );
            var idBcbc = charIDToTypeID( "Bcbc" );
            desc2.putEnumerated( idIntr, idIntp, idBcbc );
        executeAction( idTrnf, desc2, DialogModes.NO );
        }
    
  • Basic Scripting: draw a square and add the line color

    Hello:

    I want to draw 2 concentric squares in a new layer:

    First square is orange (no) - 10 points lower than the size of the page

    2nd square is blue (no) - 10 points smaller than the first square

    Thank you

    Maria

    Please try this...

    #target photoshop
    main() {} function
    if(!documents.) Length) return;
    var startRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.PIXELS;
    app.displayDialogs = DialogModes.NO;
    var FillColour = new SolidColor;
    FillColour.rgb.hexValue = "fba200"; Orange
    var ad = activeDocument;
    var w = ad.width.value;
    var h = ad.height.value;
    tempLayer var = ad.artLayers.add ();
    ad. Selection.Select ([[10.10], [w - 10, 10], [w - 10, h-10], [10, h-10]], SelectionType.REPLACE, 0, false);
    ad. Selection.Stroke(FillColour,1);
    ad. Selection.Deselect)
    FillColour.rgb.hexValue = "0000ff"; Blue
    ad. Selection.Select ([[20,20], [w - 20, 20], [w - 20, h-20], [20, h-20]], SelectionType.REPLACE, 0, false);
    ad. Selection.Stroke(FillColour,1);
    ad. Selection.Deselect)
    app.preferences.rulerUnits = startRulerUnits;
    }
    main();

Maybe you are looking for