make a layer visible by name

Does anyone know how to make a visible layer using the name of the layer, with javascript?

If the layer is called the 'evidence' for example

app.activeDocument.layers['proof'].visible = true;

You must go through the Scripting Guide and Scripting reference, you learn a lot, script guide covers the basics and the reference has a ton of excerpts, you'll love the search for knowledge, he

Tags: Illustrator

Similar Questions

  • How to make the layer visible on and outside

    Hi, experts

    This is my script:

    docs var = app.documents.

    for (var i = docs.length - 1; i > = 0; i--) {}

    docs [i].layers.item ("Chi") .visible = true;

    docs [i].layers.item ("Chi") .locked = false;

    docs [i].layers.item ("Eng") .visible = false;

    docs [i].layers.item ("Eng") .locked = true;

    }

    Alert ("Done.")

    But how do the layer

    1. If the 'chi' layer visible = true; everything in "eng" visible = false

    'chi' locked = false; While 'eng' locked = true

    just to put the

    layer 'chi' visible = false; everything in "eng" visible = true

    'chi' locked = true; While 'eng' locked = false

    like two switch layers;

    respect of

    John

    Try this,

    var docs = app.documents;
    for (var i = docs.length-1; i >= 0; i--) {
        if(docs[i].layers.item("Chi").visible == true && docs[i].layers.item("Chi").locked == false)
        {
            docs[i].layers.item("Chi").visible = false;
            docs[i].layers.item("Chi").locked = true;
            docs[i].layers.item("Eng").visible = true;
            docs[i].layers.item("Eng").locked = false;
        }
        else if(docs[i].layers.item("Eng").visible == true && docs[i].layers.item("Eng").locked == false)
        {
            docs[i].layers.item("Chi").visible = true;
            docs[i].layers.item("Chi").locked = false;
            docs[i].layers.item("Eng").visible = false;
            docs[i].layers.item("Eng").locked = true;
        }
    }
    alert("Done.")
    
  • My pictures on my card do not show in the import module, but I can see the names of files. How can I make my photo visible?

    I try to import images from the camera or via a card reader. It seems that something has changed. The image is not visible in the import module, but I can see folder names (date) on the map.

    How can I make my photo visible?

    Thanks for the help!

    Dear Akash,

    I have lightroom 5 and sony A77 M2. Finally I solve it myself investigate other positions on the internet on the same subject. I clicked on the part of area of "copy of area" (right of the screen) to the modus of import and the images showed once again. Still don't know why the pictures disappear and hope it was just something that I was wrong somewhere. Before I had multiple tasks (moving files) in the background may cause pressure on system/software.

    Thanks anyway for the reaction

  • How to make the handles visible direct selection on the pasteboard?

    When I go to for transformation/resize images within frames using direct Selection, I don't see the handles of the image because they are white against a white cardboard.  I use InDesign CS5 (ver 7.0.4) on a Mac. I've been using InDesign for a few years and never noticed that it was a problem; all of a sudden, the handles seem invisble. I don't remember what the color scheme was before. (Maybe I'll lose my mind). The colors did not alter an update? There is an option in the preferences to choose the color of the pasteboard, but this does not seem to have any effect. In the meantime, I can't find the handles to resize/convert images. I can enter a percentage to scale, but it is sometimes useful. How to make the handles visible direct selection on the pasteboard?

    If you're talking about the color of a path and its handles, which is dependent on the color of the layer selection. Go to the layers panel. Double-click the currently selected schema and change the selection to something darker color.

  • "windows cannot find"helpctr.exe"make sure you typed the name correctly..."

    I did system restore recently to avoid some problems with internet connectivity. Since then, when I click on help and support I get a error message "" windows cannot find ' help ctr.exe. "" Make sure you typed the name correctly and then try again. To search for a start button click on file and then click on search.

    Hello

    You can try the steps of troubleshooting provided in the links below and check if the problem persists.

    Cannot load help and Support Windows

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

    You cannot open the help and Support Center in Windows XP

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

    Note:

    To do: 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
    http://support.Microsoft.com/kb/322756/

  • Windows cannot find C:\WINDOWS\system32\rundll.exe. Make sure you typed the name correstly and then try again. To search for a file check the Start button and then click search.

    I tried to launch my Spysweeper and found that is not there, then I re downloaded and I could not install it because it was already on my computer.  I went to the control panel to remove and got the message:

    Windows cannot find C:\WINDOWS\system32\rundll32.exe.  Make sure you typed the name correctly and then try again.  To search for a file, select the Start button and then check the search...

    What should I do?

    Hi gsrow,

    You can go there!

    Cannot find the Rundll32.exe file when you open the control panel:
    http://support.Microsoft.com/kb/812340

    Alternatively, copy the folder C:\Windows\System32\DllCache Rundll32.exe file to the System32 folder. Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • When you try a yahoo search I get the error message "windows cannot find (web site name) make sure you typed the name correctly.

    Original title: error message

    When you try a yahoo search I get the error message "windows cannot find (web site name) make sure you typed the name correctly.

    Hello

    ·         What web browser do you use?

    ·         Would which site you find?

    ·         The issue is that with Yahoo search?

    ·         Exactly how you try to search? Web site or toolbar in Internet explorer?

    You try to use the Bing search engine to search for Web pages online. To access Bing search engine type www.bing.com in the address bar. Please provide us with more information about the issue to help you further.

  • I can't open microsoft office outlook. It says cannot open the outlook window. I tried to run "outlook.exe/resetnavpane, but it shows and error msg 'make sure you typed the name correctly and then try again.

    I can't open microsoft office outlook. It says cannot open the outlook window. I tried to run "outlook.exe/resetnavpane, but it shows and error msg 'make sure you typed the name correctly and then try again.

    I can't open microsoft office outlook. It says cannot open the outlook window. I tried to run "outlook.exe/resetnavpane, but it shows and error msg 'make sure you typed the name correctly and then try again.

    There is a SPACE between 'exe' and ' / '. You didn't have that. That's why.

    Please copy and paste it in the search box ot Run box... outlook.exe /resetnavpane

    t-4-2

  • Download error "Windows cannot find"C:\Users\User\Downloads\ ((name of the program here))". Make sure you typed the name correctly and try again. »

    Original title: ((Vista)) I can't install anything!

    So, basically, I have a Windows Vista. I'm using Google Chrome, but that doesn't really count because I tried on all browsers. When I try to download something, it comes up with something like that... "Windows cannot find"C:\Users\User\Downloads\ ((name of the program here))". Make sure you typed the name correctly and try again. "This has nothing to do with a name of typing correctly. I'm downloading at the wrong place? If Yes, where can I download it?

    Hello

    Thanks for posting in the Microsoft Community.

    If I understand correctly that you have problems with downloading files on Windows Vista.

     

    Please follow the below mentioned thread that addresses a similar issue:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/Windows-cannot-find-error/537677b9-016b-427e-8cc6-50f8620c84bb

    Note: The thread also applies to Windows Vista.

    Hope the helps of information. We know if you need help. We will be happy to help you.

  • "Windows cannot connect to the printer. Make sure you typed the name correctly and that you are connected to the network. »

    I have a Windows Vista laptop. I usually have no problem printing over the network to my University Library. Then I bought a new Kodak printer to my apartment which I also configured to print wireless. For about a day, I could print from these two networks, depends on the location. Now, I can't print at the library. I am able to see all printers but when I try to 'Connect', it says "Windows cannot connect to the printer. Make sure you typed the name correctly and that you are connected to the network. "Word, printers of the University Library no longer appear in the list you choose to print. What should I do?

    Hello Lauren,

    Please take a look at this Microsoft article on "networked printer troubleshooting:
    I suggest to disable all security software, including firewalls, you have probably enabled or installed and then try to print again to see if that makes a difference:
  • Word or excel file does not open on gives Vista error: windows cannot open c:\users... Make sure you typed the name correctly and try again.

    Word or excel file does not open on gives Vista error: windows cannot open c:\users... Make sure you typed the name correctly and try again.

    Whenever I click on a word or document it opens excel excel but it gives an error message: windows cannot open c:\users... Make sure you typed the name correctly and try again.

    I can open the document that after selecting the file only in excel or word blank document by clicking on the windows logo & choose the file and click on open.

    I need immediate assistance. I tried windows service pack 2 updates, but nothing works. Can anyone help?

    Please repost your question in the Discussion of the Office group at: http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.office.misc&lang=en&cr=US where the Word and Excel experts will be more than happy to help you with your problem.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Word or Excel document does not open on Vista. Gives the error: windows cannot open c:\users... Make sure you typed the name correctly, and try him again. __

    Word or excel file does not open on gives Vista error: windows cannot open c:\users... Make sure you typed the name correctly and try again.

    Whenever I click on a word or document it opens excel excel but it gives an error message: windows cannot open c:\users... Make sure you typed the name correctly and try again.

    I can open the document that after selecting the file only in excel or word blank document by clicking on the windows logo & choose the file and click on open.

    I need immediate assistance. I tried windows service pack 2 updates, but nothing works. Can anyone help?

    Please repost your question in the Discussion of the Office group at: http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.office.misc&lang=en&cr=US where the Word and Excel experts will be more than happy to help you with your problem.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Error message after you initialize computer error "Windows cannot find C:\Program Files (x 86) \Search Extensions\Client.exe make sure you typed the name correctly and try again.

    After that I turned on my computer, I get this error message... "Windows cannot find C:\Program Files (x 86) \Search Extensions\Client.exe make sure you typed the name correctly and try again."

    It all started October 1, 2014, and I have no idea why.

    I asked windows assistance online, and he said he had something to do with my registry.
    But then there just stop communicating and did not tell me how to solve this problem.

    Y at - it a registry repair tool?

    Also it does not affect my computer that I can tell.

    But I have a problem in which windows cannot detect.

    In the printers and devices window, the icon of my computer has a triangle with an exclamation mark inside error.

    Maybe someone out there not and I'd appreciate any help.

    Hey, mark

    First have you properly uninstalled this program? He was executed at startup of Windows an incorrect uninstall may cause this error may still be registered in MSConfig to start automatically with the computer.

    Did you go to the address specified in Program Files (86) \Search Extensions to see if the file is present or not?

    With a mark of exclamtion in the middle of a yellow triangle indicates that drivers must be updated.

    Right-click on the device with the triangle, select Properties, go to the Hardware tab, select the device with a triangle next to it, select Properties again and select Update driver.

    This should solve the problem, if Windows Update can't find a driver for you, you can always go to the manufacturers website and download it there, however, if the Windows Update does not find it there ' has a chance to the manufacturers Web site may not it as well, in this case, you can open Device Manager right-click the missing material or using outdated drivers, select Properties, go to the Details tab and in the hardware id select menu drop-down property search with id, you receive information about the device and so download the drivers the most up-to-date and appropriate from other reliable sources.

    Thank you

    -Robin

  • Windows Virtual PC integrated with components lock me out of my WinXP - error of OEM comments - "the system could not log. Make sure that your user name and domain are correct... »

    With my new desktop Windows 7 hardware configuration, I decided (before you consider VMware Player) to retry Windows Virtual PC; but instead of using Windows XP Mode (which is useless because the disk is inaccessible), I decided to use my own Windows XP Pro OEM. [I use it for games that won't play on Win7.  Security issues are also irrelevant, because for these games, I'm not likely to use the Web.  Of course, I always Windows Security Essentials in my OEM customers.]

    The problem here is, whenever I have to Activate my integration, features VPC opens as if the Windows XP Mode have been installed (it is not); and when the screen is turned on, it asks my user name and password.  I tried to use the name and the password that I entered when installing my XP OEM; but I get this message:

    "The system could not log.  Make sure that your user name and domain are correct.  Type your password again.  Letters in passwords must be entered using the proper case. »

    How is it that I can't access my Windows XP OEM guest when the integration features are enabled?  Only when they are disabled can I activate my OS; invited but it's counterproductive, because I won't be able to move items from my host in my comments.  Once more, if I should decide to use VPC as my host VM for Linux Ubuntu/Kubuntu, what chance is there that the activation of the integration features will lock out me my Linux guest?

    Another thing: in the Start Menu under Windows Virtual PC folder I have shortcuts for ' Windows Virtual PC ' or 'Virtual Machines' (according to the Win7 version I use, 32-bit or 64-bit); but I also have "Windows XP Mode", I have not installed.  How is that possible?  I checked the shortcut, and point it to rundll32.exe.  Should I just get rid of the shortcut, or I will incur damage to my VPC if I do?

    Hello Cooky,

    Please provide a detailed description of the issue.

    I understand the inconvenience you encountered. However, I appreciate your efforts.

    To get more information about it, we have a dedicated forum where these issues are dealt with and would be better suited to the TechNet community.

    Please visit the link below to find a community that will provide the best support.

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    I hope this information is useful.

    Please let us know if you need more help, we will be happy to help you.

    Thank you.

  • Windows cannot find "c:/program files/.../programm.exe." "Make sure you typed the name correctly and then try again", I cannot run programms like Admin, what to do?

    I have a problem at the opening of the software as administrator, whenever I open a programm (programs that require admin privaleges) says "windows cannot find" C:/Program Files/.../program.exe". Make sure you typed the name correctly and then try again. "(THIS HAPPENS FOR EACH PROGRAM) I am the only user, also, I am the administrator, I also have another problem, when I run the control panel and try to change something it will not open the box (I wanted to know if the parameters are wrong), when I click, it is as I have not clicked at all, even in SafeMode im helpless There, I can't even change my account settings and run sys restore, but I can open the program (I scanned it are malwares and viruses, but nothing was found, my computer is clean), pls help me, any advice would be very appricieated. I defragmented, managed antivirus analysis I did everything. I've used software: advanced system care, safety 2012 AVG, Malwarebytes anti-malware trial. Sometimes, when I want to uninstall something safe mode (only there, I can do something) I get the message that im not allowed to uninstall the software.

    Still having the problem? Were you able to run SFC in Mode safe?

    You could try a repair of Windows 7 installation or if not a clean install.

