Remove frames of related texts that has the same content

Hi Forum,

I have this script, this will remove all the textFrame which contained © LW...

There are several managers of related texts which contained © LW.

I want to keep a block of text that has content © LW in it.and remove all others textFrame which contained © LW.

myDoc var = app.activeDocument;

var myPageItems = myDoc.allPageItems;

for (var i = 0; i < myPageItems.length; i ++) {}

App.Select (myPageItems [i]);

mySel var = app.selection [0];

var Cont = app.selection.contents;

try {}

mySel.locked = false;

} catch (e) {};

If (mySel.constructor.name == "TextFrame") {}

If (mySel.contents == "© LW") {}

try {}

If (mySel.contents > 1) {}

mySel.remove ();

}

} catch (e) {};

}

App.Selection = null;

}

}

Thank you...

myDoc var = app.activeDocument;

ignore the var = true;

var allFrames = myDoc.allPageItems;

While (t = allFrames.pop ()) {}

If (t instanceof TextFrame & t.contents == "© LW" & jumping == false) {}

t.Locked = false;

t.Remove ();

}

Else if (t instanceof TextFrame & t.contents == "© LW" & skip == true) {}

jumping = false;

}

}

Tags: InDesign

Similar Questions

  • How to set up two different sites with a section that has the same content?

    I have two sister sites, each a separate but related Department in a hospital. Each of these Web sites, I have a main tab called library, which has about 30 pages it contains for related health issues. The library is the exact same content on each site, but the main navigation and the header of the site is obviously different. I have been maintaining this same content on both sites (if something is changed, then I must do it twice). It is not effective, and I would like to find a way to combine them somehow. I don't have a ton of experience, but I catch pretty quickly and I basically need ideas for the best way to handle this. I considered creating a third-party site, and the Library tab on each of the other sites would take you to this new site. I also wondered if there is a way to integration of duplicate content to two different pages (perhaps with an iframe). In this way I would update the original file, and it would be updated on both sites.

    The sites also have different sizes. It is 960 pixels wide and the other is 690 because it has a sidebar that makes it smaller. How would you recommend all that I manage that? I use Dreamweaver CS6 and my pages are all HTML

    Because the sites are on separate areas, I'm not sure you can use set includes in this situation.

    Iframes would be the way to go. You just save the content iframe on one of your sites and link page to two pages.

  • Synchronize the folder removes the PNG files if there is a JPG file that has the same file name

    I often use the folder to synchronize and noticed that he tries to delete my PNG file if there is a JPG file that has the same file name. There is no problem with their import, Assembly, etc...

    The only solution is to disable the ' Remove missing photos in the catalog "on the prompt window synchronize folder so it does not remove it catalog.

    I have the latest version of Lightroom for Windows (v5.6) but it happened in previous versions on both Mac and PC.

    If someone has noticed this?

    -Pete

    "Treat the RAW + JPG as separate folders" enabled or not in preferences?

  • How can I move the outlook express emails from an XP PC to an another XP PC that has the same e-mail address without overwriting existing messages on this second PC?

    How can I move the outlook express emails from an XP PC to an another XP PC that has the same e-mail address without overwriting existing messages on this second PC?

    I need to group together all messages from e-mail in a PC and to retire the first PC.

    This could be problematic. I guess or OE is over? This would make it easy.
     
    One thing you could do requires some manual work, but much less removal of dupes. For example, the Inbox. In the machine, you are going to scrap, create a new folder and move all messages in your Inbox to it. After you import on the other machine, you can drag the messages you need this folder in the Inbox, and then remove the user created the folder.
     
    And then there are tools to remove the dupes. This one for example.
     

     
     
  • An encyclopedia of DVD that has the same appearance as Encarta.

    Original title: equivalent of Encarta?

    I was disappointed in Britannica. Narrow, not easy to see or read, dull graphics.

    I believe that Encarta is inspired, the equivalent of, another popular encyclopedia. Of maybe Compton?

    I hope that a fellow fan of Encarta may suggest a DVD encyclopedia that has the same appearance as Encarta.

    Bing and Google will show that the Britannica is the only one left. Bing and Google also make a much better and more current still reference...

  • Configure replication vSphere fails - there is a virtual machine that has the same UUID instance than the one you are trying to configure

    Hi all


    My colleague was trying to extend a hard disk of a server 2008R2 who (1) had a snapshot and (2) was being replicated. The operation has failed and they took the snapshot replication can be stopped. Long story short when I got to him, the server could not be configured for replication and could not extend the disk and a vMotion failed.

    Looking at the files of the VM on the data store and the VMs .vmx file we have all the characteristics of a virtual machine always configured for replication of vSphere. If you try to configure replication vSphere causes an instant error "vsphere replication does not support change the length of a replicated disk. After a few changes I can reconfigure vSphere new replication, however, when the wizard has finished, I get a new error message (see below):

    "Try to set up vSphere that replication has failed for the VM"name vm"during the creation of groups"vm". There is a virtual "vm-name" machine that has the same instance UUID ' UUID of the Virtual Machine "that you want to configure. The existing vSphere of replication is configured for site protection.

    A possible solution would be to reset the database embedded VRMS our DR as suggested here VR configure replication after losing a VC site server but I was wondering if there is another solution? I have not reset the database of VRM before and cannot find a document that tells exactly what to do. I guess I need to stop all the rehearsals before resetting the database?

    See you soon,.

    Dean

    Hello

    There is no need to reset the VRMS database.

    If you know the value GID... an orphan replication, you can use the CROWD VRMS (https://vrms_address:8043/mob/?moid=GID-...&vmodl=1) to call the destroy method - it is eliminating simple replication to the site of the source or the target.

    If you don't know the GID... value, it can be found of VRMS DB or log files. Please file an SR for assistance.

    This procedure is already documented in internal KB articles and help using VMware support:

    KB article internal 2056086, section "cannot replicate virtual machine as there is another virtual machine with the same UUID instance"

    and also internal KB article 2060751.

    The admin guide section will be updated as it is confusing right now by suggesting only to reset the DB.

    Kind regards

    Martin

  • Need new screen for Satellite A85: laptop that has the same screen 15 ''?

    Looking for a new screen for this laptop and I was wondering what laptops use the same screen or the screen that fits?

    Fit the toshiba a30 screen? or should it be a 15 xga screen? There is a standard 30? will also be an adjustment of lcd a60? and if it would be an a60 housing also correspond to the screen? help please?

    required screen really, just need standard tft works ok?

    Hello

    Satellite A85 is unknown to me but to my knowledge the A30 has been delivered in different views:
    15.0 inch, screen SXGA 1400 × 1050 pixels.
    15.0 inch XGA, 1024 × 768 screen pixels

    I think that this view could be compatible with the A85, but maybe the display resolution is a little different.

  • Transform a string that displays hex data in normal format, in a string that has the same data in hexadecimal format

    I have a string of arbitrary length - say, 1AB1C0 - normal format. I would like to have a function that takes this string in and generates the same accurate, but in hexadecimal characters. If the entry will read 1AB1C0 in the normal string format, and the output will read 1AB1C0 as a hexadecimal string.

    I'm doing this because I found that the terminal works better if I send the bytes string hexadecimal vs as an array of U8. Furthermore, I handle a lot of byte stream in my program and I find the chain tools less cumbersome to use against the array of bytes to analysis of analysis tools - however, they operate only on strings as they appear in normal mode. So I have reasons in different parts of my program to have the channel under conditions normal vs formats hexadecimal; but I can't understand anyway elegant remotely to cast from one to the other.

    CraigRem wrote:

    If the entry will read 1AB1C0 in the normal string format, and the output will read 1AB1C0 as a hexadecimal string.

    Well, you must sweep the bytes of the string formatting hexagonal two at a time for a digital U8 and then cast to a string. There are several ways to do it, here are the two possibilities. (Sure to use the correct representation as Mkae labels).

    (I still don't understand your reasoning why you need).

  • Can I use a premium windows installation disc 7 that is for PC reconditioned refurbished Windows xp computer that has the same 32-bit?

    I have a Windows XP Professional and windows7 home premium which are the two renovated 32-bit PCs with installation disks... I want to install Windows 7 on Windows XP computer then tell me:

    Is this possible and if that is the case, what is acquired to make it work properly?

    Unfortunately no, you can't.

    The OEM of Windows 7 versions are identical to the versions commercial full license with the following exception:

    -OEM versions don't offer any free direct support from Microsoft technical support Microsoft

    -OEM Licenses are tied to the computer first you install and activate it on

    -OEM versions allow all hardware upgrades except for an upgrade to a different model motherboard

    -OEM versions does not move directly from an older Windows operating system

    What is OEM software? :

    http://support.Microsoft.com/GP/oemsupport_1/en-GB

    Licensing FAQ:

    http://www.Microsoft.com/OEM/en/licensing/sblicensing/pages/licensing_faq.aspx

  • CS6 Master Collection trial has the same content as the DVD?

    I installed CS6 Master Collection from the trial download, and my records have arrived. Is the trial exactly the same as what is provided on the DVD, or should I do another install because the DVD contain additional resources? Thank you.

    Yes. The trial is fully functional and complete in all respects.

  • Hi there is a box keeps coming up saying that another computer has the same IP as mine? What does that mean. ??

    A box is constantly on my computer screen saying that another computer has the same IP as mine and I need to contact windows for help.  What this means please.

    Thank you Michelle.

    The error means exactly what it says: there is another PC on your LAN that has the same IP as the PC you are using.  If you're in a work environment, speak to your personal network.

  • How can I do a vi that has the letters of a text

    Please help me, I do a vi that has the letters of a text I give in a string. I tell him what letter back from the text. I'm using labview 6

    As LV6 missing probably the find and replace String cleverly, you can always do:

  • I tried to buy my book - DEFAULT TEXT - your book seems to have default text that has not been modified. Printed books will not include this text. This means all my text will not print?

    Using OSX El captain on a desktop iMac. iPhoto 9.6.1

    I tried to buy my book - this box appears - TEXT by DEFAULT - your book seems to have default text that has not been modified. Printed books will not include this text. Does this mean that all my text will not print?

    I've been twice now and change the text of Bradley Hand to the Blackboard to Helvetica Neue - which seemed to be the default. Message remains displayed. I don't know what else to do. This is my third book over the years, but the first with this problem. Can someone advise please?

    Thank you Davina

    It is not a problem of fonts. It is the problem of the sample text entered by the models.

    The error message means that there is a text field in your book which is still on show at the text included by the model, and you will need to replace this text with your text. This textfield might be hidden behind a picture.

    If you create a preview of the book, such default text is omitted. Have you compared the preview of what you see in iPhoto? Text that shows in iPhoto, but not in the preview will be such default text.

    For example, the section 'Topic of this book' on the flap back in some themes is a default text that should be replaced by your own legend:

  • I got a CD with a file that has the extension .mdb. What are my options to open and view this file? Secondly, the recommendation for pc virus protection?

    I have a HP with Windows Vista Premium installed.  I got a CD with a file that has the extension .mdb.   What are my options to open and view this file?    There is a second file on the disk with an extension .ldb.   What kind of file is it?

    Second, the recommendations that you offer for pc virus protection?   My coverage of Trend Micro systems allows access to the Explorer after I disable add ons... while I am limited with respect to the capabilities of the computer.

    Thank you!

    .Mdb and .ldb file extensions are used by the Microsoft Access database program. .mdb is a .ldb file is a lock file. You may be able to consult the data base with Access runtime, downloadable here:

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=d9ae78d9-9DC6-4b38-9fa6-2c745a175aed&displaylang=en

    For an antivirus that doesn't interfere too much, try Microsoft Security Essentials:http://www.microsoft.com/security_essentials/?mkt=en-us . Ensure that anti-virus programs are completely removed, with vendors removal tool, preferably before installation.

  • Data store 'datastore1' is in conflict with a store of data that exists in the data center which has the same URL (.), but is back different physical storage

    Hello

    I am new to vCenter Server, so you can assume that I'm missing something obvious.

    I installed vCenter Server 5.5 and one of the two hosts of re-usable ESXi 5.0.0 connected correctly. When I try to connect to the second 5.0.0 ESXi host, I get the error message:

    Data store 'datastore1' is in conflict with a store of data that exists in the data center which has the same URL (.), but is supported by different physical storage

    I Googled it and found what I think are the best answers that are successful, but they all seem pretty unique in their situation (they have a cluster, I do not have) etc. Some solutions involve disconnecting the store of data and reconstruction of things. I would not make things worse and can live without doubt with the help of vSphere client (and not the web client) until maybe I can start again with a 5.5 installation to a new host once I have back up everything from the host unconnectable. I closed all the VM on the host of the second. I have put in maintenance mode. I've renamed the data store, all to nothing does not.

    Thanks in advance

    The problem is that a whole army could not be connected to vCenter due to the problem, the solution involving disconnection of the host apply.

    Here is how I solved the problem:

    1 use the client vSphere client heavy, connect you to the host that cannot not be connected to vCenter Server.

    2. click on the host computer, and then click the Configuration tab.

    3. click on "storage".

    4. find the offending on the right data store.

    5. right click on the data store incriminated and click 'remove '.

    6. click on 'Add storage' in the top right.

    7. follow the steps to find this data not mounted store. I gave him a new name just to be sure, even if it's probably not necessary.

Maybe you are looking for

  • This email is legitimate? Just got an email from Firefox "verify your account of Firefox.

    Welcome!Please activate your account by confirming the email address. Otherwise:https://accounts.firefox.com/v1/verify_email?uid=bffd94f5a8be4c7bb6b9f5b11fc94ac0 & code = 188d15706def4780cdcefbb7daa29361 & service = syncIt is an e-mail automated; If

  • Program unknown post guard inserting himself as a default

    Recently, my Apple mail program was not successfully recover mail and I found that, in Mail preferences, the default drive has been activated to something I had never seen before. There's a flag wavy Windows Search icon, then a series of letters, num

  • Satellite L750 there internal voice modem?

    Satellite L750 Hello Manual instruction speaks an internal voice modem. The L750 has this modem and if so how do I enter it? Thank you

  • Deleted status bar

    Somehow I deleted my my happenings icons and status bar. Anyway is to return these?

  • undefined solder pads by party mask?

    I know in UB gerberas can be exported with expanded solder mask openings. In some models, there are parts to solder masks that must be opened for the pads of solder mask is not defined, as well as the parts that don't want the open soldermask, or may