Deleting Graphic Frames

Hello everybody,
I have this case...
I'm working in a long project with IDCS5, creating a medical directory using a old version of the directory. The problem is... The old version is in PDF. So, I convert (in packages, the pdf file has, at least, 1400 pages) the PDF file in INDD file, but in packages of 50 pages per file. At the moment, all okay. But this is the big problem:
The directory has a specie of features signals in front of names of the doctors or providers. And this signals get shuffled and randomized in the columns of each page.
My procedure to follow is: 1. re-adjust the document / 2. create new paragraph styles and character styles / 3. Erase all the signals.
The last step is the highest problem of this theme. Deleting one per one is very tricky.
Does anyone know how to simplify this work? does exist an script that can delete the graphic frames with the pictures inside?
My apologize for make this post longer... but I need to expose my case to make it easy to understand.
Oh... and I'm sorry if my english writing is not the right... I'm doing my best. =)

Oh, wait, you don't have graphics. Because you have empty frames without graphics.
Do you just want to get rid of all rectangles?
These are anchored frames, right? Then:
app.activeDocument.stories.everyItem().rectangles.everyItem().remove();
Otherwise:
app.activeDocument.rectangles.everyItem().remove();

Similar Messages

  • How do I delete all empty graphics frames from a document?

    I have data merged a document and need to remove all the empty graphics frames as quick as possible.
    I have found solutions for deleting empty text frames but not graphics frames. Can somebody help with this as it will save soo much time and RSI!
    I found an applescript solution here:
    http://forums.adobe.com/thread/756281
    However, I am running Windows 7 and Id CC
    Cheers,
    Kris.

    Hi MToys
    I added a little to the script so that it will work on Ovals and Polygons also. [Not TextFrames]
    You just have to set the values for which of the frame types you want to delete.
    You can do this by setting the const values at the top of the script for DeleteRectangle, DeleteOvals, DeletePolygons
    There are a few uncertainties that I had:
    If an object is selected, should the script only delete that objects frame type.
    I.e., If you select an oval, should the script know to delete only ovals.
    At this point, I did not do that, rather it will just get the settings from the selected object, and delete all frame types with those settings
    I had to disable matching the transparency settings because they werent comparing correctly between different frame types
    Meaning, I made 3 frames, Oval, Rectangle and Polygon - no settings applied.
    I selected the oval and ran the script. It only deleted the oval even though set it to delete all.
    I found that the transparency settings werent matching... even though there werent any
    So, for now - its disabled.
    If someone can shed some light on this I would appreciate it.
    I tested the script on Mac Mountain Lion - ID CS6 and seems to work well
    Here is the script
    const Object_Style = false,
        Fill_Color = true,
        Fill_Tint = true,
        Fill_Transparency_Settings = true,
        Item_Layer = true,
        Stroke_Color = true,
        Stroke_Weight = true,
        Stroke_Type = true,
        Stroke_Transparency_Settings = true,
        Stroke_Tint = true,
        Stroke_Alignment = true;
    const DeleteRectangles = true,
        DeleteOvals = true,
        DeletePolygons = true;
    app.doScript(main, undefined , undefined, UndoModes.fastEntireScript, "INSERT_HERE_THE_SCRIPT_NAME")
    function main() {
        var myDoc = app.activeDocument;
        var mySel = app.selection;
        if (mySel.length > 0) {
            mySample = app.selection[0];
            if (mySample.constructor.name == "Rectangle" ||
                mySample.constructor.name == "Oval" ||
                mySample.constructor.name == "Polygon")
                var isSample = true;
                var objSty, fClr, fTint, fTrans, lay, sClr, sWeight, sType, sTrans, sTint, sAlign;
                GetProps(mySample);
        if (DeleteRectangles) {DeleteItems(myDoc.rectangles)}
        if (DeleteOvals) {DeleteItems(myDoc.ovals)}
        if (DeletePolygons) {DeleteItems(myDoc.polygons)}
        function DeleteItems(myGraphicFrames) {
            for (var i = myGraphicFrames.length-1; i >= 0; i--) {
                if (myGraphicFrames[i].graphics.length < 1) {
                    myGraphicFrames[i].select();
                    if (isSample) if (!checkProps(myGraphicFrames[i])) continue;
                    myGraphicFrames[i].remove();
        // ======================================
        function GetProps(mySample) {
            objSty = mySample.appliedObjectStyle;
            fClr = mySample.fillColor;
            fTint = mySample.fillTint;
            fTrans = mySample.fillTransparencySettings;
            lay = mySample.itemLayer.name;
            sClr = mySample.strokeColor;
            sWeight = mySample.strokeWeight;
            sType = mySample.strokeType;
            sTrans = mySample.strokeTransparencySettings;
            sTint = mySample.strokeTint;
            sAlign = mySample.strokeAlignment;   
        // ======================================
        function checkProps(myFrame) {
            var i=0;
            if (Object_Style) if (myFrame.appliedObjectStyle != objSty) return false;
            if (Fill_Color) if (myFrame.fillColor != fClr) return false;
            if (Fill_Tint) if (myFrame.fillTint != fTint) return false;
            if (Item_Layer) if (myFrame.itemLayer.name != lay) return false;
            if (Stroke_Color) if (myFrame.strokeColor != sClr) return false;
            if (Stroke_Weight) if (myFrame.strokeWeight != sWeight) return false;
            if (Stroke_Type) if (myFrame.strokeType != sType) return false;
            if (Stroke_Tint) if (myFrame.strokeTint != sTint) return false;
            if (Stroke_Alignment) if (myFrame.strokeAlignment != sAlign) return false;
            //if (Stroke_Transparency_Settings) if (myFrame.strokeTransparencySettings != sTrans) return false;
            //if (Fill_Transparency_Settings) if (myFrame.fillTransparencySettings != fTrans) return false;
            return true;

  • Text goes fuzzy when picture is placed in graphics frame

    I have been using InDesign for over a year and love the software. One thing continues to drive me mad and I dont know whats going on.
    Basically when I add a picture into a layout, often (but not always) the text goes fuzzy similar to anti-aliasing being turned off (its not). It just did it again this morning. I have laid out a drop dead simple business card, text is crisp. I add a graphics frame and everythings still OK. I place my PSD file into the frame and bang the text goes fuzzy. If I select and delete the graphics frame the text sharpens up again.
    I have had many situations where it does the same thing but also times when it doesnt. I can see no obvious link between what I am (or am not) doing and why this happens. I also considered that this was just a display issue and it would be fine when sent to a PDF but the quality of the text in a PDF is noticable less with the graphic than without it even at "press" quality.
    All help and suggestions appreciated.
    Jon

    Check the pages panel and see if there is a Chequerboard beside the page. This indicates transparency in the PSD.
    Does your psd have a transparent background?
    Try opening the psd and save it as a tiff.
    Select your image in photoshop and create a path. Change the path to a clipping path.
    Save it as a tiff.
    Place the tiff.
    Go to Object>Clipping Path Options
    Choose the path you created in photoshop.
    Is the text still fuzzy? Just need to check that it is actually the PSD that is causing it, and making it a flat tiff with a clipping path will clear that up if it is.
    You only need to have the background transparent if you're placing the image on a colour other than white, usually. So if the image doesn't need transparency in it or a transparency background the leave it flattened with a white background, but retain a clipping path if you ever need it.
    Usually PSD files are fine to place and to use in InDesign.
    Well hope something here helps.

  • Need help deleting graphic junk mail

    I need help. I cannot delete graphic junk mail into trash. When I try it says unable to move messages. Messages could not be moved to mailbox trash. And the dial keeps spinning. I'm not getting mail cuz this junk is bogging down my iPad &amp; iPhone.
    Any suggestions would be greatly appreciated. I tried going on my MAC and deleting but they dont show up there?!? I tried rebooting, hard reset, nothin.
    Please anyone out there ? I'd be eternally grateful.

    If you cannot delete them on the Mac, it will probably be problematic trying to delete them on the iPad as well.
    You said you couldn't delete them on the Mac either. If you mean in the Mac mail app, don't delete them there. Delete them on the server in your web browser. Launch Safari - or whatever browser you use on the Mac and then go to your web mail and delete the email there.

  • Make anchored graphics frames act as containers

    If I choose Object/Anchored Object/Insert and make the inserted frame a graphics frame (with above line positioning), it doesn't act as a container. That is, if I put a graphic into the frame or create one with the drawing tools -- say a line diagram -- and then make edits to surrounding text that causes the text to move up or down, the *frame* moves with the text it's anchored to, but the graphics inside it *don't* -- with enough editing, they could move right outside the frame, like ghosts passing thro' walls. Since almost every time I want to put a graphic onto the page it bears some specific relationship to the local text, this behavior is unhelpful, to say the least.
    I can't figure out what the point of graphics frames that don't hold their contents in place could be, so I wonder if this is a bug. If so, please fix it. But if ID is behaving as intended, please add the option to preserve the position of graphics inside the frame *relative to the frame boundaries* (as opposed to relative the page boundaries).
    Thanks.
    PS: I did try to group the frame with a line diagram inside it but that seems impossible. I also know you can paste graphics into body text directly -- I watched AMC's video at Adobe -- but when the graphic in question has different pieces that relate to specific words above or below it, you really can't build it off-site then paste it in -- especially if the result of doing that limits your options for adjustments.

    I believe we've covered this issue thoroughly. There's nothing wrong with your intention, but there is something missing about the containership behavior of ID's anchored frames that works fine in FM.
    I think it's a bug. Others may think it's a personal wish that isn't supported. My thinking is that ID's frame objects are already packed with smarts about content type and fitting abilities, that the developers simply overlooked providing the ability to add new objects freely into a frame that's already got content (like FM can.)
    Apparently designers don't encounter this need anywhere nearly as often as those who author annotated documents in Word, FM, or other similar tools that permit working in the isolated environment of a frame - adding, removing, resizing, rearranging text objects and graphic objects at will - as if it were a blank page environment. So, there have been few reports of problems in this area.
    The main reliable anchored-frame solution for this particular problem is to create and revise the content outside of any frame, then group, select, and copy the composite object and paste it at the cursor insertion point, or save it as a separate ID file and place it as an anchored object.
    Perhaps you've already explored using an unstroked table for this particular need. The baselines of text in your example seem to be aligned across the horizontal rows, and the divider lines also seem aligned on horizontal rows. The divider lines could be created by several means - underlines in cells, graphic lines in anchored frames in cells, or horizontal cell rulings.
    The whole arrangement requires painstaking attention no matter how it's constructed, so the fussiness of working with a table wouldn't seem to add something that might not be needed with a different method. Because tables can break across frames, you'd need to set all rows to keep together.
    Again, I strongly suggest formally reporting this quirk as a bug to be fixed and/or a feature request.
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • How to Apply a Graphic Element's "href" Attribute Value on a Graphic Frame

    I have a graphic frame, which I wish to fill with a graphic image. The graphic frame appears as an element in the Structure, as it has a tag attached, and that element has a legitimate "href" as a full path to a graphic file. In UI mode, I have to drag that element onto the graphic frame in order for the graphic frame to be filled with the graphic file. How do I perform the same action in JavaScript?
    TIA
    mlavie

    I thought I should provide an explanation for what I meant:
    I am aware, of course, of how to use "Place". The issue here is that I have a Page that is a template, which includes a Graphic Frame. I want to open the page, and then update the Graphic Frame element's "href" tag with the path of a graphic file, and have that file then appear in the Graphics Frame. By default, InDesign does not redraw the Graphics Frame when you change the value for the "href" attribute - you need to drag the parent element onto the Graphics Frame.
    TIA
    mlavie

  • How can we place an image in already created inline graphic frame?

    Hi,
    AIM::
    To place an image in the inline graphic frame.
    OBSERVATION::
    As i have analysed the snippet Runner,i came to know that it allows to load the placegun with the file(in my case image). but in order to place it,we need to click on the document..and then the image is placed at (0,0) of the page(I suppose Indesign does it automatically).
    what is needed,is to place image in already created inline graphic frame. i have created a inline graphic frame at some position in the story,but now i required to place image in this created frame.

    I have the same problem. Can you give me a short code sample for that.
    I have an image and want to place it in the currently selected frame...

  • How to get the text wrap margin setting of graphic frames?

    Hello everyone,
    I am trying to get the margin setting of frames, and i tried IStandOff which does not work for graphic frames sometimes.
    And then, i found the Adobe recommends to use ITextWrapFacade to manipulate text wraps in programming guide.
    But now, again, ITextWrapFacade::GetMargins(const UIDRef &  textWrapItem,     PMReal &  topMargin,     PMReal &  leftMargin,     PMReal &  bottomMargin,     PMReal &  rightMargin,     bool8 &  singleDistance) cannot get the correct margin setting of a graphic frame.
    This situtation occurs when i select "wrap around object shape" for the frame.
    Any suggestion? Or is there any other way can get that setting?
    Thanks,
    Aidy

    I found another thread mentioned this issue as well, without known solution.
    http://forums.adobe.com/thread/444824

  • Inconsistent space after graphic frames

    Hi,
    I'm trying to create a consistent-looking manual, where space after imported graphics is consistent. Currently, that is not proving to be easy. For example, look at the difference between the space after the first and second graphics below (the first is not what I want; the second is):
    All the text paragraph formats have identical space before and after
    All the graphics frames use exactly the same Object style
    All the graphics frames are in a paragraph style named "Anchor" that has 0pt above and 6pt below (obviously, the 6pt below is not 'sticking' for some reason)
    So, is this a grid problem, or what? Align to Grid is set to None in the "Anchor" para style. I'm not (consciously) using the baseline grid in my manual.

    can be sooo many things depending on your styles, setup, wrap, etc...
    but a quick fix: anchor the graphic on a new para, adjust the paragraphs (your lines of text as u have it) spacing (before and after)  to more (twice more) then the leading.
    your approach to this project is not ideal but hopefully this advice sorts you out.
    G

  • Deleting alternate frames from the timeline

    Hi
    I have a movie which is made up of individual frames (like an
    old style cartoon animation), whereby each frame moves on a bit
    from the previous one and when viewed in Flash, looks like a movie.
    I want to remove some of the frames - probably every other
    frame to make the file size smaller. I can't find a way of doing
    this easily. I can select alternate frames using the 'Apple' key,
    but if I then go to Edit>Timeline>Remove frames or >Clear
    frames, it doesn't actually remove the frames I've highlighted.
    Am I missing something?
    Many thanks for any help.

    You will need to make a command.
    In Flash CS3 select a new JSFL file. Then add this code:
    (note:code is not tested, might contain typos)
    var frmCount =
    fl.getDocumentDOM().getTimeline().layers[0].frameCount;
    var curTimeLn = fl.getDocumentDOM().getTimeline();
    var curFrame =
    fl.getDocumentDOM().getTimeline().currentFrame;
    var stFrame = curFrame;
    for (i=0; i < (frmCount - stFrame)/2; i++) {
    curTimeLn.removeFrames(curFrame);
    curFrame += 2;
    The top section is just variables to make the code easier to
    write. The for loop simply goes through the timeline starting at
    the frame you have selected and deletes it and then moves two
    frames and runs again (deleting that frame) until it has reached
    the end of the timeline.
    Save this file with whatever name you wish to call this
    command ('twoFrame Remover'?), in your commands folder.
    C:\Documents and Settings\...your logon here...\Local
    Settings\Application Data\Adobe\Flash
    CS3\en\Configuration\Tools\commands
    After saving it, you should find it in your commands drop
    down menu item.
    If this does not remove the frames the way you want, you can
    simply undo the command and fix the code as you need it. If you
    know the number of frames you want removed, you can simply hard
    code the number instead of going all the way to the end of the
    timeline. Of course you will have to change the command every time
    you want to use it. But it is easy to play around with it and get
    what you want out of it. You can easily remove every 3rd frame, or
    4th frame etc. Just adjust the code and save it.
    Hope that helps.

  • Graphic Frame can not be renamed

    FM-11 and FM-12: In the Object Properties there is no more a field Name. Hence a graphic frame on the reference pages can not be checked for its name or the name can not be edited.
    I have filed this as a bug.
    The dialogue in FM-12 and FM-11:
    In FM-10 there was the old dialogue still active which contained this information:

    Klaus,
    Actually you can, but it's not properly documented. When you select the Graphics Frame, it's name shows in the Status Bar. You are then supposed to click on the name in the Status bar to get the Frame Name window in order to change it. [There are other operations that also now have this non-intuitve user-be-damned approach.] Why it's not part of the Graphics Frame Properties is a mystery that was pointed out numerous times during the pre-release programs for 11 & 12 [but I guess it was too great of an effort to rectify something that was coded without the benefit of end-user input].

  • How to make the basic graphics frame VerticalJustification as bottom align?

    Hi:
    In indesigne CS3 script, how to make the basic graphics frame
    VerticalJustification as bottom align?
    Thanks in advance.

    Vertical justification applies to text frames, not to graphic frames.
    Peter

  • Resizing graphics frames that have stroke/keylines

    When I resize a graphic frame (with a placed image in it) that has a stroke/keyline, the stroke changes weight and I have to reapply the Object Style which sets the weight. How can I keep the same weight when I resize?
    Also is there a way of changing the default behaviour of SHIFT+Resize box with mouse so that it resizes the frame AND content rather than having to use the more cumbersome ALT+SHIFT+mouse resize? I do that far more often then just resizing the frame and keeping the ratio!

    Scaling Stroke Issue: On the menu bar at the far right, select the flyout and you will see the option "Adjust Stroke Weight When Scaling" here you can deselect to turn off
    Resizing Issue: For just one image, select image, Object > Fitting > Frame Fitting Options > Turn on Autofit and Desired Fitting Option
    Resizing Issue: For multiple images, Object Styles > select stye(s) > Frame Fitting Options > Turn on Autofit and Desired Fitting Option

  • Graphic frames in a document...

    hi to all,
    I need all and only graphic frames  of a document?
    what is the right interface?
    like InterfacePtr<IStoryList> for story of text frames...
    thanks in advance!

    Hi,
    I think you can try this :
    bool YourClass::IsGraphicFrame(const UIDRef& graphicFrameRef)
        InterfacePtr<IGraphicFrameData> graphicFrameData(graphicFrameRef, UseDefaultIID());
        // Test not nil
        return Utils<IPageItemTypeUtils>()->IsGraphicFrame(graphicFrameRef)
                 || (graphicFrameData->IsGraphicFrame() && !graphicFrameData->HasContent());
    Good luck

  • Find and delete graphic lines by geometric bounds

    Hi everybody,
    I am really desperate after days browsing the web and forums I still can't figure this out.
    I am working on InDesign CS3 on a MacBook Pro with Snow Leopard.
    I have a 300 page catalog put together through a data merge. Unfortunately this way I produce 2 graphic lines at the end of each page that I would rather like to delete. Since I do not want to do that manually on each page and since I will have to put together this catalog quite frequently in the future I would like to delete those lines using Applescript.
    Since I have about 12 more of the same lines on each page (same style, color, stroke etc) I figured the only way to tell Applescript which ones to delete is by geometric bounds because those lines are always at the same coordinates on each page.
    Unfortunately I cannot figure it out. I tried the following code:
    tell application "Adobe InDesign CS3"
         tell document 1
              repeat with oneFrame in (get graphic lines whose stroke weight = 1)
                   if geometric bounds of oneFrame is {0, 0, 0, 210} then
                        delete oneFrame
                   end if
              end repeat
         end tell
    end tell
    REPLY
    tell application "Adobe InDesign CS3"
         get every graphic line of document 1 whose stroke weight = 1
              --> {graphic line id 187 of page id 177 of spread id 172 of document "Untitled-16"}
         get geometric bounds of graphic line id 187 of page id 177 of spread id 172 of document "Untitled-16"
              --> {0.0, 0.0, 0.0, 210.0}
         delete graphic line id 187 of page id 177 of spread id 172 of document "Untitled-16"
    end tell
    This worked fine for the line placed at x 0mm y 0mm with a length of 210mm.
    I tried the same thing with a line at x 3mm y 134mm length of 210mm with the following code
    tell application "Adobe InDesign CS3"
         tell document 1
              repeat with oneFrame in (get graphic lines whose stroke weight = 1)
                   if geometric bounds of oneFrame is {134, 3, 134, 213} then
                        delete oneFrame
                   end if
              end repeat
         end tell
    end tell
    REPLY:
    tell application "Adobe InDesign CS3"
         get every graphic line of document 1 whose stroke weight = 1
              --> {graphic line id 213 of page id 177 of spread id 172 of document "Untitled-16"}
         get geometric bounds of graphic line id 213 of page id 177 of spread id 172 of document "Untitled-16"
              --> {134.0, 3.0, 134.0, 213.0}
    end tell
    This was my best shot. No idea if I am on the right track or totally off bounds.
    Any help would be highly appreciated!
    Thanks in advance..
    Osinho

    Good Morning Mary,
    Thank you for your reply.
    I found a solid solution using a different approach.
    It seems like the geometric bounds selector is not accurate for values with decimal values like 149.267 because in reality this value is 149.266666666666666666666667 (period 6). Since some of my lines have such a pattern it just won't work (that's the only explanation I could come up with...)
    Nevertheless here my solution:
    The lines that have to be removed are always the last 2 lines of a total of 12 lines on a page. Knowing that I incorporated a running index telling the script "please delete only the lines with index 11 and 12" once the max count of 12 per page is reached I reset the index so it starts from scratch for the next page. Works like a charm!
    (don't get confused because I count down from 12 to 1 - this needed to be done because the loop starts at the bottom of the page rather than at the top)
    Here the code:
    tell application "Adobe InDesign CS3"     
         tell document 1
              set lCount to 12
              repeat with oneFrame in (get graphic lines whose stroke weight = 1)
                   if (lCount is 12 or lCount is 11) then
                        delete oneFrame
                   end if
                   if lCount is 1 then
                        set lCount to 13
                   end if
                   set lCount to lCount - 1
              end repeat          
         end tell
    end tell
    Thank you very much for your assistance!
    Highly appreciated!
    Have a great weekend...
    Osinho

Maybe you are looking for

  • Can someone help me pls.

    I have a problem in loading my text file. The following error occured. What do I need to do? What does it mean by "Select to upload the data without an erro? Pls. help me. len 1 ERROR OCCURED * There are NOT NULL columns in HANDSONXE06.DATABASES. Sel

  • AUR policy on packages with no version in the source file name

    I know that the AUR policy says that no code must be included with the PKGBUILD if you are not a trusted user. But, how do you deal with packages that do not have their version number in the file name: http://www.somesite.com/someproject.tar.gz inste

  • Re-installing drivers Probelem *he

    Ok, I have a creative x-fi extreme gamer sound card and it was previously installed on my system. Something was wrong with the sound for some reason so I un-installed the driver and tried to re-install the new driver. The driver version I am trying t

  • IEAK11 msi not doing anything

    I created a IEAK11 deployment package with all our corporate settings. It creates an exe and an msi. Exe works fine, msi does nothing. It runs, it completes (according to verbose log), but it doesn't modify the system in any way. After restart IE11 i

  • Just what I wanted/needed for digital photos...

    ever since digital photography became mainstream and i ditched the 35mm camera for a digital one, one of my main hangups has been how to share photos with others. in the old days (35mm), you just grabbed the folder of prints and showed them to whoeve