How can I create text with an outline, I can't seem to get my right selection.

I am trying to add text with an outline of an image;

The text appears fine and has its own layer

When I make the active layer and do SelectAll() and then add a line on the selection, I get a box big ole around my image.

I realize that it is probably a simple solution, but my thing google has failed me so far.

Thank you for your help

    var artLayerRef = docRef.artLayers.add();
    artLayerRef.kind = LayerKind.TEXT;
    artLayerRef.name = "Text";
    // Set the contents of the text layer. 
    var textItemRef = artLayerRef.textItem;
    textItemRef.size = 25;
    textItemRef.contents = "wubwub";
    textItemRef.position = new Array(
        50,
        50);

    //textItemRef.rasterize(RasterizeType.TEXTCONTENTS);
    docRef.activeLayer = docRef.layers["Text"];
    docRef.selection.selectAll();

    //draw the stroke
    var strokeLayerRef = docRef.artLayers.add();
    strokeLayerRef.kind = LayerKind.NORMAL;
    strokeLayerRef.name = "Stroke";


    var strokeColor= new SolidColor();
    strokeColor.rgb.red = 255;
    strokeColor.rgb.blue = 0;
    strokeColor.rgb.green = 0;

    docRef.selection.stroke(
        strokeColor,
        15,
        StrokeLocation.CENTER); // OUTSIDE / INSIDE

If you want to make a selection of text only, use scriptlistener and ctrl + click on the text layer icon to make the selection. Then, you can use the generated code to use for your race. Or you can use the scriptlistener and create a layer style line.

#target photoshop

var idsetd = charIDToTypeID( "setd" );
    var desc6 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref1 = new ActionReference();
        var idChnl = charIDToTypeID( "Chnl" );
        var idfsel = charIDToTypeID( "fsel" );
        ref1.putProperty( idChnl, idfsel );
    desc6.putReference( idnull, ref1 );
    var idT = charIDToTypeID( "T   " );
        var ref2 = new ActionReference();
        var idChnl = charIDToTypeID( "Chnl" );
        var idChnl = charIDToTypeID( "Chnl" );
        var idTrsp = charIDToTypeID( "Trsp" );
        ref2.putEnumerated( idChnl, idChnl, idTrsp );
    desc6.putReference( idT, ref2 );
executeAction( idsetd, desc6, DialogModes.NO );

Tags: Photoshop

