JS CS3 How can I find -and delete- anchored empty images frames

I have a script that works fine with text,
I need the same function, but find and remove anchored empty image frames
thx
var myDoc = app.activeDocument
for(var myCounter = myDoc.textFrames.length-1; myCounter>=0; myCounter--)
var myFrames = myDoc.textFrames[myCounter]
if (myDoc.textFrames[myCounter].contents == ""){
myDoc.textFrames[myCounter].remove()

I'd do it this way:
1. Grab the document's allPageItems.
2. Iterate over it, ignoring text frames.
3. Check to see: (a) if the parent is a character and (b) if the graphics collection of the page item is empty. If so, delete it.
Dave

Similar Messages

  • How can I find and delete duplicate files in Mt Lion?

    As a competent, but self-trained mac user for 30 years, I'm totally baffled by the sudden appearance of multiple duplicate documents and .jpgs in my imac files. How can I find and delete them?

    Duplicate Annihalitor - http://brattoo.com/propaganda/ - or Decloner - http://www.pixelespressoapps.com/decloner/
    LN

  • How can I find and delete duplicate photos?

    How can I find and delete duplicate photos in iPhoto 2011?

    Duplicate Annihalitor - http://brattoo.com/propaganda/ - or Decloner - http://www.pixelespressoapps.com/decloner/
    LN

  • HELP!! How can I find and delete duplicate mp3 files.

    I have a zillion copies of songs and I want to find and delete duplicate mp3 files. I have used MediaRage to find the duplicate files (16 thousand or so) but it can't delete them. It will take a million yrs to delete them manually. Does anyone know a way to do this quickly or a program that will do this for me. I have a 15 in Powerbook with OS 10.5.3
    Thanks so much if you can help.

    This site: http://dougscripts.com/itunes/ has hundreds of scripts (small programs that do stuff) for iTunes.
    Bound to be something there for you.

  • How can I find and delete videos from iPhoto?

    When I use iMovie to create a video for You Tube the program loads every bit of video I have in iPhoto.  I have attempted to delete all of the old, unused, videos but they do not all appear in the library list.  I have several videos that come up in iMpovie that I can't find in iPhoto.  Thanks for your help.
    Stu

    Use the serach feature at the bottom of iPhoto and enter "movie".  All  movie files imported into iPhoto are automatically given a keyword, movie.
    Or you can create a smart album with the following criteria:  Keyword is movie.  Select all the movie files and use the key combination Option+Command+Delete to move the files to the iPhoto Trash Bion.  Then empty the iPhoto trash bin and the Trash bin in the Dock..
    OT

  • How can i find and delete duplicate emails on my mac

    I use Apple Mail, Gmail and a third party email on my few Apple devices (iMac and Macbook Air both running Mavericks and iPhone 4s running current version iOS). 
    I would like to sort through, locate and delete duplicate emails (from several misguided approaches to Rules, Mailboxes, Smart Mailboxes, etc.)

    Hi,
    Presuming the Post is about the Messages app and iMessages.
    If you delete them they are gone or the Mac.
    An iMessages arrives  and is displayed in the App.
    there is a setting in the Preferences > General section about Saving on Close.
    The iMessages are also stored in the chat.db items (unless deleted) and this provides the "history" when you reconnect to a contact who is not currently on display in the main window.
    In Mavericks Saved Chats and the chat.db items (there are three in total) are held in different places.
    The app does not work like Mail where the emails can be left on the Server and "read" by other devices.
    The iMessages are pushed to the devices that then accepts them.
    After that the "sync" function ends (What you do with the iMessages on one device is not seen or changed on another)
    9:54 pm      Friday; October 31, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • HOW CAN I FIND AND DELETE CLEAN MY MAC

    I have been haunted with this now for 2 years. I have tried everything I can think of to get this terrible software off my Mac, but hav failed. Every few minutes this software pops up and asks me if I want to delete my trash with it. Can someone show me how to find it?
    This is my Mac specs:

    "CleanMyMac" is a scam and a common cause of instability and poor performance. The developer's instructions don't completely remove it. Follow those instructions, then do as below.
    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchDaemons/com.macpaw.CleanMyMac2.Agent.plist
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Move the selected item to the Trash. You may be prompted for your administrator login password. Repeat with this line:
    /Library/PrivilegedHelperTools/com.macpaw.CleanMyMac2.Agent
    Restart the computer and empty the Trash. Never again install "CleanMyMac" or anything like it.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • How do I find and delete old plugins

    Since my leopard days I have been migrating data over as I updraded to the new OSX 10.9. When I start to open apps. Pro tools, Logic x, and otehr DAWs, there are some plug ins that are not compatable. Rather than leave a bug, and taking more time to launch my apps, how can I find and delete some of the plug ins that are 32 bit that don't work with 64 bot applications.
    Just house cleaning. Thanks.

    Under the file tab in iTunes, select Display Duplicates. From there you can delete them as well.

  • I opened "Fedex Shipment"malware. How do I find and delete it?

    I opened an email labeled "Fedex Shipment Department." I believe it to be a Trojan or some other type of problem. How can I find and delete this?
    Thanks in advance for any help.

    It is impossible to tell where malware (if there is any) might be located. I would probably clear the browser cache and cookies (if I  was concerned). If I was really concerned, I would restore my system from the latest backup.
    Apple does have code to intercept malware, but I have no clue how it works.
    Barry

  • How do i find and delete duplicate in my song library???????

    How do i find and delete duplicate in my song library???????

    Under the file tab in iTunes, select Display Duplicates. From there you can delete them as well.

  • How do I find and delete duplicate bookmarks ?

    How do I find and delete duplicate bookmarks ? Mac OS X

    Under the file tab in iTunes, select Display Duplicates. From there you can delete them as well.

  • How do I find and delete phantom email messages?

    The icon says I have five new messages (up from one a few weeks ago), but I can't find them in any of the folders (I have looked on both phone and computer). I have also changed my settings to erase deleted messages in 24 hours, but the phantom messages still seem to exist. How do I find and delete them.

    Under the file tab in iTunes, select Display Duplicates. From there you can delete them as well.

  • How do I find and delete my iPhon backup that is on my computer?

    How do I find and delete my iPhon backup that is on my computer?

    Launch iTunes. From the iTunes menu bar click iTunes > Preferences then select Devices.
    You can delete backups from there.

  • Inside mail, how do you find and delete old useless messages

    inside mail, how do you find and delete old useless messages, there are thousands of them.

    go thru all your mail boxes, and delete, all your synced boxes, highlight the stuff you want to trash, click delete.
    Go thru all the boxes and do the delete, then go to your server trash, and delete.
    You canthen go to on my mac and do the same thing.
    This is way different than 10.6.8, and I'm sure there is a much better way to do this, but at least it will get rid of some junk.
    Sorry this all I can offer.
    I'm sure someone who has been working with OS can offer a much better path.

  • I used time machine to restore on a formatted MAC. Now the HDD space has reduced by 100GB but I cannot see any of the files. How do I find and delete those 100GB data from the HDD?

    I used time machine to restore on a formatted MAC. Now the HDD space has reduced by 100GB but I cannot see any of the files. How do I find and delete those 100GB data from the HDD?

    dglenn9000 wrote:
    I created a new user account just to see if it was my user Library or if there was something wrong with my system. And the new user account is doing most of the same things so I will need to do a full restore anyway.
    Not necessarily. I'd suggest downloading and installing the "combo" update. That's a combination (thus the clever name) of all the updates to Leopard since it was first released, so installing it should fix anything that's gone wrong since then, such as with one of the normal "point" updates. Info and download available at: http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate Be sure to do a +Repair Permissions+ via Disk Utility (in your Applications/Utilities folder) afterwards.

Maybe you are looking for

  • Need to change the standard error message when no data found in a window

    Hi All, We have a button in our screen, on clicking we show a window with details from a view for the selected record in the screen using master-detail relationship. But, if i dont have any data to display, it is giving standard message, " FRM-40350

  • Grphics Card - 3 Monitors

    Hi Everyone, Having isues selecting a new GFX Card. Have read the forum up and down, and am still not understanding what I should do. So my current system is as follows: MacPro 3,1 NVIDIA GeForce 8800GT 2x - 22" Acer Monitors OSX - 10.6.3 Processor -

  • WS14000133 using BADi not able to activate

    Hi Guys, We are going for Z workflow development using WS14000133.We have built a Z table for the same.Now i have deactivated all the other workflows.But when i go in the "Define starting conditions for workflows" node and i see workflows for object

  • 'Erase Free Space Utility' problem

    Hi everyone, I wonder if you could spare your time in helping me with what I believe is a bit of a fixable dilemma but I just am not sure how to fix the problem. I ran the 'Erase Free Space' option on my hard disk through the Disc Utility application

  • MASS EMAIL GROUP ADD

    I am being spammed by hindu people. They are opening large group conferences, with other people who don't want to be there. I don't know how. But, I recently accepted an add requestion by person named, dynamite.web.solution and then right after that