Select item (s) in the layer

Hi all

How can I select item (s) in the name of the specific layer

my code is

var layer = app.activeDocument.layers.everyItem () .getElements ("Info Layer");

can a correct this, help will be appreciated

Thank you

Steve

Hi Steve,.

Please try the JS code, below, I have just alernate vandy method.

var myDoc = app.activeDocument;
var mylayer = myDoc.layers.itemByName("Layer 2");
for (var i=0; i 

THX,

csm_phil

Tags: InDesign

Similar Questions

  • You press on delete all selected items by browsing the data store and accidentally deleted a vmdk file which has the OS on it

    I accidentally deleted the vmdk file that has my OS on it by pressing the "Delete selected items" button in the window of browser data store. Is there anyway to recover? I have a snapshot that doesn't seem to work. There is still the VMDK file in there, but it has now 'delta' be added at the end. Now I get an error message when I try to turn on my VM saying that he doesn't get the vmdk file, of course.

    delta.PNG

    errorVMDK.PNG

    From the screen shots looks you have deleted only the descriptor hard files that can be recreated. To ensure this is the case, please provide a complete list of the files in the folder of the virtual machine and attach the last file.log of vmware(from the virtual work computer) to a post response to view required details.

    André

  • How to detect when the selected item ObjectListField changed?

    I expanded the ObjectListField to implement a scroller of marquee style iPod for long lines of text that will disappear from the screen. So far, I have everything works well, and it works as I expect... when it fires.

    I'm having a problem to find a way to make reliable activate. It doesn't seem to be any method I can substitute or any earpiece I can use that fires when the current list item is changed. I first tried setSelectedIndex substitution. That worked sometimes, because apparently the OS is not call setSelectedIndex when he wants to change the item selected, it does something else.

    Then I tried the substitution of navigationMovement and manually call the code to start the timer, but that no longer works (I was the substitution of method navigationMovement of the ListField, maybe I should have done the Manager instead?). But anyway this approach does work for the version of the storm of my application because the storm never calls navigationMovement.

    Then I tried to use a fieldChangeListener, but apparently who don't get fired for the selection.

    Finally in despiration I tried substitution of drawListRow, only qualifying when index equals the selectedRow. But my code of scroll calls invalidate, so of course it just causes a loop infinite drawListRow, slow down the device and not even starting the scroll, because whenever the timer is started, it cancels the old one.

    Anyone have any ideas on what I can do here? Thank you.

    Good end I could not fieldChangeNotify to the fire, no matter which I overrided, even with the first setting the listener. It only seems fair to shoot during the selection change event. One thing to note, I use an objectlistfield, not an ObjectChoiceField... maybe you are thinking as well to another area?

    Thanks for the help anyway, in the end I was able to get the desired effect by modifying the code slightly to reuse the same animation timer rather than create a new one when the selected item changes. The timer is started in the constructor of the ListField. Works very well.

  • can not select or modify the layer in CS5.1 extended mask

    In our class, we have photoshop CS5 on Mac

    I started a class project, which involves the creation of a layer mask. I was about done with the mask, but brought home at the end I opened the file on my WIN XP works photoshop CS5.1 extended, which I installed this morning. In class, I was able to click on the mask to select, then use the brush to change the details, the white or black paint if necessary to refine the edge.

    When I put the original .psd file and opened in the new version of Photoshop, it doesn't allow me to select the mask for the edition. I selected the layer and then clicked on the thumbnail of the mask in the pallet layer but didn't see the contours of the corner, which usually appear when the thumbnail of the layer is selected. When I tried brushing up on what I thought, it was the mask (on the selected layer), I got the pink overlay as usually seen in the quick mask. (foreground and background are black and white colors).

    V5.1 behaves differently with masks of v5.0? I do not change the factory default settings and in the classroom, it is a common practice to restore the value by default when you start.

    any ideas?

    It is not supposed to be a difference in how Photoshop CS5.1 works compared to CS5.

    Normally, you click on the layer mask icon in the LAYERS Panel, you see the contour change, then paint you on the mask.

    If you don't see quick out frozen, what happens if you press Q, then clear any selection and click on the layer mask icon again?

    -Christmas

  • the desktop icons getting not selected & right click of the mouse does not

    When I start the system everything is normal but after completing the office do not get selected items either through the mouse or the touchpad and even click right does not work. Search Advisor.

    Hi Kishore Peddi,

    You did changes to the computer before the show?

    Method 1
    I suggest you to run the fixit from the following link:

    Difficulty of broken desktop shortcuts and common system maintenance tasks
    http://support.Microsoft.com/mats/system_maintenance_for_windows/en-us

    Method 2
    Step 1:
    I suggest to start the computer in safe mode and check if the problem persists.

    Start your computer in safe mode
    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Step 2: I suggest you perform the clean boot and remove the program that is causing the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: Follow step 7 clean boot KB929135 article to reset the computer in normal mode.

  • Trouble finding the layer / mats / fringe

    I'm new to Photoshop.  I'm trying to access the function of fringe by layer/mats/fringe.  There is no selection of carpet under the layer menu.

    Is there another way to access the fringe dialog box?

    Is there a way to fill add functions of mats to the selections in the layer menu?

    Thank you

    Hello

    You use photoshop elements by chance and if so what version?

    (Enhance > adjust color > fringe layer is the usual location in photoshop elements)

    If your using photoshop which version that you use?

    Photoshop elements:

  • Action written in CS4 does not work properly in items 11 - contexts the 'selective' layer

    I created an action with the help of Adobe Photoshop CS4, and that it works in CS4.  When I save and load the action in 11 elements, there is a problem with the selective color layer.  The selective color layer is revealed in the stack of layers with the message whereas it cannot be edited b/c it was created in the full version of Photoshop. However, the layer itself has no changes in color/inside.

    In Photoshop, the selective color layer makes the photo look pink.  When I run the action in Elements11, selective color layer doing absolutely nothing to the photo.  I don't have the turned eye "on" to display the layer, and it is on the correct merge options & opacity (normal, 100%).

    If I run the action in Photoshop, save the file with all the layers created by the action and reopen the file in 11 elements, THEN the selective color layer shows its correct pink color.  But when I run the action as an autonomous action in Elements11, is not.

    Can anyone offer help as to why this is happening? Is there something special I need to do to make the action work in 11 elements? My understanding is that he must RUN and create the layers correctly, although some of them cannot be changed in Elements11. However, as it is, is not creating them with the appropriate color.

    Thank you in advance for your help!

    selective color layer is not supported in PSE11. So any stage to edit would result in the error message saying that the layer can not be displayed.

    For your case, I believe that the recorded action starts by creating a selective correction blank adjustment layer and then tries to change and thus translates into a mistake.

    Even the effort to apply the effect by using result of adjustments of image by mistake as the "selective" command is not available.

    I would try to find another way to apply the effect, but I don't know if there is a way to apply an adjustment layer that is not supported by PES

  • Select the layer name

    I need to select a specific layer or group by name.  What is the correct syntax to do this with Javascript?

    you want to select all the items on the layer? or only some types (e.g., blocks of text, groups, paths)?

    Let's take a look at the same time.

    Let's start by selecting all the elements on a given layer (in this case the layer is called "Target layer");

    Note that pageItems means that any element of art in the document. could be text, could be a path, can be a group, could be a compound path.

    var docRef = app.activeDocument;
    var layers = docRef.layers;
    var myLayer = layers["Target Layer"]; //this defines the layer that you want to get the selection from
    
    docRef.selection = null; //ensure there is nothing in the document selected already. this way you only get the selection you want.
    for(var a=0;a
    

    now lets do the same thing, but we will choose just the groupItems

    var docRef = app.activeDocument;
    var layers = docRef.layers;
    var myLayer = layers["Target Layer"];
    
    docRef.selection = null;
    for(var a=0;a
    

    and finally, in order to be comprehensive, allows to select two different types of art objects, but not all types. For example, if a single layer has text blocks, groups, paths and transparent traces. Let's just select managers of related texts and groupItems. This time we will have to include a conditional statement to find the correct item types.

    var docRef = app.activeDocument;
    var layers = docRef.layers;
    var myLayer = layers["Target Layer"];
    
    docRef.selection = null;
    for(var a=0;a		   
  • How can I activate / display the layer selection indicator?

    Hello

    I use Indesign CC 2015 since shortly after its release. As in previous versions of InDesign and other applications (such as Illustrator) Adobe, there is a useful feature in the layers panel, which allows direct selection of a layer or layer point. It appears in the layer panel to the far right of the layer element. It is a small square and it becomes highlighted/provided that layer/item is selected. I have a page of InDesign CC 2014:

    Screen Shot 2015-07-10 at 5.54.07 PM.png

    It's a blue square in the screenshot above, next to the pencil icon bit. This square icon disappeared from my indesign layers CC 2015 Panel. I searched preferences, Options for the layer, options, modes of display panel, I can't, and I use it very frequently. How can I turn this feature on? Help, please!

    Thank you in advance.

    -Aaron

    See replace your preferences

  • Get an AIArtHandle for all the selected items in the doc

    I'm doing what someone does in this other thread about the export in PNG.

    reference: http://forums.Adobe.com/thread/320685

    We have several layers (some off and locked).

    I would like to pass all the selected items to the Action of Image Optimization as a group rather than optimize each.  I use AIMatchingArt Suite to retrieve items selected, but it points to an array of AIArtHandles... any ideas?

    That's how I ended up doing and it works.  (In addition to the other code which has been referenced in the original post).

    I don't know if it would work better with an ArtSet, but it works.  Perhaps, if the images I'm flattening were somewhat more complicated, I would run in the duplication you mentioned.

    result = sAIActionManager-> PlayActionEvent (kAISelectAllAction, kDialogOff, NULL);

    result = sAIMatchingArt-> GetSelectedArt (store, & County);

    If {(result)

    Store = NULL;

    Count = 0;

    } else {}

    result = sAILayer-> InsertLayer (NULL, kPlaceAboveAll, & newLayer);

    If (newLayer &! result)

    {

    sAILayer-> SetLayerVisible (newLayer, true); See the layer

    sAILayer-> SetLayerIsTemplate (newLayer, false); Mark as NOT a model layer get exported

    sAILayer-> SetLayerEditable (newLayer, true);

    result = sAIArt-> NewArt (kGroupArt, kPlaceAboveAll, Nile, &group);)

    for (index = 0; (result == kNoErr) & (index< count="" );="" index++="" )="">

    Art AIArtHandle = (* store) [index];

    Copy of AIArtHandle;

    Add the art group

    result = sAIArt-> DuplicateArt (kPlaceInsideOnBottom, group, ©);)

    }

    }

    }

  • JS CS4: Create the variable for the active layer, and then select the layer at the end of a script

    I'm come white with the verbiage and spin my wheels with OMV guide and script.

    var myOriginalLayer = app.activeDocument.layers.item (0);
    Alert (myOriginalLayer)

    Returns "layer object" and not the name of the layer.

    var myOriginalLayer = app.activeDocument.layers.lastItem () .name;

    Returns the name of the layer I want but not by choice.

    I am challenged on how to select the layer.

    Hi John,.

    The difference lies in that the [Object Layer] is the real object, and the 'name' is a property - like color.

    You can use one of these two approaches:

    var myOriginalLayer = app.activeDocument.layers.item (0);
    Alert (myOriginalLayer.Name);

    hosts the original layer object, and you can see the name if necessary :-)

    For re - select the layer, use

    app.activeDocument.activeLayer = myOriginalLayer;

    You can also select name goes like

    var myOriginalLayerNAME = app.activeDocument.layers.lastItem () .name;

    ...

    app.activeDocument.activeLayer = app.activeDocument.layers.item (myOriginalLayerNAME);

    I also noted the following:

    app.activeDocument.layers.item (0) points to the first layer of your document; not the 'active'. Similarly, app.activeDocument.layers.lastItem () points only to the very last. I don't know if the order of the activeDocument.layers array mimicks the order as shown in the tags palette, but I hope for it :-)

    To get/set the active layer, use app.activeDocument.activeLayer as shown above.

  • Cannot select items from menu top 25% of the window of the browser most of the time.

    Running Windows 7 Pro, on a new HP Ultrabook (2 months) with FF 15.0.1. Several times, selectable items work not, but usually in the 20-30% of the browser window. With the pointer hovering over selections, it does not change to indicate a selectable element, or if it will allow you to select. It happens on sites such as Yahoo!, HP, etc. He doesn't do it all the time, but I'd say at least 50% of the time, even if you reload the page and allow all sites with NoScript. There is no warning of filtering.

    You are welcome.

    Please let us know the name of the extension of the problem because it helps others.

  • Cant' import images of Photos because "it is not enough free space on the volume of your library to import the selected items.

    Hey guys,.

    So I tried to import some ~ 8 GB of photos on my mac, but the Photos app gives me the following message: "there isn't enough free space on the volume of your library to import the selected items. It is estimated that you need at least X.XX GB of additional free space. »

    Where X.XX represents the amount of GB it says that I need but it changes everytime that I reopen the application to attempt an import.

    My mac has currently 44.4 GB so I don't know why this issue is coming.

    Any help would be great!

    Thanks in advance,

    Andres

    Where is your library?  If it's on an external HD and how the drive is formatted?

    Have you tried to repair the library according to this document from Apple: library of your repair?

    What version of PHotos do you use?

  • Get rid of the black borders around the selected items?

    My granddaughter of thirteen months was interested in my keyboard and now each selected item has a black frame to highlight... and there is a small sign at the bottom left of the screen showing what I typed just, by providing the keystrokes, etc..

    What is and how to turn everything off?

    Thank you!

    ED in Brooklyn

    System preferences/accessibility/voice off - turn off the power. Command - F5 works also.

  • Hide the rectangle of ghost autour last selected item in a listbox

    When the user clicks on an item in a control listbox, a ghost (dotted line) rectangle is drawn around the item and it persists even if all items in the listbox are deselected.

    How can I make the rectangle of ghosts disappear once it has been created?

    VI has begun: no Ghost is visible right now.

    The Ghost is present on a selection of a single line:

    present on the selection of two lines:

    Present when several lines are selected:

    Present when no line is selected:

    Moreover, it took me a while to understand (by trial and error) for a listbox set to '0 or more elements' selected, how you execute the option to select the element 0 is to click on a single point, then the same point again the control key.  It's just another time I tried that neither planned menu contextual easily accessible "help" Panel objects such as assistance for the stuff on the block diagram.

    Here is the excerpt VI used to try...

    I spent some time still poking at it and resulted in a solution.

    Hide and then redisplay listbox seem to flush out the rectangle.

    Shows the attached VI.

    And for what it's worth, I enclose a VI and not a preview because the manufacturing process extracts worked as well on the original message. He made a blunder towards the top of the structure of the event and the relations of property of the node with the listbox.  That's what it was supposed to look like at...

