[JS] [CS4] Remove all items from the hidden page?

Hello

I am trying to remove all the hidden page items regardless of the sublayer how they are buried in. Is this possible? I wrote here a snippet that seems to work only in part. It removes all hidden page items unless two hidden objects exist right after the other in the stacking order. Why this might be happening? Any suggestions?

for (i=0; i<doc.pageItems.length; i++){
          if (doc.pageItems[i].hidden == true){
               doc.pageItems[i].remove();
               }
     }

I'm new to scripting so any help is greatly appreciated.

Thank you!

Lindsay

What happens if you go back to the front? I think that something like that

#target illustrator

var idoc = app.activeDocument;

for (i = idoc.pageItems.length-1; i>=0; i--){
          if (idoc.pageItems[i].hidden == true){
               idoc.pageItems[i].remove();
               }
     }

Worked on a trial

Tags: Illustrator

Similar Questions

  • How to remove all information from the computer so I can sell it?

    How to remove all information from the computer so I can sell it?

    Hello

    You will want to format the hard disk:

    1. you can use DBAN - http://www.dban.org/

    or

    2. you can follow this tutorial to clean install up to the step where you format the disk, in which you would then STOP (because you just want to get rid of the files on the hard drive, do not install Windows) - http://www.sevenforums.com/tutorials/1649-clean-install-windows-7-a.html

    Kind regards

    Patrick

  • How to remove all items in the download under bookmark folder in the shortest time?

    I understand that all downloads from the internet and yahoo/google mail are stored in the "Download" folder I bookmarked when I want to delete. I think that if the download folder is never empty, then my mac will slow down. So I want to remove these downloads that I've seen. How can I remove all THE items in the shortest time? Deleting items, even in groups, takes a long time. Is there a method I can use so that all the items in the folder are deleted in one fell swoop?
    Thank you.
    Unguja

    Yes, it worked. Thank you very much.
    Unguja

  • How can I remove an item from the death of the select icons and notifications appear in the taskbar?

    When I open "Select icons and notifications appear in the task bar" one of the things it lists is "GLBD565.tmp" which seems to be left by the installation of a software product.  The icon is not active and I doubt if it still exists, but it appears in the list.  That list is maintained and how to remove the dead of her spots?

    The entries to Customize Notifications cannot be removed selectively. You can, however, clear the set lists by using the following registry change.

    1. Click Start, type regedit in the Search box and press ENTER.

    2. Locate and then click the following registry subkey:
      Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify HKEY_CURRENT_USER
    3. In the Details pane, click the IconStreams registry entry.
    4. On the Edit menu, click delete, and then click Yes.
    5. In the Details pane, click the PastIconsStream registry entry.
    6. On the Edit menu, click delete, and then click Yes.
    7. Exit Registry Editor.
    8. Restart the Explorer.exe process. To do this, follow these steps:
    9. Press CTRL + SHIFT + ESC.
    10. On the process in the Task Manager tab, click the process explorer.exe and then double click on end process .
    11. On the file menu, click new task (run), type Explorer and click OK.
    12. Exit Task Manager.

    (c) Microsoft Corporation

    -or-

    Download and run a VBScript script that automates the steps above.
    How to delete items from the Notification area in Windows 7/Vista/XP

    Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • How to remove an item from the Favorites folder in the library?

    I'm new to the movement and try to learn to use it.

    In the library is the favorite named folder. I spilled some items in there (moved from content folders, transmitters of particles or generating things) that I would like to delete now.

    I guess these things in the favorite folder are just aliases to the actual items, but I can't figure how to get rid of them.

    Highlight an item in the Favorites folder and pressing the delete key do nothing. Command + del also does nothing. Control-click about to bring up any option decision Trash. Drag the item out of the folder and the desktop does nothing.

    I also created a custom folder in the Favorites folder I want more, and I can't get rid of anyone.

    Can someone tell me how you delete something in the Favorites folder you want is more in there?

    Tom B.

    The content of favorites are in user/Library/Application Support / movement / favorites...

    erase all the content - done.

    No, not very Apple like

    fox_m advice is correct!

  • You need to remove all files from the hard drive.

    Original title: I need to empty my drive hard so that I can reinstall windows XP - I bought new computer and put my old one family member...

    I don't want my personal info on my old computer.  I was told to empty / delete (?) my hard drive, then reinstall

    Windows xp from the operating system CD.   Even if I throw the old computer, I want all the info removed for security all

    suggestions?

    Hello

    Please take a look at the following article:

    Protect and serve your personal files

  • Z10 blackBerry how to remove all entries from the Local calendar?

    My calendar shows my email entered account and all is well.  However, I think that when I transferred all of my Bold 9900 he faces a bunch of entries in the local calendar (House) that I don't want.  I would like to delete all entries in the local calendar.  How can I do this?  Thank you!

    Unfortunately you can't remove individual events right now. The fastest way to remove events is the 'Month' tab, then tap and hold events in the list and select 'Delete' from the side menu.

  • How to remove an item from the contextual menu orphan?

    I had a workflow that I added in context menu of Clusters.  I forgot to remove it from the context menu before you delete the workflow, so now it is visible as a choice, but naturally does not start.  Any suggestions on how to get off the context menu now?

    If you have a copy of the workflow on another instance of vRO, the easiest way would be to export from, import it on vRO instance that you use with the Web Client and remove the link of action in the context of the user interface.

    If you don't have a copy of the workflow, you can try the following:

    • SSH for vSphere Web Client device stop vsphere-customer service
    • Delete the /storage/vsphere-client/SerenityDB/serenity/ALL/applications/vco-plugin/context.menu.actions file (you can make a copy of it to the case where)
    • Start service vsphere client (or reboot the power of vSphere Web Client)

    After these steps, all custom context action mappings should have disappeared, including orphans.

  • How to remove unused items from the library?

    Dear all,


    Flash CS4 is really good for the design and development of point of view. But I noticed two things:

    1. If the library has more point so there is no option on right click "select unused items". How can I get this option "select unused items" on click right while the library has one more items with the scroll bar?
    2. Height of the window actions sometimes increased. Right now there is no option to decrease the height of the window actions except the Reset option.

    Please let me know if I'm wrong!

    See you soon

    Uday Singh

    SR. ActionScripter

    [email protected]

    Why can't you use the library Panel Options option?

    -kumslee

  • How to remove individual items from the purchase history?

    Reserved for HOV can I select individual purchases from the App Store on my iPad or iPhone a remove those permanently in history and always keep those I love, or want kerp, in the list. And how can I sort the list, as you could ;-) in Windows 3.0 for MS-DOS

    You can not delete anything of our shopping list.

    You can hide:

    Hide and show purchases from the iTunes or iBooks on your...

  • Remove all tags from the Windows Photo Gallery

    I deleted all the pictures in Windows Photo Gallery, but I can't find out how to remove all the tags at the same time. I really want to remove several hundred tags one at a time.

    This thread does not remove the tags of your files. http://social.answers.Microsoft.com/forums/en-us/vistapictures/thread/399801ba-4824-4293-b135-94513d744911

    I want to completely erase these files and database.  Thanks for any help

    See if that helps any: Removing tags in Windows Vista Photo Gallery
    Microsoft® Security MVP, 2004-2010

  • BlackBerry smartphones remove all entries from the calendar

    Hallo,

    I use a BB 8520 and want to delete all the entries in the calendar (default calendar). The option "replace all entrances to terminals" in DTsoftware does not work - I changed the calendar by default - and all the entries are addes to the pre-existin entries.

    Thank you for your help

    François

    Hello

    From your post, I'm not at all sure that you actually tried that did not work. Therefore, see:

    • Article ID: KB10167 How to clear data from the BlackBerry Smartphone user

    This is the process to clear any user databases out of the unit. If this does not work, please be explicit about exactly what measures you try and exactly how they work.

    Good luck and let us know!

  • Remove all items from a Collection of table

    Small question. What is the code to remove all the elements of a collection of table?

    I have a collection of table {myTilelistAC}, which is referred to as the data provider for my tilelist and I have a button that when clicked will be empty this collection of table, so that the tilelist component will be mainly empty too.

    ArrayCollection.removeAll ();

  • I need to remove an item from the library to the stage

    At this moment I have a button that brings a symbol from the library to the stage. Ideally, I want to be able to click on the symbol itself to make the scene. Can someone help me with this?

    for example:

    var sym:WhateverClass = new WhateverClass();

    sym.addEventListener (MouseEvent.CLICK, clickF);

    function clickF(e:MouseEvent):void {}

    e.currentTarget.parent.removeChild (e.currentTarget);

    }

  • How to remove an item from the start menu in Windows 7?

    I tried to install a game written for an earlier version of Windows.  It did not work, but when I uninstalled the program, he left an icon in my Start menu.  I can't find a way to delete the item in my Start menu.

    If I click on the link, I get a message that says that this is not a valid Win32 application.

    If I right click on the link, I get options:
    Play
    Run as administrator
    More games from Microsoft
    Support
    PIN to the taskbar
    PIN to Start Menu
    Sort by name

    I miss the opportunity, we usually need to change the Menu start manually!

    I did all that, although I had to 'Show hidden files' in two different places, but the guarded program reappear, even after that I deleted everything that I could find that had "Lemmings" in there.  I had installed the program on the D drive and I could delete it, but the next time I saw the Start Menu, it would put a file on drive D named Lemmings Revolution.exe (with no data in this document, 0 bytes).

    I tried the support link from Microsoft and the thought that should work, but alas, I didn't have the product code to enter the FixIt program when asked.

    I finally took a huge risk Open regedit and then sought to any occurrence of the word "Lemmings".  I deleted everything in the registry that referenced "Lemmings", then returned to the D drive (in the command prompt) and deleted the above programme, after that I restarted my computer.

    So far, it seems to have solved the problem...

    (I knew after you remove some of the registry keys, one of the contained key code product I could entered the FixIt program, but by then I had already made changes.)

    Thanks to everyone who tried to help me!

Maybe you are looking for