images from the list for a visible layers only

Hello

I need images for the visible layers is ' true 'only. "

i.e. document includes 10 images, but the conditions (layers visible = true) then images of document is 7.

Trying Code:

var myDoc = app.activeDocument

var myGraphics = app.activeDocument.allGraphics

alert("docMyGraphics " + myGraphics.length)

var myLayer = app.activeDocument.layers.everyItem().getElements()

for(k=0; k<myLayer.length; k++)
{
    if(myLayer[k].visible == true)
    {
        for(i=0; i<myGraphics.length; i++)
        {
            alert(myGraphics[i].itemLink.name)
            }
        }
    }

Could someone rewrite my code and give a solution.

Please, it's very urgent...

Thank you

Beginner

Hey beginner, Hey Suresh.

http://jongware.mit.edu/idcs5/pc_Layer.html

Each layer has its own ' allGraphics property, for a nicer way to do is to use that:

var doc = app.activeDocument;
var myLinks = [];
for (var i = 0; i < doc.layers.length; i++) {
          if (doc.layers[i].visible) {
                    myLinks.push("Layer "+i+"("+doc.layers[i].name+"):")
                    var layerGraph = doc.layers[i].allGraphics;
                    for (var j = 0; j < layerGraph.length; j++) {
                              try {                                        //  not all graphics have a itemLink, for example the embedded ones
                                        myLinks.push(layerGraph[j].itemLink.name);
                              } catch (e) {
                                        myLinks.push("Error: Graphic " + j + " on layer " + i + " might be embedded");
                              }

                    }
          }
}
alert (myLinks.join("\r"));

Tags: InDesign