Maybe you are looking for

  • WLan does not connect after fashion 'sleep' - Satellite T110-10 x

    Hello Everything works well, connected wireless. After "standby" mode-, it is unable to connect even though it detects my wireless network.I tried the latest Realtek driver, still not good.I checked my configuration must not lower wireless in power o

  • BlackBerry synchronization cannot Q5 with my Outlook calendar or contacts

    When synchronization starts, I get the windows message 'Link of Blackberry has stopped working' and link farm. I suspect that there is a problem with the link with Office 2013 relationship which I use. My wife's computer has Office 2003 and synchroni

  • Filter the debug information

    Hello The doc of cascades of version 3, the message qDebug are readable a terminal using the slog2info SSH command. If everything works well... (less useful the previous SDK). However, I also have messages: by default 255 FPS_WARNING: framework total

  • Inline with our IPS mode

    Hey everybody, We are considering changing our promiscuity of inline IPS, but we want to be careful not to interrupt the normal traffic when we do. We have dealt with pretty well right now, and we do not seem to get a lot of false positives that woul

  • Migration from 5.0 to 5.5

    Hi allI have what is probably a very stupid question, but I don't have much experience with VMware so please excuse me...  I recently inherited a succession of vSphere 5.0 which consists of two R710s Dell connected to a SAN Dell EqualLogic network vi