How to I find/delete empty layers? (AS)

Cleaning house on the files I get with 20 pages and 15 layers! Any input on how I can find and delete the empty layers via Applescript? Otherwise, I am first trying to move every item to one layer, then delete the empty layers. Long process....

G'day
You can use non-Applescript solutions to give you hints.
The above posts point to a property of layers which is also available through Applescript — page items.
So, maybe try...
tell application "Adobe InDesign CS4"
    activate
    tell active document
        repeat with x from (count layers) to 1 by -1
            get page items of layer x
            if result is {} then
                delete layer x
            end if
        end repeat
    end tell
end tell
m.

Similar Messages

  • How to I find deleted text from icloud

    How do I find and view deleted text from contacts

    Welcome to the Apple Community.
    If they are in the camera roll you'll need to restore from a back up made before you deleted them.

  • How can I find all locked layers (visible or not) and then Unlock All at once?

    OK, for anyone who cares here's the scenario.
    I was on a tight deadline. I got a massively layered, -- nested folders everything --  .psd
    I'm using Photoshop CS 5.5
    I only needed the visible layers.  So, I go to "Delete Hidden Layers" right? Ooops it was grayed out, I could not use it -- Ahhh that was because of the locked layers...
    No problem. Ugh wait.
    Then I realized -- in the complicated layer structure I had to go through every single folder, open it, look for a locked layer and unlock it (nested folders inside of nested folders etc.). If the layer was not visible and it was locked, I had to first turn it to visible, then unlock it, and then turn it off again.
    Aaaarrggghhh I was on a deadline, and I just didn't have time -- but I had to do it anyway.
    This was a painful experience... I'm telling designers from now on NEVER SEND ME A PSD WITH LOCKED LAYERS AGAIN
    It would have been so much easier if I could just search for "locked layers", and "unlock all."
    Does anyone know of a solution? Probably something I should have known years ago, or maybe a feature request?
    Thanks!!!
    :B

    This feature is now available in Photoshop CS6. Layers panel has a layer filter option that simplifies the workflow and is designers dream come true! Please see screenshots below:

  • How do I find/delete damaged image?

    I have been able to get Aperture to open successfully by holding the shift key down when first opening the application, deferring preview generation. According to the basic troubleshooting tips this indicates that I have a damaged image that is causing the problem opening Aperture. How do i find the offending image?
    Thanks,
    George

    Hello George,
    your damaged image probably is from your most recent import. I'd suggest to try to open the master image files from your recent import in another program e,g, Preview.
    If your library is managed . the masters included in he library package, you will find them by ctrl-clicking the  the Aperture library package in the Finder and selecting "Show package Contents".
    Then open the "Masters" folder. This folder is organized chronologically by the import date. So your corrupted image most probably will be in the folder with the most recent date.
    Browse this folder and try to open the images in Preview (or your camera's raw converter, if you are shooting raw).
    If you cannot spot the culprit this way,  then you will have to try to find the corrupted image by creating previews for subsets of your images in Aperture.
    Turn on the Activity Viewer (Window -> Show Activity) to see which images Aperture is processing.
    Select some of your recent import, ctrl-click the images and select "Update Preview".
    If Aperture crashes again, you will know the corrupt image is one of the currently selected.
    Restart, and try the same for half of the selection, until you know which image it is.
    Regards
    Léonie
    It will be hard work to find the image ...

  • How do I find & delete duplicate photos in iPhoto?

    I have so many duplicates in iPhoto that my library files is way too large by thousands of photos. I need to find a way to weed out duplicate photos. Anyone know how?
    Thanks,
    Barb

    I've moved this conversation to iLife - iPhoto for MAC. Apologies for any inconvenience.

  • HT4858 How can I find deleted photos  , but kindly be informed that my iPad was not updated during shooting the photos

    I've created three different albums to put the photos from the photo stream and as soon as I put each photo in its album , i deleted the  moved and selected photos , later on I could not find either the deleted photos and videos or the photos put in the created albums

    Welcome to the Apple community Shady99.
    Are you sure you created a shared album and not a camera roll album.

  • How can I bulk delete empty music files?

    I my library I have many "file no longer there" icons. Is there a way to delete them all at once? I have a huge library and these icons are scattered all throughout. You can't sort them so they all group together and junk them all at once. Any hints would be helpful.

    Hi, fotosmith.
    If you're talking about exclamation marks (!'s), have a look at MacMuse's User Tip .

  • How do I find, delete or clean out Duplicated photos

    I have synced an iPad mini and iPhone to my computer and have duplicated photos in iPhoto how do I sought through 1000,s of photos to clean out the dulicates?

    You can use one of these apps:  iPhoto Library Manager, Duplicate Cleaner for iPhoto,  Duplicate Annihilator  or iPhoto Applescript to Remove Duplicates.
    OT

  • HELP!! how can i find deleted data on my HD

    hi
    i just reinstalled my mac. but i forgott to save my whole i tunes library!!!
    does somebody know to restore my music?
    thanks for your answer
    kyle

    If you erased your hard drive and you have no back up, your library is lost. If you have your music on an iPod, it may be recoverable with third-party software.

  • Find deleted files

    Hi All,
    I have a simple & short question, that is not simple for me:
    How can I find deleted files?
    I searched for a solution, and I read about a deleted files basket,
    but there was no solution where I can find the basket. That was in 2005.
    I really need help.
    Thanks for answering me
    Steve

    Hi,
          Refer the following.  it will give some information.
              https://www.sdn.sap.com/irj/sdn/thread?threadID=320101
              https://www.sdn.sap.com/irj/sdn/thread?threadID=523356
              https://www.sdn.sap.com/irj/sdn/thread?threadID=19193
    Rds,
    Shanthakumar.

  • How do I find out and the delete "other" files being stored on my drive?

    My Mac Air HD says it has 17 GB left of free memory space.
    76 GB says of "Other"
    How do I find out what "other" is, and delete it to free space.
    This is a brand new, Mac. I just got it in December and I have no pictures saved in it.
    Thank you

    For information about the Other category in the Storage display, see this support article. If the Storage display seems to be inaccurate, try rebuilding the Spotlight index.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
              iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then restart the computer. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation—not the mythical 10%, 15%, or any other percentage. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) or GrandPerspective (GP) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one. Note that ODS only works with OS X 10.8 or later. If you're running an older OS version, use GP.
    Deleting files inside a photo or iTunes library will corrupt the library. Changes to such a library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS or GP can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install the app you downloaded in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the corresponding line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper 2>&-
    sudo /Applications/GrandPerspective.app/Contents/MacOS/GrandPerspective 2>&-
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Paste into the Terminal window by pressing command-V. You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. Ignore any other messages that appear in the Terminal window.
    The application window will open, eventually showing all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with the app, quit it and also quit Terminal.

  • Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can't complete the operation because some data in the folder can't be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can’t complete the operation because some data in the folder can’t be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    The Time Machines Backup is formated as Mac OS Extended (Case Sensitive, Journaled), my mac is formated as Mac OS Extended (Journaled).
    The names on the file are all Uppercase
    When I try to copy the Aperture file, it copies about 70% of the file (it's about 33GB in size), and halfway through I get this error.
    I'm able to copy 99.99% of all of the images if I open the Aperture Folder using the "show package contents" under the backups using finder (Time Machine Backups>Backups.backupdb>CQ Macbook Air>2012-04-30-070933>HD.....>Pictures>Aperture Library). The only file I can't copy is that picture, which I'm totally ok with deleting, but Finder won't delete it for me. If nothing else works, I could copy the individual masters and re-create the folders, however I'd hate to do this as I would have to go through 10,000+ pics

  • Macbook Air's hard drive full with files under the 'other' category - how do I find these files and delete them?

    A few days ago a pop up message came up on my screen saying that my hard drive was full, and that I could not install valuable updates because I did not have enough space on my computer. I checked my computer's storage space only to find that 18.22GB of my hard drive was filled with files/programs under the 'other' category. I have deleted all my downloads, most of my pictures and have done virus scans and I still don't have enough room. How do I find out what is in this 'other' category so that I can delete these files (which seem to be hidden) or whatever they may be?

    1. Empty Trash.
        http://support.apple.com/kb/PH10677
    2. Delete "Recovered Messages", if any.
        Hold the option key down and click "Go" menu in the Finder menu bar.
        Select "Library" from the dropdown.
        Library > Mail > V2 > Mailboxes
        Delete "Recovered Messages", if any.
        Empty Trash. Restart.
    3. Repair Disk
        Steps 1 through 7
        http://support.apple.com/kb/PH5836
    4. For info about "Other":
        http://pondini.org/OSX/DiskSpace.html
        http://pondini.org/OSX/LionStorage.html
    Best.

  • My storage, it says I have 44.58GB of "other storage"? How can I find out what is the "other" storage and/or delete it?

    HELP! My storage, it says I have 44.58GB of "other" storage. How can I find out what this "other" storage is and/or delete it? I have no space available to update or download the software for my personal cloud.

    About “Other”:
    http://support.apple.com/en-us/HT202867
    Go step by step and test.
    1. Start up in Safe Mode.
        http://support.apple.com/kb/PH11212
    2. Empty Trash.
       http://support.apple.com/kb/PH13806
    3. Disk space / Time Machine ?/ Local Snapshots
      Local backups
       http://support.apple.com/kb/ht4878
    4. Delete old iOS Devices Backup.
        iTunes > Preferences > Devices
        Highlight the old Backups , press “Delete Backup” and then “OK”.
        http://support.apple.com/kb/HT4946?viewlocale=en_US&locale=en_US
    5. Re-index Macintosh HD.
        This will take a while. Wait until it is finished.
        System Preferences > Spotlight > Privacy
        http://support.apple.com/kb/ht2409
    6.Try OmniDiskSweeper. This will give the storage size details of the items.
       https://www.omnigroup.com/more
       Select Macintosh HD and click  “Sweep Selected Drive” at the bottom.
       Delete the files you don’t want to keep.
       Be careful. Delete only the files that can be safely  deleted.

  • How can I find and permanently delete an address card?

    Bought a new MacBook for my wife. Our server informed her that it could not send an email out with this address <tomjones-comcast.net>. Obviously a error. She corrected it but because she was unfamiliar with the process, she created a new address card as well. Now, however, when she addresses an email, the old one still shows up in scroll. She deleted the card but the old address still showed up.
    I used the find command under the File menu with the old email address and discovered where it was located: Home/Library/Caches/com.apple.AddressBook/MetaData
    where it was identified: 11C34DF1-16DA….etc etc.
    I found it in MetaData and dragged it to trash. (later I emptied the trash)
    It still shows up, however, but neither Spotlight or Find can locate it.
    How I can find it and delete it?

    Since the address was incorrect, the email was never sent. The name doesn't appear in the recipient file.
    Since I entered my question at the group, my wife lost all - mail program and alll addresses. I've rebuilt it all with the correct address this time and all is well.
    Thank you.
    By the way I found all the addresses in the Trash in 5 "recovered" folders. Quite neat.

Maybe you are looking for