Deleting text frames without a specific fill color

I was wondering if someone might be able to tell me a simple way in javascript to scan through all the text frame in my active document that are NOT filled with the following RGB values...
fillColor.red = 11
fillColor.green = 142
fillColor.blue = 196
Windows 7 64 bit, CS4

I changed my concept to make it more dynamic for my purpose. I am checking to see if the fillColor typename is RGBColor or GrayColor. I am deleting anything that is GrayColor. Thought I would share the code for the community to use as you wish. Hope it helps somebody!
var doc = app.activeDocument
var allText = doc.textFrames;
var readFillColor = [];
for(i=0; i<allText.length; i++)
  textItemsRange = allText[i].textRange;
  readFillColor[i] = textItemsRange.characterAttributes.fillColor
  if(readFillColor[i].typename == "RGBColor")
  //alert("Found RGBColor")
else{
  //alert("Found GrayColor")
  textItemsRange.remove();

Similar Messages

  • Highlighting the text by changing the "character fill color" with double-spacing?

    Highlighting the text by changing the "character fill color" doesn't seem to go well with double-spacing.
    Has anyone been aware of this issue?
    Try double-spacing the text you highlighted. What's up with this?
    This is so annoying and frustrating. I've been trying to do both of them for like 2-3 hours.
    You CAN do both, of course, but if you double-space the highlighted text, it just creates this huge highlighted part (it highlights the space between the two lines!) below the actual text.
    Anyone help me pleeeeeeeease.

    In Pages v5.2.2, taking Baskerville Regular 12 pt, and double-spacing it with character fill color does produce a nasty effect. With View > Show Rulers, I looked where the lines of text lined up on the vertical scale.
    Then I changed the Spacing selector from Lines to Between. Now, just the text had the character fill color, but the line height had increased visually downward. With the between setting, line height is changed to points, and indicates 27 pt. If you adjust this value to 16 pt, the second line of double-spacing will realign with where it was before the between change, while retaining discrete line character fill color.
    Before: Spacing set to Lines, and 2.0 - Double.
    After: Spacing set to Between, and 16 pt

  • Can not delete text messages without phone freezing when i reset it text messages are back

    can not delete text messages without phone freezing when i reset it text messages are back...help taking up a lot of space.

    Try this...
    Close out all apps (double click the home button and swipe up) then delete one thread.  Do a hard reset of the phone or ipad, then wait a few minutes and it should be gone.  I just did this with a thread that had thousands of txt and it worked for me.  The older phones just don't have much processing power.

  • Delete Text Frame out of page

    I want to delete text frame either is blank or have text that out of the page in all opened document, below script can delete all text frame in all opened document, but I want to keep the text frame inside the page, can anyone help me?
    var myDoc = app.documents.length;
    for (var k= myDoc -1; k >= 0; k--) {
    var myStories = app.documents[k].stories.everyItem().getElements();
    for (i = myStories.length - 1; i >= 0; i--){
        var myTextFrames = myStories[i].textContainers;
        for (j = myTextFrames.length - 1; j >= 0; j--)    {
                myTextFrames[j].remove();

    Hi creativejoan0425
    Give this script a try:
    It delets all Textframe which are totaly off a page
    It delets all empty Textframes
    Script works for multiple document and multiple pages.
    main();
    exit();
    function main() {
         var myDocs = app.documents.everyItem().getElements();
         for (var j = myDocs.length -1;  j >= 0; j--) {
              var myTextFrames = myDocs[j].textFrames.everyItem().getElements();
              for (var i = myTextFrames.length -1; i >= 0 ; i--) {
                    // is null, if the textfame is totaly off the pagae
                   if (myTextFrames[i].parentPage == null) myTextFrames[i].remove();
                   // deletes empty Textframe
                   else if (myTextFrames[i].contents == "") myTextFrames[i].remove();
              } // for
              myDocs[j].save() // Save the actual Document
              myDocs[j].close()     // close the actual Document
         } // for
    } // main
    Kind Regard
    Dani (from Switzerland)

  • [CS3] How to cut/copy/paste text frame without link

    Hi All,
    Please tell me how I will cut/copy and paste text frame with ignoring or removing links of text frame.
    After copying, the original text frame must contain its link but the newly create text frame should contain any link.
    Thanks,
    Aman Alam

    hey thanks for responding. pasting through text edit works, but if i just copy from the quote block and paste in the top of the message body, it keeps the quote formatting. if i Paste as Quotation, then it double-quotes it--two side bars...
    i guess part of the problem that i just realized, too, is that Mail must convert a message to rich text if you choose to quote text in a reply. because otherwise it could not possibly color the text, right? when i paste out of Mail and into Text Edit, the text color i saw in mail is preserved, meaning the text itself must contain formatting data (rich text).
    is there no way to reply to a mail and include the previous message as a quote without switching to rich text?

  • [AS] CS3- Find any text with style, then replace that text with a new applied fill color.

    I am trying to find the simplest way in cs3 to find any text with style, then replace that text with a new fill color. I can find text and change text. I can find a style and change it to a new style. I can't seem to find a style and change the applied fill color. I do not want to change the properties of the style, just the applied color. Yes, I want the + sign, for now. I know, why not update the style, I am not allowed to. Any help would be great. Since the search is not available, I need a new response.
    Thanks.

    You can work around the bug by just doing a find, then looping through the<br />results, changing the color one at a time. It'll be a fraction slower, but<br />should do the trick:<br /><br />tell application "Adobe InDesign CS3"<br />    set find text preferences to nothing<br />    set properties of find text preferences to {applied paragraph style:"The<br />name"}<br />    set theFinds to find text document 1<br />    repeat with i from 1 to count of theFinds<br />        set properties of item i of theFinds to {fill color:"Replace color"}<br />    end repeat<br />end tell<br /><br />The bug is fixed in CS4, BTW.<br /><br />-- <br />Shane Stanley <[email protected]><br />AppleScript Pro Florida, April 2009 <a href=http://scriptingmatters.com/aspro>

  • Untread Text Frames without losing text in the second frame

    I probably not gonna use the right terms to express my question because I don't have an english version of ID. I'm sorry for that.
    If you, for example, import a text document into your column-based layout, you are able to automate the text flow and it will flow into the columns. At the end of each frame there's a text-handler (threading text) that shows you where the text continues in the next frame.
    I wanna know if there's a possibility to unthread text AND leave the text into the first column and the rest of the text into the next column WITHOUT being connected like before. If I try this I get a red plus-sign at the end of the first frame showing me there more text and the next frame ends up without text.
    I can cut the text from behind the plus-sign and paste it into the next frame, okay. But there's something in my memory telling me it was already possible with Pagemaker to simply disconnect frames and leave the text intact.
    I hope somebody understands my question?

    Salah Fadlabi wrote:
    Try to open Object style with no document open, double click on none then close and open indesign. Every frame after this process will be without border.
    This is only correct for new created document, not for existing ones. If the problem existis in an existing document you have to change the default style with no object selected.
    I would strongly recommend to create its own basic styles for each category and load them into the several style panels to have always styles with the same name in every document which makes exchange of items easier.
    Default Object styles are those with the small rectangle graphic at the right. The one with the T ist for Text frames, the one without T for Image Frames.

  • Is there anyway to recover deleted text messages without a backup?

    I have an Iphone 3gs. I desperately need to recover deleted text messages from it. I have never synched my phone to itunes, "automatically synch to itunes" has always been unchecked. I had never made a back up until a few days ago, but i need to recover the messages deleted prior to creating the backup. is this possible at all? thank you
    and once the phone is synched, are your deleted messages lost forever
    thank you so much!

    If the backup is made after the messages were deleted, then you won't be able to get them back via an iTunes restore. However, you may be able to use a third-party program to look at the backup made after the messages were deleted and see what information about those messages is recoverable.
    One program, the one I work on, is called Decipher TextMessage. Our software will scan the text-message database and show you what information (whole and incomplete) was found that has been previously deleted. We've had a lot of success helping folks recover their deleted text messages -- it doesn't always work 100% since we're at the mercy of how the database works but it's worth a shot to see what you can find!
    The website for Decipher TextMessage is http://deciphertools.com
    If you're curious about how the message recovery works, I've also posted more about it in these other threads:
    https://discussions.apple.com/thread/3958108
    https://discussions.apple.com/thread/4076721
    https://discussions.apple.com/thread/4077826
    You're also welcome to visit our website, try the software free, and send us any questions that you have.
    Disclaimer: Since I work on Decipher TextMessage, I stand to benefit from the links to our website that I've made above.

  • Can I restore a deleted text conversation without having to restore my whole phone to that date? I backup using iCloud

    I deleted a text converstaion on my iPhone5 and would like to retrieve it. Can this be done without restoring the phone and losing current messages?

    Other people have already answered this sufficiently a couple times.
    Restoring from a backup is all or nothing.
    You can not pick apart a backup.
    There are programs that can do that for itunes but not for icloud.
    So if you have an icloud from when the conversatiion was still on device then you can restore from that backup
    (it will be a total restore, all or nothing)
    However if you do not have a backup from then or are not willing to restore everything that conversation is gone.

  • Each time I create a Text Frame it appears colored with black?

    Every time I create a Text Frame with the Type tool in InDesing CS5.5 in a document named "02_End.indd", (this happen only for this file) the it appears filled with black color. On the other documents this does not happen (the text frames are with no fill).
    Can anyone tell me how can I change the default color of the Text frames?
    Please help me?

    Make sure you don't have anything selected. Then look in the swatches palette. If you see the default fill is black, set it to [None].
    If not, it may be your default object style, or possibly a document corruption -- if you suspect the latter, you could try to Remove Document Corruption as per the instructions at the top of this forum.

  • How can I read non-deleted text messages from months ago without having to continuously press "Load Earlier Messages"?

    I never deleted text messages from a specific person in case I ever wanted to go back and look at them. Now months have gone by and I don't feel like continuously pressing "Load Earlier Messages" for hours trying to get back and look at them. Is there anyway I can upload the whole conversation on to my computer and read the entire conversation from the beginning?

    Yes.
    I use iBackupBot.

  • Can an InCopy editor add, remove and edit a text frame placed inside the main story text frame?

    I think I already know the answer to this which is - no. I'll explain why I am asking the question in a second, but the reason I think the simple answer is no is because - text frames are controlled by a designer in the layout file, an editor using incopy can only edit the text and images placed inside text frames, and so cannot resize them, add or delete them.
    Ok, so the reason I have asked this.
    Is there a way around this so that editors in incopy can edit certain types of text frame that are contained within the main text frame? I'm using these text frames to contain specific paragraph styles, giving them a boxed look and also with an anchored icon in the top left of the text frame depending on the type of paragraph it is. See screenshot as an example of a green text frame that I am using to contain paragraphs of type "tip".
    If it is not possible for editors in incopy to add, edit or resize these text frames (green tip frame in the example above), then how else can I style these paragraphs to give the same visual appearance, but without the use of wrapping them in a text frame?
    One (not so good) way around this is for the designer to add the text frames in the layout file after he gets the content back from the editor, then moving the "tip" paragraphs into these newly created text frames. However when the editor updates the content in incopy and gets these new text frames in their copy, they can not then delete them if they wish to, or if they add or reduce content inside of these green text frames then the frames dont grow to fit their edited content. So I dont think its a solution for the designer to control the adding, removing and resizing of these frames.
    UPDATE: I have just discovered that once a text frame has been placed into the document by the designer and the editor updates their copy in incopy-  they can then use the "Position Tool" to select that text frame - allowing them to resize it, or delete it! Fantastic. But would the editor be able to add these frames in themselves to begin with? Maybe have a document containing all of the objects available to them, copy and paste one of them into the main document and edit its content? Does anyone have any advice on how to go about this? Essentially I would like the editor to control the insertion, editing and removal of these inline text frames.

    True. But when all I am trying to achieve is a border around a paragraph, use of a table seems overkill to me. But if thats the only solution I have so far then I will have to go down that route.
    It would be useful to have an object libraries panel in InCopy so that editors can drag across predefined text frames into their doc via InCopy, but I cant see that option in InCopy. is there one? I have also thought about exporting the frames as seperate InDesign Snippets and saving them to an objects folder, then when an editor needs to insert one into their doc they simply use File > Place > "Choose required text frame snippet". However I have found that InCopy can't place InDesign snippets so that theory was a failure. Is there another format I could use to save the objects and bring them into InCopy? List below shows my findings so far for trying to save/export a text frame from InDesign and then import into InCopy:
    InDesign Snippet (.idms) - can't import into InCopy
    InDesign Document (.indd) - imports content as an image - only editable in InDesign
    InDesign Template (.indt) - imports content as an image - only editable in InDesign
    InDesign Library (.indl) - can't import into InCopy - no panel available in InCopy for object libraries (that I can see...)
    InCopy Markup (.icml) - only imports the text, loses the text frame

  • Apply Fill Color to Group Item with Applescript

    Is it possible to set the fill color of a group item using applescript and CS3? The group contains paths and text that have the same fill color with no strokes.I am able to select the group and delete it or move it (with applescript) but have had no success in setting the fill color.
    Thank you in advance for help on this question. And thanks for everything I have picked up from browsing.

    Now that I am addressing the path items and text items of the group separately I am having some success. Now I am having difficulty getting the correct terms for assigning a Spot Color to the file. Here is a piece of the script.
    This works:
    tell application "Adobe Illustrator"
    set openDoc to document 1
    set ftClr1 to (first group item whose note is "Front3") of openDoc
    set ftClr1Paths to path items of ftClr1
    repeat with thisPath in ftClr1Paths
    set fill color of thisPath to {red:255}
    end repeat
    set textFrames to text frames of ftClr1
    repeat with thistext in textFrames
    set fill color of every line of thistext to {red:255}
    end repeat
    end tell
    Need help to set the fill color to a Spot Color that already exists in Swatches.
    Thanks
    Nick

  • How can I recover accidentally deleted text messages?

    I accidentally deleted text message from a specific person in my phone.  Not sure how to recover from an earlier version of a back up?  Or if that's possible.  HELP!  I need these messages!

    Restore from a backup that was done before you deleted them.
    Otherwise they are gone.
    ~Lyssa

  • Can you connect differently tagged text frames?

    I have a one file document (no book) that I would like to have two columns on the first page and the Left/Right pages have one column with a side head. I would like the right column on the first page to flow into the second page.
    Is there a way to connect differently tagged text frames together so that, although their appearances are different, the text flows from one to the other?
    Thanks,
    Tim

    tkelly5446 wrote:
    I have a one file document (no book) that I would like to have two columns on the first page and the Left/Right pages have one column with a side head. I would like the right column on the first page to flow into the second page.
    Is there a way to connect differently tagged text frames together so that, although their appearances are different, the text flows from one to the other?
    Thanks,
    Tim
    You can manually connect text frames on body pages, or on master pages, that have the same flow tag. Search Google for "framemaker connect text frames" without quotes.
    For the text to flow automatically from one body-page text frame to a body-page text frame on another, and create new pages as needed, the text frames need to be on master pages, have the Autoconnect property turned on, and be in the same text flow. FrameMaker only applies Left and Right master pages (you get them if your document is set for facing page.) To apply custom master pages instead of Left and Right, you need to set up a mapping table on a reference page for use with the Apply Master Pages feature. Search Google for "framemaker apply master pages mapping table" without quotes.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

Maybe you are looking for

  • Call of Duty Atlas Pro pre-orderi​ng issues

    I've had some issues trying to pre-order the Atlas Pro edition of Call of Duty Advanced Warfare. I went in store to preorder it that edition and was told I couldn't that I would have to do it online. The woman looked on the online store and said it w

  • How to read a line of string?

    Hi, I am very new to java programming. Can anyone show me a method of a simple way to read a line of characters into a string? I look over the internet but all seems awfully complicated like easyReader..etc which you have to import more other classes

  • Wifi MAC authentication on ISE 1.3

    We are trying to configure ISE to authenticate wifi user through WLC using MAC address. ISE checks against internal endpoint identity store for authorized MAC address. We found that the first time a wifi device tries to connect (this MAC address has

  • Upgrade Release 11.5.10.2 to Release 12

    Hi All, I am planning to upgrade from 11.5.10.2 to R 12. Our current RDBMS version is 9.2.0.5. But we are having two application instances on same box that resides on same OS RHEL 3. So while the upgrade process we have to make changes in OS also. i

  • JavaFX progress bar with glow effect.

    I am hoping someone can help me with this issue. I recently followed James Clarke example of a progress bar with glow effect and it helped with developing a progress bar for an application I was working on. But now, with the JavaFX sdk 1.2 update, th