Loop and remove the work plans

Need help.  Try to loop through work plans and delete if isn't a specific name.  When you try to delete, it gives me an illegal argument.  I must be missing something.  Help would be appreciated.

IDoc var = app.activeDocument;

var idoc.artboards = artbs;

var artbcount = artbs.length;

var artbsNames = [];

for (var i = 0; i < artbcount; i ++) {}

artbsNames = artbs [i] .name;

var artboardSelected = idoc.artboards [i];

artboardSelected = artbsNames;

If (artboardSelected == ['special work plan']) {}

Alert ("this is not special");

}

else {}

ARTBS. Remove();

}

}

Hi jeremy0013

Why so complicated? As Silly-V says: If you want to remove an item from your loop you loop back always.

And a simple clause should be sufficient:

var idoc = app.activeDocument;
var artbs = idoc.artboards;
for (var i = artbs.length-1 ; i >= 0; i--) {
    if (artbs[i].name != "Special Artboard") {
        artbs[i].remove();
    }
}

Does this work for you?

Have fun

Tags: Illustrator

Similar Questions

  • Is it possible to automatically check all bookmarks, then remove the works do not bookmarks

    Is it possible to check automatic all bookmarks and remove the works do not bookmarks

    Try this extension:

  • Work plans: selection of the artboard and unlock automatic disabling shapes in the work plans - possible?

    Hello

    I easily through the General work plan, and I saw immediately, so I thought I'd put it out there. Here are my two questions:

    1. is there a way to disable the ability to move a work plan while working in it? Essentially, to block the plan in place, but not the items it contains? If you use the automatic selection and slightly approach the edge of the plateau, then swipes the entire Board rather than just a few layers / items you want.

    2 is there a way to auto unlock all layers, including forms? It can be really frustrating for fish through the layers to find the form locked in order to remove a work plan. Command + / has not worked for me when I closed a single object manually.

    Thank you very much! I hope that these are not repeated questions.

    1. Yes. Use 'Position Lock' on the layer of the artboard properly said.

    2. Yes. Select the parent group or the artboard. While holding down the alt/option key, choose "Lock all layers in artboard...» "in the drop-down menu Layers Palette.

    This should unlock all layers inside this group or the artboard.

    (Probably, the fact that the menu does not change when you hold down the alt key is a bug, but it does not)

  • Impossible to update LR CC ~ my one day to change and nothing work updated my Mac and all LR will do is CRASH!  Need help.  Tried to stop CC and remove the 1.0 file already and who does not work for me.  What can I do?

    Impossible to update LR CC ~ my one day to change and nothing work updated my Mac and all LR will do is CRASH!  Need help.  Tried to stop CC and remove the 1.0 file already and who does not work for me.  What can I do?

    If lr crashes repeatedly, reset preferences.   http://www.lightroomforums.NET/showthread.php?14226-resetting-%28or-trashing-%29-the-light file-Preferences-room

  • Presentation of the work plans and grid in 2015 CC

    Hello

    I really like the new system of work plans and I tried to adjust my existing models and systems network (for web design and app) with them in mind.

    So I created a new document, put plans in place of my work with different dimensions... and then I tried to use grid layout Panel to create benchmarks for each of my work plans.

    I can put up the original xy for each work plan. But when I use grid layout Panel, it seems that it only uses the "global origin", based on the first artboard created...

    What I see or understand, the grid layout Panel is not more useful when you're working with different work plans.

    SO I'm currently positioning my guides - a - think better methods...

    Anyone encounter the same difficulties? Just maybe workaround?

    In addition, Photoshop crashes a lot with the zoom when I slip with my mouse to zoom/zoom. I do not have this problem so I suspect that comes with the 2015 version.

    Can I disable the photoshop special zoom/zoom use one like Illustrator? (I've not seen anything in the settings. Animated zoom is already disable)

    UPDATE: Photoshop crashes every 2 minutes. I tried to reset the preferences, but it does not help. I no longer use the zoom with mouse slides, but that does not change: whatever I I had an accident after some modifications to the document.

    Really disappointed. My day is lost, and if I can't get Phtoshop to work, I also lose a project if not more...

    Thank you in advance!

    There was a bug just fixed a few days ago that had to do with large documents dimensionally with high zoom factors. If it is not specific to the work plans, a document of work plan may get in trouble more easily. Specifically, if the calculations of coordinates for the drawing overlay (for example selections) went over 32 000, we could get into trouble. For example, a document of 5000 pixels wide 800% zoom could have some contact information to 40,000. So, if your document fits this profile, it * might * be causing accidents you saw; It is difficult to be sure.

    The fix is tested in-house right now. (And no - I can't tell you when you may receive the fix - just that it's in the pipeline)

    We are certainly thinking about improvements with Guides and work plans.

    So, Yes, we read these threads, even if we don't answer every time. Thanks for the information!

  • Is there a tool or function (in Illustrator or InDesign) that selects any form and 'punches' a 'hole' of this form down through several objects for the paper or the work plan?

    Is there a tool or function (in Illustrator or InDesign) that selects any form and 'punches' a 'hole' of this form down through several objects for the paper or the work plan?

    Your objects punch must be in a large group; It will cut through all that is below.

    Create the shape you want to cut and set it to black Uni. Select your group and your form and (in the transparency palette), click make mask.

    Uncheck the Clip, and then return to the palette.

  • Reorganize work plans and move the work hidden with both work plan?

    Is it possible to use the option to "Reorganize the work plans" in the dropdown to work plans and also the movement not only the plan of work itself, but also the hidden work (layers, objects, etc.) on this work plan?

    I tried marking check the option 'move illustration with work plan' , but that still does not move the hidden work. The default behavior seems to be that only the active or visible work is moved with the artboard, but the work of hiddden is left behind somewhere on the workspace where the work plan used to be before it was moved.

    I find it a little heavy, because I often hide work that I test and have to do all visible again to move them just with the artboard would break the dinstinction between all many very similar layers, objects, etc. that I could work with at any given time.

    If anyone has some advice please chime...

    Hahaha... your memory is better that an elephant Kurt, but remember that I already have this script of cardiac arrest?

    http://forums.Adobe.com/message/5666490#5666490

  • I want to allocate more disk space for my c drive and remove the drive d

    I want to allocate more disk space for my c drive and remove the drive d. I 26 gig on the d drive and only using less than 1% of it, and I have the same amount on c, but only 39% c left. How to do this.

    LEM explained the problems that you tried to resize partitions on the same drive.

    You can create more free space in C in carrying one of the measures suggested below.

    The default allocation for the restoration of the system is 12% on your C partition is more generous. I have them would be reduced by 700 MB. Make my computer right click on your icon, and select System Restore. Place the cursor on your C drive select settings but this time find the slider and drag it to the left until it shows 700 MB and output. When you get to the settings screen, click on apply and OK and leave.

    A flaw that might be useless which is for temporary internet files, especially if you keep no copies on the disk offline. Setting the default value is 3% of the walk. Depending on your attitude to copies offline, you could bring it to 1% or 2%. In Internet Explorer, select Tools, Internet Options, general, temporary Internet files, settings to make the change. At the same time, look at the number of days, the story stands.

    The default allocation for the basket is 10% of the disk. Change to 5%, which should be enough. In Windows Explorer hover over your Recycle Bin, right click and select Properties, Global and move the slider from 10% to 5%. However, try to let you become so complete that if it is complete and you delete a file by mistake it will bypass the Recycle Bin and have gone forever.

    You can generate more space in the system (usually C) the folder move partition.

    For temporary Internet files, select Start, Control Panel, Internet Options, temporary Internet files. Settings and move back.

    To move the storage folder Outlook Express select from Outlook Express Tools, Options, maintenance, store folder and change.  http://www.tomsterdam.com/insideoe/files/store.htm.

    How to change the default location of the My Documents folder: http://support.microsoft.com/?id=310147

    You may also change the default locations of the files in Microsoft Office programs when you choose to move the My Documents folder. For Word, go to tools, Options, file locations, highlight the Documents, click on edit and change the path. For Excel, go to tools, Options, general, and change the default path.

    My Documents is one of the many the created system of special folders, which include my pictures, and my music. It can be more easily modified using TweakUi. Download TweakUI, one of MS powertoys, here: http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp.

    In TweakUi, select workstation, special folders. You can scroll down to see the full list of special folders to the left of the button to change the location.

    You can move programs, but to do this, you must uninstall and reinstall the program. With Word and Excel, the existing data files are not affected by reinstalling. Most of the work in question is going to be reinstall all updates issued after those that are included with the original Microsoft CD / DVD.

    If your drive is formatted as NTFS another potential gain arises with your operating system on your C drive. In the Windows directory of your C partition you will some uninstall files in your Windows folder in general: $NtServicePackUninstall$ and $NtUninstallKB282010$ etc. These files can be compressed or not compressed. If compressed text the name of the folder appears in blue. If these files are not compressed you can compress. Right-click on each folder and select Properties, general, advanced, and check the box before you compress contents to save disk space. On the general tab, you can see the winning amount by deducting the size on disk size. File compression is only an option on an NTFS formatted disk partition / partition.

    I'd be interested to see a report of Disk Defragmenter. Open Disk Defragmenter and click analysis. Select view report, and then click Save as and save. Now find VolumeC.txt in your My Documents folder. Open the file, place the cursor anywhere in the file, select Edition, select all to select all the text and copy and paste into the body of your message. To do this, before you run Disk Defragmenter because it is more informative.

    Select Start, all programs, accessories, System Tools, cleaning disk to emptying your trash, delete temporary Internet files and other selected options. I recommend also you click Other Options, System Restore and delete all but the last system restore point. Run Disk Defragmenter

    Using the system restore option is most appropriate when your system is slow and you need to increase the free disk space on your C partition. If you have errors that could be solved by using the system restore to your system settings back to before that the error occurred initially, do not use this option.

    Select Start, Control Panel, Folder Options, view, advanced settings and check the box in front of "show files and folders" and 'Hide protected operating system files' are unchecked. You may need to scroll down to see the second element. You should also make sure that the box before "Hide extensions of known file types" is not checked. Notwithstanding, there are some files that are hidden. Again, you will not see the System Volume Information folder.

  • Photoshop 2015.5 can not export the work plan in PNG transparent

    should I upgrade Photoshop to the latest version (2015.5) and now I can not export in PNG transparent work plans and that sucks A * big time
    Anywho whenever I export in PNG or PNG8 with transparrensy, it receives a white background and space color Medallion to the index as if it was a GIF.

    All the solutions or anyone who has a script that will make the transparent PNG out of work plans?

    Are you sure that you correctly configure the work plan? The 2015.5 version to now set the background color of the artboard that is different from before

  • display of the work plan in real time for mobile devices?

    I do my design in illustrator before exporting all the assets for use in mobile applications. Is there a way to get the work plan to display on my mobile device in real time? As it is now, I have to save the artboard as an image and put it on my phone to see what it looks like.

    Hi Mike,.

    The answer would be 'no', at the present time. You are already one of the workarounds.

    Thank you

    OM

  • My file has plenty of empty space 'outside' of the work plan that I can't get rid of? How to crop the file to the artboard size real?

    Screen Shot 2016-02-12 at 1.05.55 PM.png

    Above is my plan of work and space to work, but when I try to resize the image (or save it in jpeg format to show the problem I have) there is a ton of white space outside the artboard and the crop tool and two work plan tool say that my file is not as large as the size above , but its been as big as the screenshot below.

    Screen Shot 2016-02-12 at 1.05.57 PM.png

    I can't find anyone else having this problem. Am I the only one? How can I solve this problem? It is to be a huge problem for web design. And he did it for all of my projects as web design he updated to have work plans.

    Hi Nicole,.

    I'm sure that it is a problem that we followed. We have not addressed it yet, but it's on our list of things to fix.

    Plan of work documents have a canvas in auto-expand; This is part of the user experience, which gives a feeling of infinite to the document; You can place things anywhere in the view, and they should remain visible no matter where you drag. In order to maintain this illusion, paint us the entire surface to mate with the same color outside work plans.

    Hide us this canvas from you, even if it's still there. You can see how big it is at any time by choosing "Image > canvas... size. ». That size will change as things move around, getting bigger and smaller than necessary. The hidden canvas size will break to the next more or less 'limit of diamonds", which is nominally in increments of 1024 pixels. This is done for performance.

    The problem is that the export code is really not updated as the work plans can develop and reduce the canvas. When you export a document of work plan, it looks at the current size of the Web and uses only. That's why you get that extra white space. This extra space problem happens also for other things, like thumbnails of document. We agree it's pretty boring, and as I said, it's on our list to fix.

    Try this workaround:

    1. download your ready to export document.

    2. in the work plan tool, select the gear icon (top tool bar, far right) and uncheck auto-size canvas

    3. Select the Rectangle tool and cover the artboard from edge to edge. (Snap allows here)

    4. Select the crop option. This can reduce the canvas to just the boundaries of the artboard.

    5 export under..., choose your format, for example PNG. and export.

    6. don't check any extra white space.

    Note that "Web auto-size" is a property of document-sticky and is saved with the document.

  • Select reverse and remove the effect from Photoshop to Illustrator

    Hello

    I'm new to Illustrator and do my best to understand how it works! I'm used to working with Photoshop and there are some things that I could do it on Photoshop and am now trying to find a way to make it look as I want... So here goes

    I'm looking to have this effect on Illustrator. (For those who you don't see the image, mimage is a globe with the text that appears only on continents. The text disappears when the image is empty. I forgot to save it as a png, but white is transparent.

    Logo PEI.jpg

    I managed to write my text in Illustrator and change the text to "Color Burn" effect, so that it looks the same on all continents. However, I am unable to remove the text where it leaves the other layers. The text remains black where the background is transparent.

    Logo PEI Illustrator.jpg

    So I was wondering if there is a way to remove the text outside the continent. The same effect, you should achieve in Photoshop by selecting reverse and removing the text (pixelated).

    Make a copy of the shape of the continent. Select the copies, and then choose the command object > path > make a compound path.

    Then use the new compound path as a clipping on the text mask. With her before she and the text and the text selected, choose object > path > make a clipping mask.

  • Could not create the work plan

    I'm trying to create another plan of work within a document. The work plan is long, but not very big. I want three plans to work on the document. Because his long illustrator doesn't let me create another work plan, as it would fall off the page. I can understand that, but I can't reorganize work plans because there is currently only one. The option is grayed out. There is a lot of room below for plans of work up to 6 I think.

    Does anyone know a way around this bug?

    Select the plan working tool and you are in mode of the artboard.

  • The "size of Board art" seems incorrect (1/2 actual size) when you try to modify the work plan?

    Anyone had this problem before? Im working in CS4. When I try to "change artboard" to change the size of the presentation of the document, the size seems to be incorrect? In fact his appearance as a 1/2 size real. By example, if I created a new ink paper the size of the bed as: 4.25 "x 5.5" instead of 8.5 "x 11".  In the preferences, the units all seem to be configured correctly. I am able to create a box to size accurately, but not the work plan? It's never happened before. I feel that I have changed something by accident in the preferences? But can't seem to find a solution. Any help would be most appreciated. Thank you.

    Are you sure that you look at W: & H: instead of x and Y:

    A show to see artboard sovereign and after a screenshot of your document preferences.

  • CS5 - navigation in the work plans

    In the CS5 files page 34 it says "to navigate between work plans, press Alt (Windows) or Option (Mac OS down) and click a button." I am on Mac OS 10.5.8 and for the life of me I can't get this to work. Could someone please check if this does or does not work so that I can check if it's something funny to my system.

    Thank you

    Them

    ERP,

    PL. don't abuse the application before exploring its features yet. Illustrator CS5 has added huge capabilities to the several worktops feature introduced in CS4.

    No, you DO NOT need to activate the work plan for the navigation tool. Press SHIFT + PAGE down or SHIFT + PG. Prev to navigate between work plans.

    You have a hotkey of Opt/Alt + Cmd / Ctrl + 0 to 'Fit artboard in the window.

    PL. see the help documentation for the various features.

Maybe you are looking for

  • Re: Tecra Z40, Win 8.1 - malfunction of the fingerprint reader

    DESCRIPTION OF THE PROBLEM: My Tecra Z40 arrived with Win 8.1.From the beginning I couldn't use the fingerprint utility.When you access the utility won't happen for a while and then the error: "Could not connect to the fingerprint reader" has finally

  • F20-137: Bluetooth does not work if connect my mobile phone

    I recently bought a F20-137 for my son and when I hack with her at Christmas bluetooth apeared in configfree, but today I decided to try and connect my mobile phone via bluetooth and there is no bluetooth option in configfree where it should be accor

  • Problems after installing the new disk in the Satellite M70 151

    I have a Satellite M70-151 the hard drive gave up and was unreadable, before that I was using with my desktop via a router, that it worked very well. I had no option but to install a new hard drive now in System Manager, I get of the yellow question

  • FPGA FIFO real-time error-61206

    I used this white paper as a base for my code. My FPGA look like: And my time real-time (RT): I am using a cRIO-9022 and now just trying to get the foundations buried for my project. The problem is that the side FPGA works well but environmental RT t

  • Video cutscene lag in games

    Heres my problem alone videos play fine games play smoother and if I go in game installs files and read the cinematics directly they play very well, but while the game those same videos are video shift and become agitated I'm DX11 and windows 7 pro I