Similar Questions

  • Function of @Allocate can't seem to get the right syntax

    Hi friends,

    I need to make a linear distribution (all equal amounts) of value has prompted at least (for a given combination of year-round version scenario entity etc.)

    I'm yeartotal-quarters and months.

    I can't use the usual period of spread I need produce whole numbers and the standard distribution introduced decimal numbers.

    I thought I'd be able to use @allocate to do something like that, but I'm having trouble him to validate both calcmgr and eas with what I thought was a pretty simple attempt, that is, difficulty on the account will be allocated and relevant narrowing and then assign a value to the range of months using propagation and rounding and applying the difference to the higher member or the first in the range:

    DIFFICULTY (' 21 ',' e080201 ', 'HSP_InputValue', 'FY11","Local","Run business', 'Mensualización 1', "YearTotal")
    @ALLOCATE (12000, @levelmbrs(Period,0), Monto, spread, SKIPNONE, roundAmt,-3, errorsToHigh);
    ENDFIX;
    .

    But I get a syntax error: error: 1012000 syntax not v lida. None are un comando c calculation [@ALLOCATE].

    I'm at my wits end. Anyone know what I'm doing wrong here and if allocate work even for what I try to achieve?

    If not what other submissions do something like this don't you have?

    I need to come up with more later as well guests to make the amount a variable and the range invited as well, but for now if I pass it I'll be happy.

    Agnete

    Hello

    'Re missing you the 4th parameter. Also try to put a member in the left part of the equation.

    Try 'Member' = @ALLOCATE (12000, @levelmbrs(Period,0), Monto, propagation, SKIPNONE, roundAmt,-3, errorsToHigh);

    Note the comma before "propagation."

    Thank you
    JM

  • using stored procedures - I can't seem to get the right settings

    I am wanting to use stored procedures to create variables of substitution use UC4 (Appworx). (the databases I use are 10g) To do this, I first need to run command line in PL/SQL procedures. I don't seem to be able to create the correct command. This is the part of the package that I want to call



    CREATE OR REPLACE
    PACKAGE BODY 'APPLICATION_PACKAGE' AS


    PROCEDURE GET_APP_PARAM (V_APP_PARAM_ID IN CCOK. CC_APP_PARAM_DETAIL. APP_PARAM_ID % TYPE,
    V_APP_PARAM_NAME IN CCOK. CC_APP_PARAM_DETAIL. APP_PARAM_NAME % TYPE,
    OUT NOCOPY CCOK V_APP_PARAM_VALUE. CC_APP_PARAM_DETAIL. APP_PARAM_VALUE % TYPE)


    AS


    BEGIN

    SELECT APP_PARAM_VALUE
    IN V_APP_PARAM_VALUE
    TO CCOK. CC_APP_PARAM_DETAIL
    WHERE APP_PARAM_ID = V_APP_PARAM_ID
    AND APP_PARAM_NAME = V_APP_PARAM_NAME;


    END;




    It's the exact command I use command line

    run application_package.get_app_param(1000,'RUN_TYPE')

    When I do this I get invalid statements expected but still tweaking doesn't fix it and does not give me a clear idea of what I need to do to fix it.
    I get this sort of thing


    SQL & gt; run ccok.application_package.get_app_param(1000,'run_type')
    BEGIN ccok.application_package.get_app_param(1000,'run_type'); END;


    *
    ERROR on line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in the call to 'GET_APP_PARAM '.
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored



    SQL & gt; run ccok.application_package.get_app_param(1000,'run_type',:result)
    SP2-0552: Bind variable 'RESULT' undeclared.
    SQL & gt; run ccok.application_package.get_app_param('1000','run_type')
    BEGIN ccok.application_package.get_app_param('1000','run_type'); END;


    *
    ERROR on line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in the call to 'GET_APP_PARAM '.
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored



    Any help will be appreciated with more recognition.

    It's interesting.

    Package specification has "GET_APP_PARAM" with 2 parameters.
    The package body has "GET_APP_PARAM" with 3 settings.

    I tested this out case in my db. Oracle balk when the package body is compiled, but shows no errors.

    test@ORA10G> --
    test@ORA10G> DROP PACKAGE "APPLICATION_PACKAGE";
    
    Package dropped.
    
    test@ORA10G>
    test@ORA10G> drop table cc_app_param_detail;
    
    Table dropped.
    
    test@ORA10G> create table cc_app_param_detail (
      2    app_param_id    number(4),
      3    app_param_name  varchar2(20),
      4    app_param_value varchar2(20));
    
    Table created.
    
    test@ORA10G>
    test@ORA10G> insert into cc_app_param_detail
      2  select 1, 'name_1', 'value_1' from dual union all
      3  select 2, 'name_2', 'value_2' from dual union all
      4  select 3, 'name_3', 'value_3' from dual;
    
    3 rows created.
    
    test@ORA10G> commit;
    
    Commit complete.
    
    test@ORA10G>
    test@ORA10G> select * from cc_app_param_detail;
    
    APP_PARAM_ID APP_PARAM_NAME       APP_PARAM_VALUE
    ------------ -------------------- --------------------
               1 name_1               value_1
               2 name_2               value_2
               3 name_3               value_3
    
    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> CREATE OR REPLACE PACKAGE "APPLICATION_PACKAGE" AS
      2    PROCEDURE GET_APP_PARAM (
      3      V_APP_PARAM_ID IN TEST.CC_APP_PARAM_DETAIL.APP_PARAM_ID%TYPE,
      4      V_APP_PARAM_NAME IN TEST.CC_APP_PARAM_DETAIL.APP_PARAM_NAME%TYPE);
      5  --    V_APP_PARAM_VALUE OUT NOCOPY TEST.CC_APP_PARAM_DETAIL.APP_PARAM_VALUE%TYPE);
      6  END;
      7  /
    
    Package created.
    
    test@ORA10G> show err
    No errors.
    test@ORA10G>
    test@ORA10G> DESC APPLICATION_PACKAGE
    PROCEDURE GET_APP_PARAM
     Argument Name                  Type                    In/Out Default?
     ------------------------------ ----------------------- ------ --------
     V_APP_PARAM_ID                 NUMBER(4)               IN
     V_APP_PARAM_NAME               VARCHAR2(20)            IN
    
    test@ORA10G>
    test@ORA10G>
    test@ORA10G> CREATE OR REPLACE PACKAGE BODY "APPLICATION_PACKAGE" AS
      2    PROCEDURE GET_APP_PARAM (
      3      V_APP_PARAM_ID    IN TEST.CC_APP_PARAM_DETAIL.APP_PARAM_ID%TYPE,
      4      V_APP_PARAM_NAME  IN TEST.CC_APP_PARAM_DETAIL.APP_PARAM_NAME%TYPE,
      5      V_APP_PARAM_VALUE OUT NOCOPY TEST.CC_APP_PARAM_DETAIL.APP_PARAM_VALUE%TYPE)
      6    AS
      7    BEGIN
      8      SELECT APP_PARAM_VALUE
      9      INTO V_APP_PARAM_VALUE
     10      FROM TEST.CC_APP_PARAM_DETAIL
     11      WHERE APP_PARAM_ID = V_APP_PARAM_ID
     12      AND APP_PARAM_NAME = V_APP_PARAM_NAME;
     13    END;
     14  END;
     15  /
    
    Warning: Package Body created with compilation errors.
    
    test@ORA10G> show err
    No errors.
    test@ORA10G>
    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> var x varchar2(10)
    test@ORA10G> exec test.application_package.get_app_param(1,'name_1',:x);
    BEGIN test.application_package.get_app_param(1,'name_1',:x); END;
    
          *
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'GET_APP_PARAM'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    
    test@ORA10G> print x
    
    X
    --------------------------------
    
    test@ORA10G>
    test@ORA10G>
    test@ORA10G> select object_type, object_name, status from user_objects where object_name='APPLICATION_PACKAGE';
    
    OBJECT_TYPE         OBJECT_NAME                    STATUS
    ------------------- ------------------------------ -------
    PACKAGE             APPLICATION_PACKAGE            VALID
    PACKAGE BODY        APPLICATION_PACKAGE            INVALID
    
    test@ORA10G>
    test@ORA10G>
    

    What do you see as the State of the art and the body when he is interviewed command-line SQL * more?

    The solution would be to add the third parameter to the package specification and recompile.

    HTH,
    isotope

  • Hi I need to know how to write Arabic text with indesign cc 2015

    Hi I need to know how to write Arabic text with indesign cc 2015

    One thing has changed: since CS6 (Version cloud only) you can install the operating system in Arabic or Hebrew any other language without extra cost.

  • Can't seem to get the printer to the appropriate port to communicate with the printer Lexmark 2480.

    WndOws XP install problems with Lexmark X 2480 printer no cd

    Can't seem to get the printer to the appropriate port to communicate with the printer Lexmark 2480.  Downloaded, but prints blank pages.

    Hello, ColoChick,

    Your question must be posted in the hardware and drivers Forum.  Note the drop-down menus...

    http://answers.Microsoft.com/en-us/Windows/Forum/performance

    Search for drivers for your Lexmark printer.  The complete set is recommended for a full installation.

    http://support.Lexmark.com/index?http://support.Lexmark.com/index?locale=en&page=product&UserLocale=en_US&ProductCode=LEXMARK_X2480&focusedTab=downloads#2

    You can also try the universal print driver

    http://www1.Lexmark.com/en_US/software/UPD/index.shtml

    If possible, contact Lexmark for the installer of physical media (CD)

    Q: How can I contact the Lexmark parts?

    R: customer support is available Monday - Friday from 09:00 - 18:30 AND

    E-mail: * address email is removed from the privacy *
    Phone: 1-877-577-2787
    Fax: 1-800-258-4880

  • I currently have an ad - one that I use frequently on IE8 which does not work on IE9. How can I stop to get a message that I have new updates when IE9 is the only update?

    I currently have an ad - one that I use frequently on IE8 which does not work on IE9.  How can I stop to get a message that I have new updates when IE9 is the only update?

    Hi altak38,
     
    -What is the add-on which you speak?
    -Are you referring to Windows Update with Internet Explorer 9 update several times even if it has been installed?
     
    If so, follow the steps in the following article to resolve this problem.
     
     
    Post back with more information for the issuance of the add-on - to help you help.
  • I can't seem to get the easy transfer Windows from Windows Vista to play with Windows 7 easy transfer and can't seem to install the transfer Windows 7 because it gives me only a 32-bit version to install.

    Windows Easy Transfer of 64-bit to 32-bit, or vice versa

    Hello

    I'm trying to fix my settings my current machien to a W7 VM user to make sure that I have the transfer settings and I get all the information I want.  My machine is 64 bit, but the VM is 32-bit.  I can't seem to get the easy transfer Windows from Windows Vista to play with Windows 7 easy transfer and can't seem to install the transfer Windows 7 because it gives me only a 32-bit version to install...

    How I have a 64-bit Windows 7 Easy Transfer to install and if I get one to install and build a transfer saved the data file has there 'restore' on a 32-bit Windows?

    George George P Botuwell, programmer

    Hi George P Boutwell,.

    Thank you for using answers Forum.

    I think that VMware has a 64-bit/function version. You will need to contact them to verify this.
    64-bit to 32-bit is not supported by Windows Easy Transfer, as far as I know.

    I hope this helps.
    Chris
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I do to get the Apple CERT?

    How can I do to get the Apple CERT?

    http://training.Apple.com

  • AppStore has disappeared from my iPad 2, iOS 7. How can I download or get it back?

    AppStore has disappeared from my iPad 2, iOS 7. How can I download or get it back?

    Check: Settings - general - Restrictions - installation Apps =?

  • I would like to use the outlook express, but can't seem to get it properly configured. can you tell me how to do without a bunch of answers?

    I would like to use outlook express, but I can't seem to get it properly configured.  Can you me in plain English how to set up?

    Setting up email in Outlook Express servers:
    http://www.Microsoft.com/Windows/IE/community/columns/mailserver.mspx

    You need to get the settings appropriate to your mail server, but we won't know if tell us who it is. Usually, what is after the @ in your address. Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • How can I remove the hotmail homepage ads selection?

    How can I remove the hotmail homepage ads selection?

    Windows Live Hotmail is supported in this forum
    http://answers.Microsoft.com/en-us/windowslive/Forum/Hotmail?tab=all

  • Windows 7, I did a "new folder" to put pictures in, how can I do this? When I select all and right click to add photos to my account, I don't see the folder

    I'm new to using Windows 7, I did a "new folder" to put pictures in, how can I do this?  When I select all and right click to add photos to my account, I don't see the folder...

    Drag and drop the video,

    http://www.YouTube.com/watch?v=6n3YKsgOdsk

    Or right-click and use cut then right click on the folder and select Paste.

  • How can I install to get the automatic updates for my drivers on a system Windows 8?

    Original title: hardware device

    How can I install to get the automatic updates for my drivers on a system Windows 8?

    Hello
    Go through the links below, it offers you a complete description of the automatic updates.
  • Hi, PDF form of the guru. How to make a text box become a required field IF a drop-down list is selected as the "Yes"?

    Hi, PDF form of the guru.

    How to make a text box becomes a "required field", IF a drop-down list is selected as the "Yes"?

    and 'not required' if the drop down menu selected as 'No' or left blank.

    Any help would be greatly appreciated

    see you soon

    Use this code in the custom drop-down list field validation script:

    this.getField("Text1").required = (event.value == "Yes");

    (Change "Text1" to the actual name of your text field, of course)

  • How can I find and get rid of the duplicates

    How can I find and get rid of the duplicates

    Hi sinkerslider,

    I apologize for the long delay. In what app work? Looking for double .jpgs, PSD etc files. ? Also, what device and operating system are you using? Thank you very much!

    -Kathleen

Maybe you are looking for