Moving to another LayerSet

Hello

I have small problam with a move to another layerset.

PS_move_layer_help.jpg

var folder = app.activeDocument.layerSets.add();
app.activeDocument.activeLayer.name = app.activeDocument.name;

for(var j = layers.length-1; j >= 0; j--){
        var layer = layers[j];
        app.activeDocument.activeLayer = layer;
        if(layer != folder) {
            layer.move(folder, ElementPlacement.INSIDE); // <=========== HERE IS PROBLEM
        }
}

I want to move layerset STAR to the STAR. PSD with all content.

Can you tell me, where is the problem?

You Domaneni

Where you able to get the scriptlistener connect to the output by using the name of layerSet in reference, or you did edit the log file? I was only able to get to the production index. And it doesn't seem to work by name. I would do something like that.

var sourceLayerSet = app.activeDocument.layers.getByName('Star');
var destinationLayerSet = app.activeDocument.layers.getByName('Star.psd');
moveLayerSet( sourceLayerSet, destinationLayerSet );

function moveLayerSet( fromLayer, toLayer ){// layerSet objects
    var desc = new ActionDescriptor();
        var sourceRef = new ActionReference();
        sourceRef.putName( charIDToTypeID( "Lyr " ), fromLayer.name );
    desc.putReference( charIDToTypeID( "null" ), sourceRef );
            var indexRef = new ActionReference();
            indexRef.putName( charIDToTypeID("Lyr "), toLayer.name );
            var layerIndex = executeActionGet(indexRef).getInteger(stringIDToTypeID('itemIndex'));
        var destinationRef = new ActionReference();
        destinationRef.putIndex( charIDToTypeID( "Lyr " ), layerIndex-1 );
    desc.putReference( charIDToTypeID( "T   " ), destinationRef );
    desc.putBoolean( charIDToTypeID( "Adjs" ), false );
    desc.putInteger( charIDToTypeID( "Vrsn" ), 5 );
    executeAction( charIDToTypeID( "move" ), desc, DialogModes.NO );
}

Tags: Photoshop

