How to create a group using photoshop scripts?

Hey guys,.

I can create a layer easily with the following code.

But how do I create a group that contains more than one layer.

docRef var = app.documents.add ();

myLayer var = docRef.artLayers.add ();


Here is an example...

var doc = app.documents.add();
var newLayerSet = doc.layerSets.add();
var myLayer = doc.artLayers.add();
var myLayer2 = doc.artLayers.add();
//move the layers into the layerset
myLayer.move(newLayerSet, ElementPlacement.INSIDE);
myLayer2.move(newLayerSet, ElementPlacement.INSIDE);

Tags: Photoshop

Similar Questions

  • How to create IT strategy using the BES administrator API

    Hi all

    Can tell me, how to create IT strategy using the BES administrator API.

    Please provide me with the code example.

    Thanks in advance.

    Kind regards

    Sampath

    Hi Sebastian,.

    The Administration of BlackBerry API does not support the creation of it political. This feature is currently with the development of control and review for a future version of the BlackBerry Web Services for the Administration of the company.

    Kind regards

  • How to create screen saver using the java bean

    Hi all

    can someone knows how to create screen saver using java beans?

    Thanks in advance.
    Sarah

    It is a strange requirement, but you can go

    A TIME-NEW-FORM-INSTANCE:

    DECLARE timer_id Timer;
     one_minute NUMBER(5) := 60000;
    BEGIN
     timer_id := CREATE_TIMER('chnage_color', one_minute, REPEAT);
    END; 
    

    WHEN-TIMER-EXPIRED:

    DECLARE
         RandomR NUMBER(10):=dbms_random.value(1,256);
         RandomG NUMBER(10):=dbms_random.value(1,256);
         RandomB NUMBER(10):=dbms_random.value(1,256);
    BEGIN
    
     SET_CANVAS_PROPERTY('CANVAS2',BACKGROUND_COLOR, 'R'||RandomR||'G'||RandomG||'B'||RandomB);
    END; 
    
  • How to create the report using the procedure.

    Hi all

    I want to create the report in the apex. But I don't have a sql code. I have a single procedure. Is it possible to create the report using this procedure in the apex.

    CREATE OR REPLACE PROCEDURE headcsv_prc2

    AS

    CURSOR cr_header

    IS

    SELECT ood.organization_code, fm.formula_no AS "FORMULA_NAME."

    FM.formula_vers AS "FORMULA_VERSION."

    FM.formula_desc1 AS "FORMULA_DESC."

    DECODE (fm.formula_status,

    100, 'new ',.

    400, "approved for use in the laboratory."

    700, "allow the general."

    800, "We Hold."

    900, "frozen."

    1000, "obsolete/archived.

    ) AS "FORMULA_STATUS."

    DECODE (fd.line_type, '1', msib.segment1).

    DECODE (fd.line_type, '-1', msib.segment1 ') ingrediant.

    DECODE (fd.line_type, '2', msib.segment1) AS "BY_PRODUCT."

    DECODE (by_product_type,

    "W', 'waste."

    "R',"rework. "

    "Y', 'Yield."

    The of ', 'Sample. "

    NULL VALUE

    ) AS "BY_PRODUCT_TYPE".

    Of org_organization_definitions ood,.

    fm_form_mst fm,

    fm_matl_dtl fd,

    mtl_system_items_b msib

    WHERE ood.organization_id = fm.owner_organization_id

    AND fm.owner_organization_id = msib.organization_id

    AND msib.organization_id = fd.organization_id

    AND fd.organization_id = ood.organization_id

    AND fm.formula_id = fd.formula_id

    AND msib.inventory_item_id = fd.inventory_item_id

    - and fm. FORMULA_NO like '% THE % '.

    AND fd.line_type IN ('1 ', ' 2', '-1' ")

    Ood.organization_code GROUP,

    FM.formula_no,

    FM.formula_vers,

    FM.formula_desc1,

    FM.formula_status,

    FD.line_type,

    MSIB. Segment1,

    by_product_type

    ORDER BY fm.formula_no, fm.formula_vers;

    BEGIN

    Dbms_output.put_line (INITCAP ('the ORGANIZATION CODE')

    || ','

    || INITCAP ('NAME FORMULA')

    || ','

    || INITCAP ('FORMULA VERSION')

    || ','

    || INITCAP ('FORMULA DESC')

    || ','

    || INITCAP ('FORMULA STATUS')

    || ','

    || INITCAP ('PRODUCT')

    || ','

    || INITCAP ('INGREDIANT")

    || ','

    || INITCAP ("PER PRODUCT")

    || ','

    || INITCAP ('PER TYPE OF PRODUCT")

    );

    FOR ch IN cr_header

    LOOP

    Dbms_output.put_line (ch.organization_code

    || ','

    || ch.formula_name

    || ','

    || ch.formula_version

    || ','

    || '"'

    || ch.formula_desc

    || '"'

    || ','

    || ch.formula_status

    || ','

    || ch. Product

    || ','

    || ch.ingrediant

    || ','

    || ch.by_product

    || ','

    || ch.by_product_type

    );

    END LOOP;

    EXCEPTION

    WHILE OTHERS

    THEN

    Dbms_output.put_line (' No error: ' |) SQLCODE. "Error Msg: ' '.

    || SQLERRM

    );

    END;

    EXEC HeadCSV_Prc2



    Thank you

    Rambeau

    Hi Christian,

    In addition to the fact that the Oracle database has an internal Java engine and it would be possible for Apex call a Java stored procedure, the Apex really has nothing to do with Java. To create a report, you discovered, you specify a SQL query. In certain circumstances, you can embed a query in a PL/SQL function, but the incorporation of an arbitrary Java application and waiting for it to be called from Apex for a kind of security is there with the fairies.

    I recommend you research the Apex and then enter your so-called "higher authorities" how things work.

    Concerning

    André

  • How to create the database using the command line?

    Hi all

    Win7
    10g or 11g

    I want to create a new database using a script.

    I set up my new SID and oracle_home.

    Then sqlplus / DBA.

    then I execute a common script...
    startup nomount;
    create database PRODB
           logfile group 1 ('z:\oradata\PRODB\redo01.log',
                            'z:\oradata\PRODB\redo01b.log') size 50M,
                   group 2 ('z:\oradata\PRODB\redo02.log',
                            'z:\oradata\PRODB\redo02b.log') size 50M,
                   group 3 ('z:\oradata\PRODB\redo03.log',
                            'z:\oradata\PRODB\redo03b.log') size 50M,
                   group 4 ('z:\oradata\PRODB\redo04.log',
                            'z:\oradata\PRODB\redo04b.log') size 50M
           character set AL32UTF8
           datafile 'z:\oradata\PRODB\sysPRODB.dbf' size 500M
           sysaux datafile 'z:\oradata\PRODB\auxPRODB.dbf' size 300M
           undo tablespace undo
                   datafile 'z:\oradata\PRODB\undoPRODB.dbf' size 100M
           default temporary tablespace temp
                   tempfile 'z:\oradata\PRODB\tempPRODB.dbf' size 150M;
    @/opt/app/oracle/product/10.2.0/db_1/rdbms/admin/catalog.sql;
    @/opt/app/oracle/product/10.2.0/db_1/rdbms/admin/catproc.sql;
    connect system/manager;
    @/opt/app/oracle/product/10.2.0/db_1/sqlplus/admin/pupbld.sql;
    exit;
    
    
    
    SQL> startup nomount;
    ORA-12560: TNS:protocol adapter error
    SQL> create database PRODB
      2         logfile group 1 ('z:\oradata\PRODB\redo01.log',
      3                          'z:\oradata\PRODB\redo01b.log') size 50M,
      4                 group 2 ('z:\oradata\PRODB\redo02.log',
      5                          'z:\oradata\PRODB\redo02b.log') size 50M,
      6                 group 3 ('z:\oradata\PRODB\redo03.log',
      7                          'z:\oradata\PRODB\redo03b.log') size 50M,
      8                 group 4 ('z:\oradata\PRODB\redo04.log',
      9                          'z:\oradata\PRODB\redo04b.log') size 50M
     10         character set AL32UTF8
     11         datafile 'z:\oradata\PRODB\sysPRODB.dbf' size 500M
     12         sysaux datafile 'z:\oradata\PRODB\auxPRODB.dbf' size 300M
     13         undo tablespace undo
     14                 datafile 'z:\oradata\PRODB\undoPRODB.dbf' size 100M
     15         default temporary tablespace temp
     16                 tempfile 'z:\oradata\PRODB\tempPRODB.dbf' size 150M;
    I always hit it

    SQL > startup nomount;
    ORA-12560: TNS:protocol adapter error

    But if I run it on Linux is good.


    Help, please...


    Thank you very much

    zxy

    yxes2013 wrote:

    I want to create a new database using a script.

    Suggestion. DBCA allows to generate the database model and use the option "+ Save as scripts + ' (no need to create the database).

    In the scripts directory, there will be a couple of shell and SQL scripts to create the database. Use them as your CLI model for the creation of a custom database. (I guess that DBCA works the same on Windows as it does on Linux).

    Another option, if you are using Oracle XE, is to copy ORACLE_HOME/bin/createdb.sh (probably a + .cmd on Windows) script and change for use. If you manually add non-XE features to the script (such as the installation of the Java virtual machine) If you want a database of SE or EE. (whereby DBCA scripts are a better answer).

  • How to create vSwitch distributed using vicfg-vswitch?

    I was looking for to vSphere command-line Interface documentation to create the vswitches distributed using the CLI.

    http://www.VMware.com/support/developer/VCLI/

    But I couldn't find a way. So I would like to know, is it possible to create a dvSwitches using the CLI?

    If it is not possible through CLI, then what is the opposite?

    Unfortunately, my development environment is always downwards, otherwise I can whip up a small example.

    But when you say it is no examples around, there are actually many examples using the SDK including the vSphere SDK for Perl. If you look at the source code of the any orders vCLI, you will notice that they are all written in Perl, and it is not surprising, he uses the vSphere SDK for Perl. Yes, there may be no examples for each use unique case or operation that can be performed against a host ESX/ESXi and vCenter, which is the same for given PowerCLI, the functionality is there in the API.

    If you are new to VMware SDK/API and is interested to develop or create your own scripts, I'd take a glance at this document first - Getting Started with vSphere SDK - Update for SDK 4.1 release. Depending on your comfort level, you will choose an appropriate SDK (vSphere SDK for Perl, PowerCLI, VI Java, c#, .NET, etc.) to the script or program in. Some SDK will be easier to learn as PowerCLI, VMware has done a great job using the Powershell language to abstract much of the complexity of the vSphere API made it really simple to jump to the right, if you still need to understand what is happening and how the operations are actually called. The default value 100-200 + cmdlets cover most of the basic use cases, but once you start getting into more complicated scenarios, then you need to really understand the vSphere API to extend the functionality, including things like creating a vDS and distributed of the exchanges, etc.

    Here is a guide on getting started with vSphere SDK for Perl - Getting Started with vSphere SDK for Perl and here a collection of vSphere SDK for Perl scripts that I've written scripts repository vGhetto. Another excellent resource is the forums for developers as well as for the vSphere various API/SDK - http://communities.vmware.com/community/developer

    Bottom line is, everything that can be done via vSphere Client can be done using the API vsphere and with one of the vSphere SDK, it can still be trivial, but the functionality is there, you can simply create it if there isn't an example/sample code.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • How to create the custom using Javascripts in PLM for Agile process validator

    I have already created customized using ASP.Net validators. But now I need to create custom using Javascript validator.

    Please provide me the details

    1. how to create custom validator and where to create?

    2 provide me with code samples for custom validators javascripts

    Thank you

    Floquet

    I am currently using 6.1.1.5

  • How to create this site using Dreamweaver?

    I just finished a course of the basics of Dreamweaver and I would like to enter into a more advanced stage.

    This is the site I want to create:

    www.safaribig5.com

    Could someone please help me understand whether it is possible to create a website using Dreamweaver? If so, HOW?

    Thank you.

    The cursor is a plugin called Galleria

    http://Galleria.IO/

    The image gallery is a plugin called Flowslider jQuery

    http://www.flowslider.com/

    The page is a fundamental provision of 2 columns fixed centered width.

    http://ALT-Web.com/templates/CSS-Basic-2-column-layout.shtml

    Having said all that, you need to learn the theory of web design of base first and all that you can in HTML & CSS. He had to learn.

    HTML CSS & Web Design theory tutorials.

    http://www.html.NET/

    http://w3schools.com/

    http://www.csstutorial.NET/

    http://webdesign.tutsplus.com/sessions/Web-design-theory/

    Nancy O.

  • How to create a certificate using the keytool / terminal?

    I have problems with the creation of certificates using the Terminal. I use the instructions below and exactly all the information required. When he asks me to type 'Yes' and confirm, the whole process starts right at the beginning over and over and I have to type in the same things. Do I did wrong? How can I confirm the information I typed in?

    I'm trying to create a certificate to sign the apps for GooglePlay and Amazon. I use professional DPS.

    Thanks for the help!

    Directions for use:

    (Mac OS) Create a certificate using Keytool

    Open Terminal, located in Applications > utilities.

    Type (or paste) the following line (replace "myname.key.p12" with the actual name of your certificate):

    1

    keytool - genkey - v - keystore myname.key.p12 - alias alias_name - keyalg RSA - keysize 2048 - stores pkcs12-validity 10000

    The "10000" specification sets the expiration date after 22 October 2033.

    Enter and enter a password. Until the Viewer constructor supports the creation of custom Android applications, it is necessary to share this password with Adobe. Create a password that you can share.

    Follow the prompts to specify the certificate information.

    When you are prompted to confirm the choice, enter Yes and press return to use the same password.

    A certificate is created in your quick location, such as your user name folder. Copy the certificate file to a known location. Note the password as well.

    It could be access question. Enable the root user, and then try again.

  • How to CREATE a DIRECTORY using local directory

    Hi all

    I want to get some data to the local computer from the remote database service, so I use a stored procedure to get these date and save them in a file before you perform the procedure, I have to CREATE a DIRECTORY ensures that the path of the file.

    I use to CREATE a DIRECTORY on the local computer OCCI using, as: "CREATE or REPLACE DIRECTORY MSGDIR AS 'C:\test'" and I can't find the file in C:\test, I found the answer on the internet about this problem, it seems that use to CREATE a DIRECTORY on the database of service rather than on the local computer.

    Anyone know how to CREATE the local directory to use?
    Or give me advice to get the data to the local computer in my case?

    Best regards.
    It looks that CREATE DIRECTORY use the directory on the database service rather than local machine.
    

    Exactly. Where it States Furthermore?

    Anybody knows how to CREATE DIRECTORY use local directory?
    Or have any advice to get data to local machine in my case?
    

    1 all simply cannot do it. It is not possible, because this would be a serious security breach.
    2 of course, you can share the directory on the server to the network and configure a share on your local machine.
    It's so simple, most people think about it.
    You might also consider using Apex or utl_http directly.

    -----------
    Sybrand Bakker
    Senior Oracle DBA

  • I can't find how to create a group list rom installed contacts window Live Mail contact.

    Recently installed Live mail and as far as I can see there is no place to create a group list to send more than one person at5 e-mail once.  I couldn't transfer my list of Outlook 2002 Group to live mail;

    Given that you wrote "recently installed Live mail...". ", I assume you meant Windows Live Mail 2011 .

    If not, please ignore the following.

    If Yes...
    Open WLM 2011 > at the bottom left, click the icon that represents Contacts

    at the top, click on category (category = group) > enter the name of the Group > select contacts who will be in the Group > click Save when done.

  • How to create a group in the list of contacts in BB

    Hello..

    I need to create a group in the list of contacts in bb...

    help me by providing code samples...

    Thanks in advance...

    ~ Sam

    It is not possible to create the BlackBerry groups programmatically in the Contacts application.  Only read access is provided.

  • How to create a signature using a business card in Windows Live Mail?

    I want to know how to create a business card to signature in Windows Live Mail 2011. I already know how to create a signature. I want to know how to create a signature with graphs, etc.

    You will find detailed instructions on this page: create a signature with a picture

  • How to create the report using pass-in parameters

    Hi all

    I want to create a report using the parameters passed from the previous page. Let's take an example:

    Now in page B, he got 2 parameters P1_Table, P1_column, from Page A, I want to get the report:

    Select * from P1_Table, where P1_column like 'test % ';

    This means that I want to get the date in the P1_Table table and its P1_column begins with the character 'test'.

    I tried to use dynamic sql in the source of the region, but failed.

    Please help me

    Thanks in advance.


    PPMonkey

    Published by: PPMonkey on January 4, 2009 12:53 AM

    Hello

    Ensure that the report is a "SQL (body of function from PL/SQL returning the SQL) query. Then, use a source of something like:

    DECLARE
     vSQL VARCHAR2(4000);
    BEGIN
     vSQL := 'SELECT * FROM ' || v('P1_TABLE') || ' WHERE ' || v('P1_COLUMN') || ' LIKE '''test%''';
     RETURN vSQL;
    END;
    

    Andy

  • How can I create a group using a custom domain in Windows Live Domains of email delivery?

    I have a domain - mydomain.com, that uses Windows Live Mail to his provision of email., via Windows Live Domains.  When a visitor comes to my site, they see that they can send me an email to * address email is removed from the privacy *.  When they do, the email is sent to * address email is removed from the privacy *, * address email is removed from the privacy *, * address email is removed from the privacy * and * address email is removed from the privacy *.

    With my previous provider of e-mail, I was able to do, but the messaging system was extremely basic and I wanted to use Windows Live Mail to access other Windows Live services with a single login.  Is it possible to have the transfer of groups set up, ideally to the Center, using Windows Live Domains?  I asked the support of network in June and they said yes, but they would intensify the issue to their next line of support... and I never heard from them again.  Any help would be greatly appreciated.
    This is related to Windows Live, and unfortunately, this is the closest forum for Windows Live on the site of answers I can find...

    Hello Naytee

    Unfortunately, this isn't the community to ask questions of Windows Live. Since you are on a domain, you can ask your question on our TechNet forums. The link is below. Thank you.
    http://TechNet.Microsoft.com/en-us/Windows/cc468658.aspx

Maybe you are looking for

  • top of page maps not showing in the app store

    Since a few weeks I can't see top charts in App Store - load icon but nothing does not appear. Updates works well just head charts does not. I tried: -connected to and go back to your account on the phone -closed the app from the App Store via the ta

  • HP Elitebook 8570p: GPU Upgrade for p 8570

    Hello I want to update the graphics card of my p 8570. CPU: Intel i7 3740QM 2.70 GHz with integrated Intel® HD Graphics 4000 GPU: AMD Radeon HD M 7570 What are the possibilities are available? I could possibly run an external graphics card? Thank you

  • tool to repair permissions in vista?

    Somehow my permissions changed on some of my programs and they do not work at this time.  I was wondering if there was a tool that was offered in Vista at the prompt of commands I could type and fix mty permissions as the "System File Checker" for ex

  • Direct TCP and APN (Please Help)

    Hi, I recently published a music streaming application in the wild. In doing so, I was contacted by a number of international users (outside the U.S.) and was informed that they experience difficulty streaming the songs with my application. I did the

  • Can I install Win7 and Win8 on the same partition?

    I have a 500 GB partition I want to use to install windows 7 and windows 8. I have windows 8 already installed, I want to know if I can install Win7?