Similar Questions

  • Cannot drag and drop images from the list of files on the page

    I use DW8 for the redesign of a site someone else created in FrontPage and will continue adding content using FrontPage. I'm afraid that another user would not understand CSS formatting and finally break, so I keep a page a table-based layout using the fairly minimal CSS for style.

    Some of these pages, when I try to drag an image from the list on the page file DW, the cursor only becomes a stripe diagonal-circle sign ' ", and it will not drop the image. When I create a blank page, with or without a table, I can drag image files and drop them without problem.

    There is NO FrontPage special tricks in these pages, by the way - no model or anything that uses FrontPage. Just in case I was missing everything I did "clean up html" command and had him remove DW or non - DW comments, and he found nothing to 'clean up '.

    Can someone tell me what it might be on a page that would prevent him drag / drop list file DW8?

    Thank you very much!

    Theophanes

    I still don't know what the problem was, well, just rename the site and its location on the disk, forcing DW to reread everything from the beginning, eliminated the mysterious problem. There is probably an easier way to force DW to do this - I'll look for it if it happens again.

    Thanks for your help!

    Theophanes

  • Import images from the Clipboard for Lightroom

    I often have low load the images to a web site of the hospital to continue them in Lightroom.  I can't get the clips on the Clipboard and not .jpgs.  Currently, I've been do clips using PS4 .jpgs and then import the images to a LR catalog.  Is there a more direct way?

    Unfortunately for you, no. Furthermore, you did not mention why the images cannot be obtained as clips. Can you give us more information? To resolve this particular issue would go a long way to make images in Lightroom.

  • How to remove images or themes from the list of display properties for selected wallpapers?

    Well they are. When I go into the Control Panel, click or select the display icon, I come to the display properties.  Kind of dumb pictures obtained in the list of display properties.  I want to remove them from the list.  I n my ending is never trying to clean my computer, I want to delete these images and selected icons.  I really don't remember adding photos to the list of display properties for desktop. But they are there

    You must move the image files where they are now (probably in my pictures). Windows XP retrieves files image from the following paths:

    C:\WINDOWS BMP files

    The files BMP, JPG, GIF, JPE, DIB, PNG, HTM from the following locations:

    C:\Windows\Web\Wallpaper
    C:\Documents and Settings\photos \My Documents\My [& ALL THE sub FOLDERS]
    C:\Documents and Settings\\Application Data\Microsoft\Internet explore
    C:\Program Files\Plus! \Themes [* & ALL subfolders *]

    So for example, if the 'silent pictures' are in your My Documents\My Pictures folder (or a folder in my pictures) and you want to keep them, just move them to the folder My Documents of parent instead. If you don't want to keep them, just delete the files.

    MS - MVP - Elephant Boy computers - don't panic!

  • Is it possible to add a small image to view from the list of the press article?

    Hello

    I would like to ask a small image next to the link for my ad on my homepage - www.sunnysideinstantlawn.com.au - is it possible?

    Thank you

    Tammy

    Using the function of the news of the scrap and build your news with the web application instead.

    You can have multiple views of different lists, you can have a custom field multiline text box short introduction, title, date of the course and your image. With this, you can retrieve the value only of an image with the _value option in the image tag.

    You can then thumbnails of BC have only one large image and then small image from your listing.

    You have the detail view friendly of complete SEO for the web application as well as for the full article.

    You can do a lot, it's just how you feel you want and what you do with the installation and layout of it. Much better than the news Module

  • Hello. Is it possible to remove a web site from the list "most visited"? If so, how?

    I doubt, there is a way to do it, but I would like to know for sure. I connect to Gmail very often, so of course, it appears in the list of "most visited". Although he is usually a convenience for people to reach a web site visited often faster, I want is not to appear there. It's not favorite, where you must choose to save a site, so I doubt that there is a solution. If I had used "Private browsing" in the first place, this may have prevented my problem, but I didn't know we could go private until today. Thank you.

    If it's a bookmark, then you need to reset the counter for this bookmark.
    You can make the column number of visible in the bookmarks (library) via the menu Manager ' views > columns.

    • "Most Visited" and "Recently set bookmark" and "Recent Tags" are examples of what is called Smart Bookmarks folders and are not the real existing folders.
    • Smart folders show a list created by a query of the places.sqlite database that stores the bookmarks and history in Firefox.
    • Smart folder lists show a maximum of 10 entries by default.
    • Bookmarks and history items that appear in a list of smart folder are also stored in another file, and any changes are applied to the element of bookmark or true story.
    • If you delete an entry then the list is shifted upward and an entry that was not previously identified is added to show the 10 entries.
    • If you add a new bookmark or visit a Web site, then a new element is added at the top and disappears from the entrance at the bottom of this list.
    • Objects but that disappear from the list have not disappeared, just not more appear in this list.
    • Actions such as copy & paste, or delete that you perform on bookmarks in such a list is made on the original bookmark.
  • How can I stop the download of images from the site?

    This is the first time I installed Firefox for Android. Don't see how I can block images from the web page and just take the content of the text. Thanks for your time.

    You can actually set the same preference under the covers that you would use on Firefox for desktop PC: permissions.default.image. Here's where and how:

    (1) open a new tab to Subject: config (type about: config the Awesomebar and hit the arrow go or tap Enter).

    You can bookmark it for easy future access.

    (2) in the search box, type perm and make a pause while Firefox filter list

    3 scroll to permissions.default.image and type it, and then use the up arrow (^) to change the value from 1 to 2 (of 'allow all' on ' block all the ').

    If you go back to your other tab and load a new page, the images must be missing (assuming that they are not cached).

    Success?

    If there is an add-on for it (I have not checked) that might be easier if you find a site where you want the images because it is a hassle to switch back using about: config.

  • jQuery/Ajax - images in the list of a folder in the select tag / option

    Trying to grab an image list to a file and loop through them to create a list of < select > < option > using ajax. Found this piece of code while Googling for a solution that gets the job done (I added to the click event as I want the list update/upgrade to update if a new image is uploaded to the folder without a page re - load) BUT of course the result is that the code adds the same image on each click names, so I find myself with several images with the same name in the list!

    {$(document) .ready (function ()}

    {$('.product-images').click (function ()}

    $.ajax({)

    URL: "pictures."

    success: {function (data)}

    $(data) .find ("was: {contains (.jpg)" "}") .each (function ()})

    make a loop through

    var images = $(this) .attr ("href");

    $('<option_value="'_+_images_+_'"></option>').html (images).appendTo('.product-images');

    });

    }

    });

    });

    });

    < /script >

    Gets above the list of images in a folder named "images" and added to the below:

    < select name = "product image" class = "product image" >

    < option > select picture < / option >

    < / select >

    What I need, is to stop the same image names added every time you click the < select > tag.

    Someone at - he tried to do this before and has a solution?

    I can add the list once but if new images added to the folder and then they don't show up until the page is re-rested.

    Operating system

    What I need is to stop the same image names added each time that the

    Your current code is that, with each action click the product images selection list. If I understand you correctly, you only want to add at the start of the images to the list of selection of product images. You can do this when the page initially loads by omitting the click event handler in your code in place. Or you want to initially load current images of the file and automatically load the new images to the list of false real time via ajax call? One way to do it via ajax is not to add to what is already there, but to 'rebuild' the selection at each click event list. Users might lose if they click, click, then click on back to a list of selection, as well as items from the selected list previously. Or you could store image names in a database and execute queries to the Database via ajax call to ensure that records duplicate is not appended to the list if they were already annexed during subsequent calls to ajax. The logic of programming for this scenario is quite simple.

    I can add the list once but if new images added to the folder and then they don't show up until the page is re-rested.

    To get new images (or data in real time by the way) to instantly load in the page is a named term responsive development in applications of node. Watch for more information. Loading new data into a fake outlet via ajax call will be processor intensive and taxation for the customer. There are lots of calls from application/waitforresponse on the server when you use php/ajax, which would be very tax when this method is scaling. Using Sockets open through an application node would be the best approach for something like that.

    best,

    Shocker

  • Re: Portege R830 - fingerprint reader has disappeared from the list of devices

    Hello

    Today I met the first serious question with my brand-new R830 - after some sleep/RESUME States and movements of laptop, device fingerprinting has disappeared from the list of available devices.

    First of all, I could see that it works properly, but I couldn't start fingerprintreader software or open a windows session but after installation of the site Web of Toshiba fromt pilot, it disappeared completely.

    Someone saw something like that?

    Thank you in advance for help.

    Kind regards
    Rob

    Thank you much for sharing this with us!

  • The file size of Photos library don't to shrink when I remove the images from the library

    Subject line pretty much sums up it.  Let's say I have create a library of Photos and import of 100 photos. The file "Library.photoslibrary Photos" grows to a certain size, as expected. But if I remove some of these pictures does not take the size of the file photoslibrary. If I import images more library file grows again, but it never reduces when I delete the images from the library. This happens with both a library of referenced files and images copied to the library.

    What happens here?

    You must either wait 30 days or go to the recently deleted album and remove not for the final to do deletion

    and note that Photos doesn't manage referenced good libraries, it was reported here that they can use more space than a managed library and they are not recommended

    LN

  • Why Panel does not KeyBar 1.8 from the list toolbar?

    Remove knob remove not toolbar KeyBar 1.8 in Control Panel.

    Hi Frank,

    1. what happens when you try to uninstall the program?

    2. do you get an error message?

    3. are you able to work with the specific program?

    The list of currently installed programs in the Add / Remove Programs lists all compatible Windows programs that have a program Uninstall or feature. Sometimes, a program may not be removed completely, and remains the registry key that is used to display the program in the currently installed programs list. In this case, you may need to manually remove the program in the currently installed programs list in Add / Remove programs.

    You can try the Fixit and if it fails, you can proceed to method 2.

    Method 1:

    You can run the Fixit and follow the steps:

    Reference:

    Solve problems with programs that cannot be installed or uninstalled

    http://support.Microsoft.com/mats/program_install_and_uninstall

    a. click on "accept".
    b. Select 'detect problems and apply the patches for me.
    c. Select "Uninstall."

    d. Select the program from the list and try to uninstall it.

    Now search for the question.

    Method 2:

    How to manually remove programs from the add tool / remove programs

    http://support.Microsoft.com/kb/314481

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows

    KB322756 http://support.microsoft.com/kb/322756

    Hope this information helps. Response with status so that we can help you.

  • Loading/downloading the images from the camera

    I downloaded the images from the camera to the computer, then accidentally deleted from the memory card.  Move them back to the memory card?

    I downloaded the images from the camera to the computer, then accidentally deleted from the memory card.  Move them back to the memory card?

    =====================================================
    FWIW... this task is easier to do than to explain.

    (1) connect the camera via a USB cable and turn it on... or insert the memory card in
    your Media Player.

    (2) go to... Start / my computer... your camera should be attached to a drive letter.
    The reader should be recognized as one or several removable disks... it can
    have several drive letters.

    Removable disk (e :))
    Removable drive (g)
    Removable disk (h :))

    Left 3) click on drive letters... When you identify the drive letter for the camera or
    Media Player... (it will be one that does not launch a dialog box indicating:)
    Please insert a disc in the drive?) ...

    Follow these steps...

    4) navigate to the folder in which the photos are... Open it and go... Edition/select all... good
    Click the group selected (highlighted), then from the menu choose... Send to /.
    Removable disk?

    Only a limited number of files can be copied to the root directory of the card... if you
    Transfer lots of pictures... they must be in one or more folders.

    If these files have been changed in any way, rename, rotate, changing the brightness...
    No matter what... the camera will recognize them is no longer, but they will always be on the map
    If you want to use as a backup. You can click on the left to see what is on the drive letter
    the map.

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • hibernation has disappeared from the list on my computer

    Hibernation had disappeared from the list on my computer, after that I downloaded an anti virus nod 32

    You can re-enable the file by using the tutorial below.
    Make sure you read two method that tells you where the file hibernation during the disk cleanup process.

    Use this tutorial:
    http://www.Vistax64.com/tutorials/165508-hibernation-enable-disable.html

    Enable or disable Hibernation

    Excerpt:

    Information
    If you accidentally deleted theCleaner of Hibernationfile in disk cleanup and caused your mode standby or hibernation hybrid to stop working, then you accidentally disabled the hibernation file. The file hibernation (hiberfil.sys) size will be the same as the ofinstalled of the amount of RAM. For more information, see: Microsoft Help and Support: KB929658 andMicrosoft Help and Support: KB928897
    Note
    If you cleaned (disabled), allhybrid andHibernate settings will also be deleted from theAdvanced Power Options window. You will still be able to use normalsleep mode if.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Change the State of all the Image inside the list view toggle button when a list is tap

    Hi, please help, is there a way to change the State of a toggle button to image inside the listview where in when you type a list, the toggle button in the list state change and the other toggle button will be set to their default image? the list has a defined Image toggle button to check both...

    
    ListView {
    
                        layout: GridListLayout {
                            cellAspectRatio: 1.4
                        }
    
                        id: denominationList
                        dataModel: _model.denominationModel
    
                        listItemComponents: [
    
                            ListItemComponent {
    
                                id: component
                                type: "item"
                                CustomListItem {
    
                                    id: itemRoot
                                    dividerVisible: false
                                    highlightAppearance: HighlightAppearance.None
    
                                    Container {
                                        id: fieldContainer
                                        topPadding: 5
                                        leftPadding: 10
                                        rightPadding: 10
                                        bottomPadding: 5
                                        //maxWidth: 270
    
                                        layout: DockLayout {}
    
                                        Container {
                                            id: amountContainer
                                            //topPadding: 
    
                                            layout: DockLayout {}
                                            background: Color.create("#ffffff")
                                            horizontalAlignment: HorizontalAlignment.Center
                                            verticalAlignment: VerticalAlignment.Center
    
                                            ImageView {
                                                id: amountBorder
                                                preferredWidth: 400
                                                imageSource: "asset:///images/flux/amount-border-other.png"
                                            }
    
                                            Container {
                                                horizontalAlignment: HorizontalAlignment.Center
                                                verticalAlignment: VerticalAlignment.Center
                                                layout: StackLayout {
                                                    orientation: (!(ListItemData.name > 4) ? LayoutOrientation.TopToBottom : LayoutOrientation.LeftToRight)
                                                }
    
                                                Container {
                                                    horizontalAlignment: HorizontalAlignment.Center
                                                    verticalAlignment: VerticalAlignment.Top
                                                    visible: (ListItemData.name.length > 4)
    
                                                    preferredHeight: 60
    
                                                    Label {
                                                        id: loadPromoName
                                                        textFit.mode: LabelTextFitMode.FitToBounds
                                                        //multiline: true
                                                        visible: (ListItemData.name.length > 4)
    
                                                        textStyle{
                                                            fontSize: FontSize.Medium
                                                            fontWeight: FontWeight.W300
                                                            color: Color.create("#b9babe")
                                                            textAlign: TextAlign.Center
                                                        }
    
                                                        text: ListItemData.name
                                                    }
                                                }
    
                                                Container {
                                                    verticalAlignment: VerticalAlignment.Center
                                                    topPadding: 8
                                                    rightPadding: 0
                                                    ImageView {
                                                        visible: (ListItemData.name.length <= 4)
                                                        preferredHeight: 40
                                                        imageSource: "asset:///images/flux/pesosign-amount.png"
                                                    }
                                                }
    
                                                Container {
                                                    verticalAlignment: ((ListItemData.name.length > 4) ? VerticalAlignment.Center : VerticalAlignment.Bottom)
                                                    horizontalAlignment: HorizontalAlignment.Center
                                                    leftPadding: 0
    
                                                    Label {
                                                        id: amountLabel
                                                        textFit.mode: LabelTextFitMode.FitToBounds
    
                                                        textStyle{
                                                            fontSize: FontSize.XLarge
                                                            fontWeight: FontWeight.W300
                                                            color: Color.create("#b9babe")
                                                            textAlign: TextAlign.Center
                                                        }
    
                                                        text: ListItemData.amount
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        ]
                        onTriggered: {
                            var selectedItem = dataModel.data(indexPath);
    
                        }
                    }
                }
    

    link the button to a property of an element, and then change all the elements in the datamodel. ListView reflects these changes.

  • How to remove programs from the list "other programs"?

    Less 'open with... '. ""Choose default program"we can select a recommended program or select from the list of 'other programmes' and have it use the default program. I did once with a bad program. How can I remove a program from the 'Other programs' list in the open with dialog box. Remove "HKEY_CURRENT_USER Settings\Software\Microsoft\Windows\Shell\MuiCache" has no effect. What else can I try?

    Concerning

    Actually what I was looking for is hidden under

    HKEY_CLASSES_ROOT\Applications

    Removed the culprit here and got back again

Maybe you are looking for

  • Why don't point in the drop-down list address not remove when selected and click on remove

    on version 14.1 - to remove an item in the drop-down address, said the point the address line the right click and select delete - this clears the address line but point remains in the drop-down list and does disappear not - why point unclear when you

  • Satellite Pro M40X does not work with battery

    Hello I have toshiba satellite pro m40x laptop. It haves apromaly 11 months.In recent weeks, the laptop does not work with the battery.With the battery and the power running, if I turn on the laptop, it turns off after 10 seconds. If I only turn the

  • Qosmio X 770-107 - check that the 4 GB of NAND flash is optimized OK for Win7?

    Hello I put the Bios on the laptop Qosmio of X 770-107 to use Fast Boot, but I think that it is other parameters for the use of the Flash 4 GB on HDD1. How to check that this setting is configured OK? Thank youKirk

  • Hard drive and windows 7

    I put the external hard drive Toshiba PX 1394u. It worked amazing on my windows XP computer, however I recently moved and brought a computer laptop windows 7 and my hard drive does not work as well as it did on my windows XP (unable to copy files and

  • How can I close background programs?

    I just bought a netbook and since the first time I stopped it, a message keeps appearing saying 'wait for background programs close. Now I have a month with my computrer and the message is still coming. How to stop background programs, to prevent clo