Similar Questions

  • Question has been moved to another forum.

    Question has been moved to another forum.

    The OP has decided to transfer his question in the forum of the contributor:

  • that winsxs folder can be moved to another partition / secondary hard drive

    Hello

    SINNCE the continuous breeding winsxs folder - can it safely be moved to another partition on the hard drive or a secondary hard drive? -in the affirmative; How?

    Shailesh

    Hello

    SINNCE the continuous breeding winsxs folder - can it safely be moved to another partition on the hard drive or a secondary hard drive? -in the affirmative; How?

    Shailesh

    First of all, read this: http://aspoc.net/archives/2008/11/20/winsxs-disk-space-and-windows-7/ he might change his mind.

    Secondly, yes you can but I (and others) would not recommend it: http://aspoc.net/archives/2008/11/20/winsxs-disk-space-and-windows-7/
  • Calls missed, received and places not connected to IP Phone 7945 after you have moved to another site

    I moved to another site with my IP Phone 7945 G.  The new site has no backend for IP telephony infrastructure.  However, the IP phone still works, and works well with the same phone number.  However, the missed, received, and placed calls are is more connected.

    Here's my situation.  7942 configured with the "using AnyConnect SSL VPN to ASA".  I add the device to CallManager and connect to the network internal to get to the bottom of the configuration.  Then I connect to an external network to test the VPN.  So I don't think the assignment of VLANS is relevant to my situation.  The phone ends with an ASA to the assigned IP address, but never gets a TFTP address.  I have add our TFTP on the phone manually and missed/received/place calls started working.  This is to think it takes an option 150 added to the addresses that the SAA is distributing.

  • Changes in font size in the menu title when moving to another submenu!

    Changes in font size in the menu title when moving to another submenu! How to solve the problem?

    Thank you.

    Bruce

    Set the rollover State to be identical to the normal state.

  • The virtual machine must be moved to another host?

    vCenter 4 runs on a virtual machine on vHost1. When you try to run an update for the virtual server that I have this message.

    The host has a VM VMware vCenter Update Manager or VMware installed vCenter vCenter. The virtual machine must be moved to another host for the remediation process to move forward.

    Before moving running virtual machine to a different host to vCenter, I thought I should ask if there is a better way to update vHost1?

    Thanks for your help. This is all quite new to me.

    Use VMotion to move your vCenter guest, you'll be fine.  Or if you have any DRS value fully automated when restore you one or more hosts DRS will move all of your guests.

  • Files & documents within a folder is moved to another folder

    We have files within a folder on a drive L: some files missing from the inside of the folder and find themselves in a different folder on the same drive.  How can I eliminate the possibility that someone is clicking and dragging files inadvertently in another folder?

    Hello Rbitty68,

    Welcome to the Microsoft Answers Community!

    The best solution to prevent the fall and drag accidental is to change the number of pixels in the file should be moved to activate slide / move. You can do this by downloading Tweak UI provided by Microsoft to change this and many other parameters.

    Download Tweak UI

    Once you have downloaded/installed Tweak UI:

    ·         Click Start

    ·         Click on all programs

    ·         Click Powertoys for Windows XP

    ·         Click Tweak UI

    ·         Click the mouse

    ·         Under the mouse sensitivity, Drag:, enter a higher number as currently defined. (for example: 99)

    Now the file will be dragged significantly until the file is actually moved anywhere

    Hope that helps, I look forward to hearing from you.

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

  • now in Singapore, I have a windows 7 installed but my keyboard and mouse Act up when you write something letters are moving themselves another text or disappear, missing cracy

    my keyboard and mouse during the writing/texting or whatever it is

    moving letters, appearing in another line or attach to another word or simply gone crazy is likus (frequently scan with windows scan and mc afeeebookosee for all what hypothetical my jingxt note that the sample here)
    I still write letters t
    you see what happens, which is a real problem and I need to find a solution, could be a vir now ithappened again with the shifting of the repair man, but he said here in Singapore = buy a new laptop for your old (2 years old is corrupt
    I only place
    any Advisor
    asked a computer I stop others in my journal of the computer will suffer whatever that means
    garble garble pushes me into the wall!
    don't rea sometimes the text so blurred
    I'm sitting here in a hotel with a trail of comments in paid, a public address already written in the taskbar... f o If someone's piggybacking my computer
    What unexpectallly disconnecting a message that fief the fault for you to see
    See the text of the pursuit of writing I do not correct t

    Looks like that now someone wrote in my obsscenitys of lines as C... t, whatever

    I am in a hotel to use aand Singapore the router with other guests, maybe a mischiefeous B...d is wrong?

    Co

    If whole words are be spelled correctly, it sounds like you were either hacked or has the computer infected with a malware or a virus.

    (1) you have an anti-virus application running? If so, run a deep scan. If this is not the case, download antivirus software. I use Avast free and have been used successfully for years.

    (2) run Anti-Malware software Malwarebytes', once again, a thorough analysis. First quarantine, then remove all the threats that it finds.

    (3) run the SUPERAntiSpyware software. He'll probably find thousands of tracking cookies. These you can safely remove, but are probably not the cause of your problem. Remove all the problems it finds.

    Once you have downloaded (downloads.cnet.com or softpedia.com are good places to use), installed and updated these applications, disconnect your computer from the network (router) to perform the actual analysis.

    These apps will take a lot of time, literally hours and hours to run, so plan to run all night with your laptop is plugged into a power outlet. Test your computer once these applications have completed their work and see what you get.

    Keep us in the loop.

  • VM does not start after moving to another server

    Hi all

    After our production server is down with a motherboard broken, we install another server (different hwardware) and installed vSphere 5.1. Existing virtual machines (database) (origin server) are on a raid (two drives raid 1) controller. We installed the RAID drivers in vSphere to make the database accessible (Areca RAID controller). Then, from the "Configuration" tab we opened the VM (browse the database) of the databases of the existing virtual machine, rightclickt to the servername.vmx folder and choose "add to the inventory. After that, the VM are added to the inventory of the VM client. The first time, we started the virtual machine, he asked if the virtual machine has been moved or copied. Because we did not know the correct answer, we choose "copied". He mentioned when we did not know the correct answer, choose "copy". After that, there are a lot of disk activity, but it ends in an error that it cannot find the vmdk file.

    Power on virtual machine

    MachineName.com

    [File]

    /vmfs/volumes/504dbfc2-bc271df0-F9B3-001e67339752/MachineName.COM_2.VMDK was not found.

    Then the boot stops and nothing happends.

    In the original situation all disk storage took place in the Bay of disks in the RAID controller, so there where no additional drives installed for storing the snapshot.

    Help, please!

    Have you added two virtual disks to the virtual machine? The _2 in the file name machinename.com_2.vmdk indicates usually that it's the second virtual disk on the virtual computer

  • How can I tell lightroom 5 to use a catalog that is moved to another drive?

    I moved the entire file my images (including my Lightroom Catalog), which was previously on my Windows 7 (64 bit) drive c: to another drive (f) and now I need to update Lightroom so that he knows where to find his re catalog - find.

    Please could I have a few basic instructions to change the Lightroom settings, in order to reuse the old catalog.

    Thanks for your help,

    Ian

    It can be very simple or it can be complex. To start, first of all make sure that the catalog file (the one with the .lrcat (LRCAT) extension) and the file preview that has the same name as the catalog but with the extension Previews.lrdata file are in the same folder. With Lightroom closed, double-click the catalog file and it should start Lightroom, if the original photos files are in their original location every thing should be fine. If the original files are not in the same place, then you will need to navigate Lightroom where they are. Post for additional information if you need additional assistance.

  • vCenter DB moved to another server - missing jobs?

    Hello.

    I just moved our virtual Center / Manager Update databases to a new server - which went well and vCenter 4.1 is being run again - but what comes to my mind, it is that the rest of this guide:

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1004382 

    ... There will be 3 jobs in "SQL server agent job list:

    Last day stats rollup

    Last month...

    Last week...

    BUT, when I look at the old server has the same 3 jobs over these:

    Cleanup task event

    TopN day

    TopN last month

    TopN since one week

    TopN for a year

    No longer needed? Either lack just in the link above?

    Hey Chrmol - I just stumbled upon a problem similar < < I guess it's the same question > >.

    I moved my VC DB to another server and made to recreate jobs for the postponement of his performance stats. I forgot to check my vCenter in front DR, but when I did today, I noticed that the jobs that you have mentioned exist in a vCenter nine 4.1 DB as opposed to a DB from 4.0 to 4.1 upgrade. I saw warnings under vCenter Service status as jobs were not cleaning all the data.

    I solved the problem by running queries for all work on my upgraded DB VC. Now the two DBs have the same jobs such as topn spent the day, etc.

    Queries are named job_blah, blah_mssql.sql. I ran all but Annex 1, 2 & 3 (perf stats) and this has created the same jobs as the new vCenter 4.1 DB.

    The path to the sql queries is file://\\%vCenterServer%\c$\Program Files\VMware\Infrastructure\VirtualCenter Server

    Not sure if you are still working on it, but I thought I'd bring it just in case where.

    ___________________

    A +, EASD, MCP, MCSA, MCSE, MCTS, MCITP, MCDBA, NCDA, VCP4

    If you find this or any other answer useful please consider giving points by checking the correct or helpful answer.

  • Eth0 lost after moving to another computer

    Hello...

    Ubuntu 8.04 server performed a vmware fusion 1.1.1. Then I copied it on another computer with vmware fusion 2.0.

    Now the Ubuntu has lost its eth0. I tried upgrading the virtual machine of the menu item. No help.

    $ sudo /etc/init.d/networking restart

    eth0: ERROR while getting interface flags: no such device

    SIOCSIFADDR: No such device

    $ifconfig; shows only lo

    Any suggestions?

    When you run the virtual machine for the first time on the new system, we asked you if you moved or copied the VM.

    If so, what did answer? (Note: you must have answered "Moved").

  • Moved to another drive project and source files

    Hi all

    I moved all the files in my project and my source files to another external hard drive and now I can't read all the sequences. Someone help me get back them please?

    Thank you very much

    Mark

    Mark,

    Welcome to the forum.

    Like the other answers, this article on the use of the external HARD disk may be useful: http://forums.adobe.com/message/4542396#4542396

    For offline media, this article goes into details: http://forums.adobe.com/message/3561281#3561281

    For "where is file _? Voirarticle article: http://forums.adobe.com/message/4598705#4598705

    In addition, you are on a PC or a Mac? There may be differences, such as the name of Volume vs the drive letter.

    Good luck

    Hunt

  • How can prevent deletion of the State 'no read' Thunderbird message if it is moved to another folder?

    The installed version of Thunderbird is 31.6.0.
    I have many files in my IMAP account to organize my emails.

    Since one of future versions of Thunderbird emails displaced lose their flag "unread".
    (Sorry - I can't tell since what version exactly this is the case)

    Since I was a tree view of all folders with unread emails (the legend is "Ungelesene Ordner" in my localized installation) for my daily use, it would be very useful to keep the character "unread" in inappropriate emails.

    In my view, there is another aspect of user experience:
    If I move, I won't mark it read.

    My fault. I'm sorry.

    I have receptive use a plugin called "fast Nachrichtenverschieben".

    I missed, that he has the ability to mark a message as read, if you move the message. This option seems to be the 'true' value after an update of this plugin.

    So - this problem is solved.

  • Why the menu bar menus cannot be moved to another toolbar?

    Hello

    In previous versions of Firefox, I used to move all the items of the menu bar navigation bar.

    But now that the tabs can be at the top of the window, which saves a useless space (the guys great work there), I hide the menu bar to use (and use the Firefox button).

    Since I can't find all the options that I used to find in the menus in the Firefox button (it has less detail and I have an additional module - ScrapBook - added a menu for traditional menus), I tried to move the navigation bar menus, so I can use them both at the same time. It seems that I can't move the menus anywhere in the menu bar. Why? I see no reason for the menus don't not have to be mobile as the other elements.

    This would give an opportunity to use old (and huge) menus and the new button at the same time.

    Thank you.

    teagish:

    Tagish said: I do not see an image in your last post, so I guess that you have changed from that of the ' 29/11/13 12:47 ' post.

    Answer: This is the image that I was referencing.

    Here's a broad overview of the Australis in its current form (there is little information that we are almost half a year of release and the release date can always be pushed if necessary) - https://blog.mozilla.org/ux/2013/11/australis-is-landing-in-firefox-nightly

    To download Australis - https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-ux/

    • Set up a separate profile for each version of Firefox including Australis to avoid damage to your profile-

    Don't forget that Australis is in pre-alpha, is not intended for the average user, for purposes of testing only at this point, is not completely stable and safe for daily use and is subject to change on a daily basis.

    Remember that anything, including the answers that I gave you earlier in this post and this post below this post (so that should happen) is subject to change, because the developers your feedback and if they decide to make a change.

    I suggest that you expect the Australis interface is closer to release to specific questions; Maybe wait for it either in the Aurora channel in a few weeks, then download and install it and use the Firefox Help menu > submit your comments to send feedback to the developers. Will NOT respond to your comments, but they can read them.

    1. The activity indicator is no longer available. Maybe an add-on will be developed later.
    2. Moving of House provided, download and bookmark combined this bookmarks / page display is possible and that they can be moved to the left of the URL/address bar. It seems that the button bar-3 (with customizable content by the user) is NOT mobile and can NOT be hidden. Note that the bookmark bookmarks button / display the page is currently "twinned" and cannot be moved as a unit.
    3. URL/address bar and the search bar may NOT currently be removed or hidden. In fact, the Navigation toolbar is more may be hidden. It is my understanding that the URL/address bar is now a single unit which includes the Go/Stop/Reload button and Back/Forward button and components Go/Stop/Reload button and Back/Forward button cannot be separated from the URL/address bar. There has been a lot of questions on the forum where users have hidden or deleted these articles and it causes huge problems for them.
    4. Read carefully, as I've included in one of my previous posts. Currently the default installation of Australis places the Menu bar at the left end of the title bar of the windows with the minimize mazimize, close of the buttons on the right side of the title bar. The menu bar is NOT currently but mobile can be turned off and temporarily displayed by pressing ALT or F10 in Windows. The Menu bar can be replaced using the add-on classic theme restaurant (click on the link where it is mentioned in a previous post above) to display the Firefox button. It is supposed to display the Firefox button in the title bar, but he shows currently below the title bar, taking a vertical line of the space. Currently the bar menu, when poster takes a bit more pixels vertically it needs; I hope that will be fixed.
    5. Currently, the default installation shows the menu bar (where the left side of the Windows title bar was previously), tabs, and the Navigation toolbar.

    Some add-ons will probably grow to allow users to modify some, but not all, changes to the interface. Restorer of classic theme has already been mentioned above, and I used it to change the look of my working version of installed 28.0a1 Australis.

    Let's please wait and see what develops rather guessing what might happen, or make decisions based on the current pre-alpha of Australis.

Maybe you are looking for

  • M40X WLAN-disconnect

    I use my M40X 112 in several of WLAN. In each WLAN, I had the same problem. Connection losses more and more. Some other users have had the same problem, but there is no possibility to solve the problem. What can I do? BIOS, Driver-WLAN, WLAN-tools -

  • Why toshiba hddr250e03x usb hard drive does not appear

    OS xp sp3

  • Loss of data due to the creation of a password high tower.

    As long as administrator, I just added a password to my lap top for the first time staff.  Since then, I can't find all the documents (Word, photos, etc.) and my desktop configuration has changed. What should I do to find my data?  The works of passw

  • Try to format my hard drive with windows xp installed.

    I went to cmd and on c:\ > I typed in format c: it came with the usual caveat. Continue the at I clicked on Y for Yes it came with the format cannot run because the format is used by another process. Format may run if this volume is dismounted first.

  • Turn on Windows Defender

    Hello Using a computer of Windows 8 with a few days left of Norton Internet Security.  I want to active Windows Defender antivirus.  After typing in windows defender in the start menu.  I get this pop-up.  This application has been disabled and is no