Maybe you are looking for

  • Re format ntfs drive?

    Hi all I found a 320 GB NTFS drive usb3 "Bipra' mark on amazon for £24.  Sounds like all the rest and mac to format those are double this price or usb2 only. They get good reviews, as they seem to contain some Seagate drives.  Can I get this one and

  • Is it possible to erase a paired since your iPhone device using a computer?

    I broke my iPhone 5 c a couple of weeks - the damage was so great that I am more able to access anything whatsoever on this device. I bought a new phone (iPhone OS) shortly after. Unfortunately, my wireless headset is always connected to the 5 c. For

  • Random popping / ticking during audio playback

    Hey,. W500 4058-CTO running x 64 Vista Ult using drivers latest 5th Jan. I feel random noises clicking / popping during audio playback MP3 of WMP11 on speakers/headphones. If I use my headset Bluetooth AD2P no questions, yes mp3 and WMP is fine. Some

  • Series Officejet 4630: All-in-one set 4635 up-to-date now will not be printed

    A message came on the screen of the printer and I accidentally clicked 'Yes' that launched an upgrade of some sort. I have no idea what it was, but he has successfully completed and now, although my acts of normal printer insofar as the printing proc

  • I want the 10 upgrade window, but it fails.

    * O.T. > window 7 I want to upgrade window 10 I tried but fail