How to specify character style to anchored objects markers depending on the objects formats?

I have a long document contains much of anchored text frames with custom positions and want to delete them by aplying character styles to their markers.

Create a new character style to apply it. And change the character style name in this code to yours, then execute 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 make a GREP search for this character style, and if you want delete them all by Change All button.

Similar Messages

  • REP-1070 Object not found in the object store ...

    When trying to open an report file (.rdf) in Reports 6 it won't open. I get the error REP-1070 Error while saving or opening ... Object not found in the object store.
    I know that in the report there is an OLE object, is that the problem? How can I save the source code when I can't open the file?
    Please help!
    /Linda

    Hi vdha,
    Try this..
    Get the user account under which the host instance for the send port is configured.
    Log-off from your server. Log back in using the service account. The account which is been used in the host instance.
    Go to MMC..Select “My User Account” as opposed to “Computer account” as you did.
    The import the certificate under “Personal “ folder and “Trusted Root Certification Authorities ”
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How to use character styles in the Find/Change JavaScripts?

    First, good luck to Ole. He's been so helpful (and such a good writer, too). All the best!
    My Find/Change JavaScripts are running into trouble at line 159 of the ExtendScript Toolkit. The script is searching for a particular font, to which it should then apply a character style. I'm using the format I see in Adobe's "FindChangeList" sample text, but the script is still hitting a wall. What am I doing wrong? I'd like to have a working method for searching, not only for fonts, but also for finding a particular character or paragraph style and then applying a new style.
    Simple stuff, but I'm roadblocked.
    Here is the script so far:
    //This script applies the DFKai character style to the Arial Unicode font.
    text {findWhat:"", appliedFont:"Arial Unicode MS", fontStyle:"Regular"} {appliedCharacterStyle:"DFKai"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find Unicode font; change to DFKai character style.
    Thanks for your help!
    Gary Niemeier

    You are absolutely correct. I don't know how those spaces got there! I copied the text from the "FindChangeList.txt" document, but somewhere along the way, a software program "helpfully" added the spaces. (Rest assured, it wasn't copied from AppleScript. I stick with JavaScript.) Anyway, the script now runs like a charm.
    My thanks to you! Another "newbie" mistake easily spotted, eh?
    One thing, though, if Adobe is reading this: please flesh out the "FindChangeList.txt" file for those who are not programmers/scripters. I'm just a normal InDesign user, and I really need examples of basic syntax in order to use the "Find/Change" script correctly. I'm referring to the syntax involved with finding or changing text with a certain character or paragraph style. I often search for styles, and those properties should be provided in the help file. A couple of samples are all that's needed. (I did read through the JavaScript reference guide provided by Adobe, and even in the "Find/Change" section, it did not provide this information!). Furthermore, I often search text for a specific font. Why isn't this syntax included as well? It would easy to do and would save users a lot of fumbling around.
    Thanks again, all the best.

  • How can we provide suggestions/feedback to MS for improvements to the object model interfaces for Transport Agents?

    Having worked on TA's for a while now we've found there are several things missing in the object model for our requirements. Consequently we have some horrible code that need to do some things directly either with MIME or TNEF - which is a crying
    shame as MS must have all the code to do the things we need anyway, it's just that the object model is deficient.
    It'd be useful if there were an Exchange category on MS Connect where we could submit our suggestions, but as far as I can see, there isn't one.
    So, where do the Exchange TA developers get to hear customer feedback?

    Hello David,
    Sorry for not getting back to you sooner. You can provide feedback on Transport agents by using this site:
    http://officespdev.uservoice.com/.
    With regards,
    Michael | Microsoft Exchange Developer Content
    The
    Exchange Development Forum Guide has useful information for using the Exchange Development Forum.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • OBJECT SKIPPED while transporting the objects from DEV to QA.

    Hi All,
    While transporting the objects to Quality, I'm getting a warning saying Objects are skipped.
    Can anyone please explain how to get rid of this error? We are facing this issue almost for all the transports which we are moving and the objects do not get transported to the next environment. We have to ask BASIS to use overwrite functionality while transporting to fix this each and every time we face an error.
    If any SAP notes are available then please share it to me.
    Thanks in Advance.

    Hi Srikanth,
    Objects of the selected object types exist in your system as changeable even if this system is globally set to not changeable. As a result, these objects are no longer connected to the transport system. 
    check here........
    http://help.sap.com/saphelp_nw04/helpdata/en/0e/a7343e8c7f6329e10000000a114084/content.htm
    for this try contact basis team.
    Thanks,
    Vijay.

  • Object Visualization and accessing the object's attributes

    Hi all,
    I am trying to configure SWFVISU to allow us to call an ABAP Web Dynpro which displays an adhoc object attached to a workflow in the UWL.
    I've had success with a business object of a task which is not an adhoc object by binding an attribute to the task container and creating a custom attribute in the UWL.  However this is not possible with Adhoc Objects as there could be 0..n objects at runtime.
    I've seen plenty of threads that refer to using ${item.externalObjectId} as part of the visualization parameters, ie in Visualization Parameters:
    APPLICATION     FMCA_WDY_FPF
    DYNPARAM                          WDCONFIGURATIONID=FMCA_WDY_FPF_CONF&RETURN_ID=${item.externalObjectId}
    NAMESPACE                          sap
    SYSTEM_ALIAS     SAP_ERP_Public_Sector
    however in this case the attribute we need access to is an attribute to the Object Class, not the Work Item.
    Is there any other variable substitution we can use in the Object Visualization to reference an attribute of the Object Class itself?
    Thanks in advance
    Alex

    Hi,
    Please visit the below link. This might help you.
    http://weblogs.sdn.sap.com/cs/blank/view/wlg/20379
    Thanks and regards,
    SNJY

  • Object referred to by the object key, does not exist

    I am trying to create a transport request for an Item Catagory & get the following error message :
    Object R3TR TABU TVAPT, referred to by the object key, does not exist                                                                               
    Message no. TR600                                                                               
    Diagnosis            
        The object keys of the request/task cannot be edited because the object R3TR TABU TVAPT) which is referenced by the object key is not in the request, nor is it going to be added to the request.                                                                               
    System Response
        The function terminates.                                                                               
    Procedure                   
        If the error occurs in an application transaction, extend the missing object entry in the Transport organizer (SE09). If the error occurs again, contact the application hotline.

    Hi Nitin,
    Please check this SAP Note <b>90799</b>.
    Perhaps it will help.
    Regards,
    Ferry Lianto

  • How do I convert muesic Videos in to 3gpp? Is the only format the ipod will take

    How do I change Muesic Videos to 3PGG formar as is the only way I could synk them into my IPod

    There is both phone and chat support at the link I posted earlier:
    But anyway, if you want your money back you need to cancel your subscription: http://helpx.adobe.com/x-productkb/policy-pricing/cancel-subscription-acrobat-online-servi ces.html

  • How to adjust placement of two tables in webi depending on the rows selection

    Hi,
    I have a webi which has two tables. The prompts are on dates. As per requirement sometimes user selects one date or sometimes a range of dates.
    When One date is selected it works fine but when multiple dates are selected tables overlap each other. I can not place them side by side.
    Any idea how can I adjust?
    Regards
    Prashant

    Create two different section for each table in the report to avoid overlapping.
    For example :
    Section 1 - > table 1
    Section 2 -> table 2
    Regards,
    Pranay

  • Interactive form as  Callable object error on testing the object.

    Hello experts,
    I am trying to use a adobe interactive form as a callable object in guided procedure and when I do the testing the error I am getting is:
    "Callable object implementation did not return output parameters"
    Result: Technical exception
    Details: Service call exception; nested exception is:
    java.net.UnknownHostException: pwdf3102: Service call exception; nested exception is:
    java.net.UnknownHostException: pwdf3102: Service call exception; nested exception is:
    java.net.UnknownHostException: pwdf3102
    I did check all the configuration setting and everything seems to be all right.
    Appreciate any suggestions.
    Muthu Sundarresan.

    There should be default entry like
    127.0.0.1       localhost.   
    Make an entry below that with your ip address and the hostname.   Reward some points pls.

  • Increase distance between objects w/o resizing the objects

    Is it posible to increase distance between objects in illustrator cs3 without resizing the individual objects?
    For example, I have a series of circles separated from one another by about 20 pixels, aligned into a grid-like formation.  I would like to increase or decrease the distance of the circles from one another, without changing the size of the circles themselves.
    Thanks,
    Regina

    As Chris said, use the Distribute functions of the Align Palette. Assume a 5 x 5 array of circles separated by 20 points in each direction. You now want the array spacing to be 30 points.
    1. Black Pointer: drag a marquee selection across the top row of 5. Then click once on the leftmost one.
    2. Align Palette: Show Options. In the distance field of the Distribute area, enter 30. Click the Distribute Horiizontally button.
    3. Select and group each of the other four rows.
    4. Select the four rows and one of the top row's circles. Click once again on the selected top row circle.
    5. Align Palette: Make sure the 30 value is still there. Click the Distribute Vertically button.
    JET

  • How to skip 3 chars when use "scanf from string" by the parameter "format string" ?

    hi, I want to read a num 123 from the string like that "sfg123" "fgd123" "ghj123"
    I know that I can use "%3s" to skip 3 chars, but it will add an output to "scanf from string"
    So, how to use parameter "format string" not only to skip 3 chars, but also add no output to the "scanf from string"
    Solved!
    Go to Solution.
    Attachments:
    1.JPG ‏15 KB

    Hi Chenyin,
    Try this VI....
    I think... This is what you are expecting....
    <<Kudos are welcome>>
    ELECTRO SAM
    For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
    - John 3:16

  • How to make text elements flow to next page depending on the table above it in main window (smart forms)

    Hi all,
    In my main window i have a table that contains line item data.
    Just below that i need to display text elemet (some text and terms & conditions).
    as below
    Based on the items in table, it should flow to next page. But it is not happening. rather the data which do not fit into first page gets deleted.
    Please help to solve this. Its urgent.
    Thanks in advance

    Hi Rashmi,
    please drop these texts from your table footer (i hope you have put into footer of your table), just create a template after your table and  put your all these data within this template and make sure that your this
    template should be called after your tables data get displayed.
    Or you can create a text , after your table where you put your data, and it should get displayed when the line items ends for your table.

  • How to set first column as date (dd/mm/yyyy) in the specific format in excel

    hi need help wat i did need help is tht i need wen ever i send view a excel data  the first column set to date  but some times wen i view in different type of pc the date format change to mm/dd/yyyy. is  thr any way i can set the format?

    If you just need to reformat a correct date to show up as dd/mm/yyyy, just use the "Format Cells" command and set a custom format string to exactly that. If, on the other hand, you are finding that Excel just doesn't get that the first value is a DAY, not a month, such as trying to graph a temperature data logger that records data in dd/mm/yyyy:
    Reformat the strings as dd/mm/yyyy, using the first method. This will make them LOOK correct, even though the actual date VALUES are still day-month inverted. Now save the table as a .CSV file. This will save the dates as plain text in the correct order, which you can then re-import and have Excel now read the correct date value.
    Ryan R.
    R&D

  • CS5: Hyperlink to text anchor from character style?

    Is it possible to script the following:
    A text has several occurances of the same string, e.g. 'A10'. One is marked with a character style 'Anchor' and the others are marked with a character style 'Link'. The idea is to create text anchors from the 'Anchor' style and then find every occurrence of the character style 'Link' and create a hyperlink to the matching anchor.
    I've managed to find a script that creates text anchors from a character style 'Anchor'. Can someone offer some suggestions on how to do script creating the links?
    // Written by Kasyan Servetsky
    // March 13, 2011
    // http://www.kasyan.ho.com.ua
    // e-mail: [email protected]
    //======================================================================================== =================================
    if (app.documents.length == 0) ErrorExit("Please open a document and try again.");
    const gScriptName = "Create Text Anchors";
    const gScriptVersion = "1.0";
    var gDoc = app.activeDocument;
    if (!gDoc.characterStyles.item("Anchor").isValid) ErrorExit("Character style \"Anchor\" doesn't exist.");
    CreateDestinations();
    //======================================================== FUNCTIONS  =====================================================
    function CreateDestinations() {
        app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
        app.findGrepPreferences.findWhat = ".+";
        app.findGrepPreferences.appliedCharacterStyle = gDoc.characterStyles.item("Anchor");
        var finds = gDoc.findGrep();
        var destCounter = 0;
        for ( var j = finds.length-1; j >= 0; j-- ) {
            var found = finds[j];
            try {
                if (!gDoc.hyperlinkTextDestinations.itemByName(found.contents).isValid) {
                    var hypTextDest = gDoc.hyperlinkTextDestinations.add(found);
                    hypTextDest.name = found.contents;
                    destCounter++;
            catch(e) {}
        if (destCounter == 0) {
            alert("No text anchors have been created.", gScriptName + " - " + gScriptVersion);
        else if (destCounter == 1) {
            alert("One text anchor has been created.", gScriptName + " - " + gScriptVersion);
        else if (destCounter > 1) {
            alert(destCounter  + " text anchors have been created.", gScriptName + " - " + gScriptVersion);
    function ErrorExit(error, icon) {
        alert(error, gScriptName + " - " + gScriptVersion, icon);
        exit();

    Hi,
    The way is:
    create hyperlinkTextDestination;
    create hyperlinkTextSources;
    create hyperlinks using one destination and various sources;
    so:
    // to create hyperlinks alike:    one destination==>many sources
    // destination is the 1st occurrence of text with charStyle "anchor" applied
    // sources are each occurrences of text with charStyle "link" applied
    var mDoc = app.activeDocument;
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedCharacterStyle = mDoc.characterStyles.item("anchor");
    var
         mAnchor = mDoc.findText()[0],
         mDest;
    if (mAnchor) mDest = mDoc.hyperlinkTextDestinations.add(mAnchor,{name: mAnchor.words[0].contents});
    else {alert ("no anchor found"); exit(); }
    app.findTextPreferences.appliedCharacterStyle = mDoc.characterStyles.item("link");
    var
         mSource = mDoc.findText(),
         len = mSource.length,
         currSource, currHyper;
    if (!len) {alert ("no link found"); exit(); }
    while (len-->0) {
         currSource = mDoc.hyperlinkTextSources.add(mSource[len],{name: "sourceLink_" + len});
         currHyper = mDoc.hyperlinks.add(currSource, mDest, {name: "mHyperlink_" + mDest.name + "_" + len});
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    Jarek

Maybe you are looking for

  • My computer will charge my iPhone, but won't recognize or sync it?

    My iPhone 4S was working perfectly fine, but now my laptop suddenly won't recognize it! This all started after I bought a new charger for my laptop. My other one quit working, so I bought a replacement, and now I'm having this problem. I'm not sure i

  • Setting maximum amount to print cheque using transaction F-58

    Dear SAP Colleagues We have a requiement to set the maximum amount of $25M cheque to post and print when using transaction F-58.  We have set all our payment terms to have this maximum amount.  However the user can still use the transaction F-58 with

  • Displaying a Splash Screen

    Hi: I have an application which takes sometime to load and decided to display a splash screen. The splash screen is a simple JFrame with a JPanel within. The splash screen is displaying but it�s not being painted at all. A grey box with the splash sc

  • Ship to address in SC

    Hi, can any one say if it's possible to enter the ship to address other than maintained in system. we are on SRM 5.0. when any other adreess details are entered in the name field and any other fields in the ship-to details, system message Partner SHI

  • Box for view only/non-updateable fields

    How can I create a box for a column in JHeadstart that is marked as non-updateable (Update Allowed = false)? I have tried some code in the Additional Properties but have not been able to find the mix. Using disable will put a box, but it dims both th