Activate the layer by name from the Clipboard

It's just a quick follow-up to "move the layer to cursor" - I try to activate a particular layer, and the name of the particular layer will be on the Clipboard.

So, for example, say that the active layer is "Layer 1"

and 'Layer 5' on the Clipboard

So, I want to be able to switch to the tier 5. The reason is that the Clipboard can contain names of different layers at one time. Is it not as easy as simply to write a script to switch to 5 layers. I need to move to some layer is in the Clipboard at any given time. The reason for this is a bit tedious so I'll leave that part for now

Here's a script that I was hoping to change and make it work:

#target photoshop

var layerRef = app.activeDocument.layers.getByName( 'Layer1' );

app.activeDocument.activeLayer = layerRef;


but I was hoping to change it to something in this direction:

#target photoshop

var layerRef = app.activeDocument.layers.getByName( 'WHATEVER IS IN THE CLIPBOARD' );

app.activeDocument.activeLayer = layerRef;


#target Photoshop
var SCRIPTS_FOLDER =  decodeURI(app.path + '/' + localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts"));
var libPath = decodeURI(SCRIPTS_FOLDER) + "/psClipboard64.dll";
var  psClip = new ExternalObject("lib:" + libPath);
var clipData = psClip.getClipboard();
app.activeDocument.activeLayer = activeDocument.layers.getByName (clipData); 

You must use activeDocument.layers.getByName ();

Tags: Photoshop

Similar Questions

  • How to activate the Clipboard sharing for shared virtual computers?

    Hi guys.

    Important note: this is VMWare Workstation.

    When I share a virtual machine in order to other guys in the network can control it, I lose the following capabilities:

    * the Clipboard sharing via VMWare tools

    * file drag and drop via VMWare tools

    * possibility of mounting isos of MY system from LOCAL FILES on the virtual computer DVD drives

    Someone knows how to re - activate these features?

    Many thanks in advance.

    You obviously not bothered to read the documentation! Here are some excerpts, referring to shared virtual machines...

    NOTE You cannot change to a shared virtual machine or remote model mode.

    Configure updates of specific for a Virtual Machine VMware tools...

    Use the VMware Tools default update behavior. The default behavior is defined in the preferences of the workstation.

    NOTE You cannot configure this option for a shared virtual machine or remotely.

    NOTE You can enable or disable drag - move to a shared virtual machine or remotely.

    NOTE You cannot enable or disable copy and paste functionality to a shared virtual machine or remotely.

    NOTE You cannot enable a shared folder to a shared virtual machine or remotely.

    NOTE You cannot map a virtual hard disk to a shared virtual machine or remote.

    NOTE You cannot add a printer to a shared virtual machine or remotely.

    NOTE You cannot configure a virtual machine shared or remote to display all USB input devices.

    Take or return to a snapshot at Power Off

    Take a new snapshot

    NOTE You cannot configure this option for a shared virtual machine or remotely.

    Configure power and control power settings Options

    3. Select a power option.

    NOTE You cannot configure these options for a shared virtual computer or remotely.

    6. Select the setting for the start control.

    NOTE You cannot configure startup for a shared virtual machine or remote control settings.

    NOTE You cannot configure a shared or remote virtual machine as a VNC server.

    NOTE use Workstation 10, you can change the hardware compatibility of a shared virtual computer or remotely. However, you cannot in low grade a virtual machine created previously.

    NOTE This command is not available for shared virtual computers, or remotely.

    Clean a VHD on Windows hosts

    Unlike the command to defragment and the shrink command provided by VMware Tools, clean it from the order of discs requires no any additional disk space on the host computer. Clean the disks command works directly on the files of virtual disk (hard).

    NOTE This command is not available for shared virtual computers, or remotely.

    Add a USB controller to a virtual machine

    NOTE shared and remote virtual machines are created without a default USB controller. You can add a USB controller manually when you have finished creating a shared virtual machine or remotely.

    4. set the USB connection settings.

    NOTE You can not usually set up USB connection to a shared virtual machine or remote settings.

    NOTE You cannot add a physical drive to a shared virtual machine or remotely.

    NOTE You cannot add a generic SCSI device to a shared virtual machine or remotely.

    NOTE You cannot configure the virtual keyboard improved to a shared virtual machine or remote setting.

    NOTE You cannot configure advanced settings of the virtual adapter to a shared or remote virtual machine.

  • Copy the name of the layer to the Clipboard?

    Hi, I was looking for a way to copy the name of the active layer in the Windows Clipboard, I hope this a quick solution. What I managed to do up to now, it is to open the Layer Properties dialog box, and then press 'CTRL + C' to copy the layer name (because the name of the layer is already highlighted at this stage), and then it correctly copy the name of the layer in the Windows Clipboard.

    But I found that when the system is under load, the Layer Properties dialog box is sometimes slow to open, and despite this, it seems that it is an additional step that could be eliminated.

    I searched through keyboard shortcuts and also in all the menus layer for a keyboard shortcut for just 'copy layer to the Clipboard name' but cannot find anything.

    Anyone know if there is a quick shortcut to do this or maybe a quick script that will copy just the name of the layer?

    Thanks in advance...

    Bingo! Thank you Philippe/csuebele/pixxxel, it's the "clip.exe" that was the problem for me. I pasted in system32 and now it works. It's awesome - now I am able to view a tool tip with the name of the layer, whenever I change the layers (with the help of my other app left 3rd) - this is especially useful when working in mode full screen when you don't see the palette layers. It will update your tool tip with the name of the layer whenever you use keyboard shortcuts to select the different layers.

    If someone thinks they would find useful, I had me more than happy to share it... but it's using a different script software, so I may or may not be able to talk about it here. Shoot me a private message if I can't talk about it here and you would like it to be.

  • How can I copy the list of names of files in the finder and set the Clipboard filenames separated by commas?

    Hi guys, I was wonder if anyone can give me a hand with a script.

    I need to be able to paste a list of file names of the files as follows:

    0001.jpg 0002.jpg 0003.jpg 0004.jpg

    At the moment, if I select the files in the Finder, copy to the Clipboard and paste them in TextEdit, they are like this:

    0001.jpg

    0002.jpg

    0003.jpg

    0004.jpg

    I found a similar but slightly different script and I don't know how to change it. Here it is:

    Define extension_list to {"jpg", "" JPG","jpeg","JPEG"}

    the value cbNames (Clipboard text) paragraphs

    Set csvNames to {}

    the tid value delimiters to point to the text of the AppleScript

    the text value of the AppleScript point delimiters ".»

    -now, make a list of names without extensions

    Repeat with the names in cbNames

    If the point 2 of the text names is extension_list then

    copy of text 1 of names at the end of csvNames

    end if

    end repeat

    Journal csvNames

    -now the filenames as comma CONCATENATE string separated

    the text value of the point delimiters AppleScript «»

    csvNames value cross-as text

    the text value of the point AppleScript delimiters tid

    There is an easier way. Open a TextEdit document and paste the list in. Place the cursor at the end of the first item and drag it to the start of the second.

    Press on + command + c to copy and then command + f to bring up find it. Press command + v (do not click in the first search field). Check the 'Replace' box, click in the field replace, and then type a comma and a space.

    Click 'All' and then 'done '.

  • Is there a configuration parameter that can be set so that the various web pages can NOT disable the ability for the latest data from the Clipboard in a field instead of typing

    Occasionally various websites have forms to fill out. Frequently, the password field and the ability to paste from the Clipboard is disabled. Since I use a password manager and generate passwords as mN0ZJ1Pj (generated example for display) she would like to be able to paste the password because there is less tendency for me for spelling errors.

    I would like to know if there is a configuration setting that causes the instructions on the web site to disable the ability to stick to be ignored. My position is that it's MY computer and I should be able to do what I want on my end.

    Thank you.

    Fred

    Go to the Mozilla Add-ons Web Page. There is an add-on called RightToClick. Look around. There are a lot of good stuff here.

  • How can I remove my name from the top right of the screen. I have a 2015 13 "MacBook Pro running 10.11.4

    How can I remove my name from the top right of the screen. I have a 2015 13 "MacBook Pro running 10.11.4

    At the top right of the menu bar shows the current user who is logged in and allows quick change of user accounts.

    You can disable the display of menu bar in system preferences > users and groups. Or order just drag it out of the bar.

  • I accidentally deleted all my settings and the apple iphone 6 s ID. Now I have to activate my phone and start from the beginning. But I don't have my EA sim with me right now and cannot organize any sim EE. How can I activate my phone without sim card?

    I accidentally deleted all my settings and the apple iphone 6 s ID. Now I have to activate my phone and start from the beginning. But I don't have my EA sim with me right now and cannot organize any sim EE. How can I activate my phone without sim card?

    Sorry, but you can't activate an iPhone without a SIM card installed. It is simply not possible to do.

  • How to copy the data from the indicator table 1 d to the Clipboard

    Is it possible to copy data from table 1 d indicator to the Clipboard as a text and for more than one cell?

    I use LV8.6.

    Leszek

    Sorry, I wasn't sure if it was available in 8.6, apparently not.

    You could create an indicator of fine print and use 'picture to a worksheet string' to complete. Now, you can just cut & paste the text instead.

  • How to retrieve picture from the Clipboard programmatically

    I would like to use LabView to grab an image from the Clipboard and the process using some of the graphics functions.

    I found some other threads, but the solutions were given in vi that are no longer available.

    Message 4:

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=367503&query.ID=1756464#M367503

    Jean-Marc

  • Replace from the Clipboard, or "connect the wires that overlap?

    I'll go by many of my first diagrams and clean code

    with things I've learned since I started using Labview.  A lot of this involves deleting

    objects, then copy/paste of a conception of good reference in the old design.   However,.

    This often leaves a large number of broken wires to clean.    For example, where I had individual

    enumerations that are used in the design, I am replacing them with typedef enumerations.

    (I couldn't typedef controls to appear in my palette of functions, but it is a question

    for another post)

    As it seems to be my only choice ' replace-> select a VI-> [file .llb]->-> [OK] typedef.

    or remove the old one, paste a new, ctrl-B and rewire.  This second option seems

    to go faster than the first.  But in both cases, there is a lot of click and drag to replace a

    control, and there are dozens of them to do.

    Therefore the routing of the wires is the same, but it takes time to connect them all back.

    Is it possible to tell LV "re - connect the broken wires that overlap the pins."

    overall or in a given area?

    Or y at - it a way to simply "replace from the Clipboard?

    Thank you and best regards,

    -- J.

    If you do a find > anyway, the dialog box that opens has a button replace.  After selecting the replacement, one of the options is to replace all.  This should save time if you have multiple copies of the original constants or controls made from the control.

    Lynn

  • Removing the names from the list of my blocked with Outlook Express email sender program Version 6.

    I use Outlook Express Version 6.  I have a list of names in my blocked senders list I want to remove.  I remove them.  Then when I close my e-mail program, the names reappear in my blocked senders list.  Is there a bug in this e-mail program that does not allow me to remove a few names from my blocked senders list?  I don't want to mess around with the registry key.  Does anyone else have this problem?  Has anyone been able to remove some names from your list of blocked senders?

    If they come back, it's a damaged registry key, but it is not very difficult to fix.

    1. close OE, then in Regedit, navigate to this key:

    | - HKEY_CURRENT_USER
    | - Identities
    |-{GUID}
    | - Software
    | - Microsoft
    | - Outlook Express
    |--------------------5.0

    where GUID is the Global Unique identifier for your identity.

    2. under this key, you will find the following between subkeys
    others:

    | - Block senders
    |-----------------------Rules
    | - Signatures

    Select the senders to block key and delete it. Publishers will be empty, but you can rebuild now.

    You can also create a new identity and import all of your messages and address book. The new identity will empty a list of blocked senders, but IMO, the registry key is much easier.

    Bruce Hagen ~ MS - MVP [Mail]

  • Since the last automatic update from Microsoft, I get the message on Outlook & Excel I need to activate the product.

    Since the last automatic update from Microsoft, I get the message on Outlook & Excel I need to activate the product. When I try to activate I tells me it is already activated, they have been running fine since 2001 when the Office Proffesional was legally purchased.
    The pop-up with activation message has two buttons, "Remind me later" and the button "more..." which seems to send me around in circles when it is followed.

    Hi Dudlion,

    Thanks for visiting the site of the community of Microsoft Windows XP. The question you have posted is related to Office and would be better suited to the office community. Please visit the link below to find a community that will provide the support you want.

    http://www.Microsoft.com/Office/Community/en-us/flyoutoverview.mspx Shawn - Support Engineer - MCP, MCDST
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • How can I change the name from when I send an e-mail?

    How can I change the name from when I send an e-mail?

    It would depend on your e-mail program. If you are using Windows Mail: tools | Accounts | Email account | Properties | General Tab. make the change.
  • Why can't I paste it from the Clipboard?

    Why can't I paste it from the Clipboard on my desk?

    Hello

    I suggest you post the question in the forums and check them off below if it helps:

    http://answers.Microsoft.com/en-us/Office/Forum/word?page=1

    It will be useful.

  • I can't change my name from the computer to the printer mp160

    I can't change my name from the printer about printing to the new printer and I put the disc with no response

    Download a new set of drivers on the Canon website at: http://www.usa.canon.com/cusa/support/consumer/printers_multifunction/pixma_mp_series/pixma_mp160#DriversAndSoftware, install the software and do NOT connect the printer to the PC until the Canon software tells you to do.

Maybe you are looking for

  • How can I save the iphoto for flash player library

    How can I save the iphoto for flash player library

  • Waste of space on the hard disk on the Satellite C650 - 15 X

    Hello I found a problem on my laptop Toshiba Satellite C650-15 X (almost new), I bought several months ago. It has a drive hard 500 GB volume in 2 partitions: C and D-with 250 GB each; and Windows 7 Premium 64-bit operating system. There is something

  • Charger make a beep and not charging.

    Hi all, I have a problem with my old computer for 6 months. The charger is a constant beep when it is connected and turned on.It does not load as well. I don't think that the battery has been overloaded to work still. Someone help, advice or advice p

  • LV-functions modeling restrictions?

    Hello I use LabVIEW 2011 to create a model (.lvmodel) for Veristand 2011. It works if I import a VI with only simple digital functions. When I try to import a complex more a compilation process is abandoned. Can what LV-functions I use in a model? I

  • Uninstall a program: how to remove Defender

    I want to replace Windows Defender with Microsoft Security Essentials, but I can't find Defender in my list of programs to uninstall.