How specify style character to anchor markers of objects according to the formats of objects.

I have a long document contains many blocks of text anchored with custom positions and want to remove by applying character styles to their scorers.

Create a new character style to apply it. Change the character style name in this code to you, then run it.

main ();
function main (){
    app.findGrepPreferences = NothingEnum.NOTHING;
    app.findGrepPreferences.findWhat = "~a";
    var objectsArray = app.activeDocument.findGrep();
    for (var c = 0; c < objectsArray.length; c++) {
        if (objectsArray[c].textFrames.length > 0) //The anchored object is a text frame
        {
            var targetTextFrame = objectsArray[c].textFrames.item(0);
            var textFramePosition = targetTextFrame.anchoredObjectSettings.anchoredPosition;
            if (textFramePosition == AnchorPosition.ANCHORED) // the object have custom position
            {
                //Create a new charater style and change the character style name to yours.
                objectsArray[c].appliedCharacterStyle = app.activeDocument.characterStyles.itemByName("Delete");
            }
        }
    }
}

Then do a GREP search for this style of character and if you want to remove them while button any changes.

Tags: InDesign

Similar Questions

  • How to set values in a select list dynamically according to the user action

    Hello

    I'm new to Apex. With the help of Apex 4.0 on Oracle 10 g. In my page, I will have a list of selected countries. According to the user selection value I have to display the States / provinces of this country in another selection list. States have to fetch the state_list table and the province of province_list table.

    Can someone tell me how to do this.

    n advance thanks

    Hello
    LoV using cascading as detailed here http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_item.htm#HTMDB05014

    Kind regards

  • How to disable an element of contextual menu tree according to the clicked tree level

    Hello

    I have a tree with 3 levels. I've created a popup menu showing 4 menu items. Depending on which level of the tree is selected some menu options must be disabled or not shown. I was not able to understand this. The current behavior is that no matter what level I click on first determines the property disabled for all levels.

    With the help of 11.1.1.6
    Thank you
    Rudy

    Is the generation of a popup context menu?
    If check that content delivery is set to lazyUncached.
    How can you know what level has been clicked?
    How do you use this information in the context menu?

    Timo

  • How to add a text anchor point

    I just discovered the function of cross-references in InDesign, but I want my cross reference to point to the text anchor point but for the life of me I can't work out how to add a text anchor point.

    So how can you add an anchor to the text?

    Thank you.

    Highlight the text you want to be the anchor point. Open the hyperlinks Panel. In the Fisher panel choose the new Destination of the hyperlink, then the dialog box should appear with the anchor text and your highlighted text information. Click OK.

  • How to transfer frames to anchor graphics frames.

    Hi all

    Here's the old situation:

    • Many old documents where all the graphics are placed in frames not anchored "ordinary".
    • graphics are all scaled and positioned differently in executives

    New location:

    • new model, where all graphs should be placed in anchored frames

      Question: what is the fastest way to get all the graphics of old documents (free frames) in the new model anchored frames?

      I tried a number of things that DO not work:

      • graph of the copy of the original frame > try to paste into the anchored frame
      • incl. graphic. former executives of copy in the new document, then tried to drag the chart in the new framework
      • has looked for a way to change regular executives to the frames on some sort of menu, don't find.

      Do I really have to re-import, scaling and place each image individually?

      Hoping someone has a good idea what to do!

      Thank you!

      Cut the original graphic frame (image and all) and paste it into your text block.

      Place it where you want. I find and then create an object style when it is anchored and positioned to help.

      Continue to cut and paste the graphic images in the text frame and then apply the style and keep it going.

    • Page generated in DW CS4 - how to style for phones mobile/iphone

      Hello

      I develop the following site

      http://www.epproductions.co.UK/katebellingham

      I would like to know if I need to create a new style sheet for the site works well on an iphone?

      and how can I get the iphone to choose this style sheet? Should what settings I put in the CSS?

      Thanks in advance

      Mark

      This can become a bit complicated due to the different types of mobile devices.  For best results, build a separate mobile site - a version much simplified from your desktop site.  Then provide links to your main site for devices that can support.  Test on different devices web site.

      Build mobile Sites

      http://www.mobify.me/

      Generation iPhone, iTouch, iPad web sites & apps

      http://iWebKit.NET/

      http://Mashable.com/2009/11/26/mobile-Web-design/

      http://www.Noupe.com/how-tos/mobile-Web-design-tips-and-best-practices.html

      Or choose a liquid layout for desktop / laptop & iPhones

      http://matthewjamestaylor.com/blog/perfect-multi-column-liquid-layouts

      Nancy O.
      ALT-Web Design & Publishing
      Web | Graphics | Print | Media specialists
      http://ALT-Web.com/
      http://Twitter.com/ALTWEB
      http://ALT-Web.blogspot.com

    • How to style text editor Forum?

      Good then BC told me that there is no way to the style of the Forum text editor. I hope that im not describe this wrong, you know

      the module that allows users to type and write a post in the forum. Then without further ADO my site Web is mainly black

      This thing is basically completely white, I'm looking for a way to change the background color, but there is absolutely no way of

      style and with a style sheet or style tags. Another thing I'd like is the change in width. I was able to do all these things in the

      Google inspect / developer tools. Although there is no way for me to get these styles already predefined.

      Tag finds im trying to style

      forums page / post page! as {tag_editor}

      / * Here is a link to give visual effects * /.

      Business catalyst

      Things good and final, I wouldn't even mind using a 3rd party editor but if I can't fix that I could just put in a forum 3rd party service which I certainly don't want to do since it's practically over.

      Thank you very much for your time and reading this.

      Sincerely, Auzurial Prints

      Hey there,

      Simply you can not do anything with that. Forums are the old basic things, if you need an appropriate forum use a 3rd party domain and sub 10 years there.

    • How can I insert an anchor of reflow of edge?

      Hello

      All in my topic :-)

      So, if I can create an anchor, it will be visible in the window of link (near the State)?

      Ty for your answer

      Currently reflow doesn't have anchor points. But your method is correct, when we get them we certainly would allow them in the connection window. At the moment we allow just outside and the links on the page.

    • By using the contents of the character (not the format) in a variable?

      Hi, all you experts Frame.

      In Microsoft Word, you can create a header that contains the STYLEREF field, and "call" any text defined by any style, including character styles. Therefore, you can have a glossary with the term "set" with a character style and this allows to present the expression in the header of the document (re: type dictionary page headers). The advantage of this is that you can have a very simple layout for a glossary (no table, heads aside, etc.) and still have headers of type dictionary.

      In FrameMaker, it seems that you can't use a paragraph format in a variable that you use in the header of the document. Is this OK, or you can use a variable to "call" the content defined with a character format?

      For example, let's say I want a glossary which is formatted as follows:

      Terms in Glossary: a term that appears in the glossary. (when a character style, for example, GlossTerm, is used to make the term "BOLD", and the paragraph is a normal body.)

      Can I get the term in the page header using a variable (or any other simple method of FrameMaker)? If this isn't the case, then I will use a table w/para. format for term, but is not first choice of the customer.

      Please note that I don't want to enter into any debate on the merits of the FrameMaker vs Word. I just want to know if there is a simple solution to this framework.

      Thank you very much

      -Gloria Mc

      Alternatively, the contents of the <$marker1>and <$marker2>of the building blocks of the two markers h/f. You should always fill the markers. But, if the contents are already labeled with the character, and then using the find tag and saw the markers Panel open and set for header/footer $1 or $2 marker, the content would be automatically displayed in the markers Panel. All you have to do is to hit the "new marker" button to fill the marker at this stage. The entire process can be automated with framescript.

      The alternative (and the most typical way to do this in FM) is to change your current structure of the glossary and use paragraphs run-in, where your glossary term is in a paratag and the definition is located in another paratag.

    • How can I copy the format of a sentence or paragraph on another phrase or a paragraph?

      When I copy and paste a section of an article to another, I want to change the format of the section imported to accompany the rest of the article. In Outlook or MS customer, I would use the brush for this icon. How can I copy the format of a section in Thunderbird in another section?

      Thank you very much.

      I would like to use stationery to say my favorite styles, then use 'Paste without shaped' to allow the formatting that is currently in force to apply to the text pasted, not knowing everything already set the imported text. A weakness of Thunderbird in its native form, is that it tends to forget to insert your policy chosen by default etc.. The add-on stationery that heals by making your explicit requirement.

      Messages sent by users of Thunderbird often appear ugly serif text (IMHO), what is lacking Outlook, Thunderbird forgets to say that you have chosen a sans serif font when composing.

      Without stationery, all your efforts to align your text can come were reduced to nothingness.

    • I get all the time can not download anything 'Windows cannot access the specified device, path or file. You can't have the permissions to access the have__appropriate element. »

      Original title: problems cannot do anything

      Windows cannot access the specified device, path or file. You can't have__appropriate the permissions to access the item. I get it all the time can not download anything

      Hi birdylod,

      ·         What version of the operating system is installed on the computer?

      ·         You did changes to the computer before the show?

      ·         You use Internet Explorer? If so, what version are you using?

      ·         What files you download?

      Follow these methods.

      Method 1: Performs a search using the Microsoft safety scanner.

      http://www.Microsoft.com/security/scanner/en-us/default.aspx

      Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

      Method 2: Follow these steps:

      Step 1: Start the computer in safe mode with network and check if the problem persists.

      Startup options (including safe mode)

      http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

      Step 2: If the problem does not persist in safe mode with networking, perform a clean boot to see if there is a software conflict as the clean boot helps eliminate software conflicts.

      Note: After completing the steps in the clean boot troubleshooting, follow the link step 7 to return the computer to a Normal startupmode.

      Method 3: Scan the file system (CFS) auditor to repair corrupted files.

      How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

      http://support.Microsoft.com/kb/929833

      For reference:

      What to know before applying permissions to a file or folder

    • Windows cannot access the specified device, path or file. You can not have the appropriate permissions to access the item.

      Hello

      I recently changed to use AVG free Antivirus Vista 2010 edition and since then (next day) seems to be locked out almost everything on the computer other then IE.  Open any kind of .exe translates into "Windows cannot access the specified device, path or file. You don't have the appropriate permissions to access the item. "I can access the Control Panel, but when I try to run something (a user restore Sys account) nothing happens or I get the same error.  I can not even access/cmd?

      Operating system is vista 64 bit home premium
      Computer has 1 which is defined as administrator SP1
      Tried to do a restore of the system in normal mode and safe, the two will not start.

      I have a feeling I know what the problem is, that when you look at the properties > Security "Progam files" in the 5 groupnames user administrator has not enabled in the lower area of permissions?  Guess a virus has locked all accounts to use the machine key files? (When editing and allowing the admin to have full control etc. in written authorization, I get an "access denied" Message.)  Be honest this really problems out of my PC knowledge, I would usually just reformat if I hit I can't solve a problem, but this time reformating is not the best option.

      Thanks in advance for any help, I would really appreciate it, it left me speechless!

      PS. read through the similar questions and have used the "fix windows' programs, with nothing working or me being not able to access something used.

      Hi Dany88,

      First of all, I would say that you uninstall security antivirus vista 2010 of computer software, since there are several questions on the computer after installing. This software may have created conflicts between other programs on the computer.

      As you face problems to access items from 'Control panel', I would say you visit the security software vendor's Web site and search a tool of suppression using which you can uninstall the software.

      Important: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.

      If questions are set after uninstalling security software, I suggest that you change the security antivirus vista to some else software or contact the vendor of the software for more information.

      I would also say that you are investigating the computer by using the methods mentioned in the link below.
       
      How to get rid of malware or viruses
      http://social.answers.Microsoft.com/forums/en-us/vistasecurity/thread/ba80504b-61f1-4D71-960f-b561798b7b42

      See the link below to find out how to start in safe mode.
      Start your computer in safe mode
      http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

      I hope this helps!

      Halima S - Microsoft technical support.
      Visit our Microsoft answers feedback Forum and let us know what you think.

    • specify the format of the cross-reference in read/write rules?

      How can I specify a cross-reference in the rules format of reading/with import xml document?

      Gary,

      If you want all occurrences of the xref element to use the same format, you can specify the format of an InitialObjectFormat rule in ESD or use a rule r/w in the form:

      element 'figref.

      {

      is part of fm of reference;

      format FM property reference value is "Figure."

      }

      If you want to use different formats and have a particular element to specify that one, you can set an attribute whose value is the name of format with a rule like:

      "xref" element

      {

      is part of fm of reference;

      attribute ' xref-fmt' is the formula of property reference fm;

      }

      In fact, if your DTD defines an attribute called 'format', default FM it uses for this purpose.

      -Lynne

    • How to keep the format setting when generating a table of contents

      Hello

      I have a superscript® in a title in a document that should be put in the Table of contents. When I generate the table of contents, I can't keep the format in the table of contents.

      I could cheat and manually change the, but there must be a way that remains with these properties whenever I have to regenerate the table of contents.

      No idea how?

      Kind regards.

      What version of FM?

      What the police?

      There are two separate issues here:

      1. If you are super as a character Format in the files of body, the format must be in character for the OCD catalogue, or the formatting is not applied.
      2. If you do this and get it display correctly in the table of contents, which will break the hyperlink linking it.

      The solution is usually to do great as characters of Unicode natively by exposing and not the character Formats.

      See: TOC link with a character index does not in PDF format

    • When installing an Adobe Pro first, how much amount of data is downloaded (or) what would be the size of the bet up the file. Kindly help out me

      When installing an Adobe Pro first, how much amount of data is downloaded (or) what would be the size of the bet up the file. Kindly help out me

      You have not specified a version, so here is a list of various for Windows...

      Adobe - Premiere Pro: For Windows

    Maybe you are looking for