Can't replace a text in InCopy

I am trying to replace a text with another text in an InCopy story using:
iTextModelCmds->ReplaceCmd
The parameters seem to be OK, as it works with the same parameters in InDesign, but I always get NULL for ReplaceCmd (I have no problem getting the ITextModelCmds interface).
I should be able to replace a text in InCopy. Any ideas why I can't do this? Might it be locked somehow?

You have to use the text touchup tool (there is a new name like text edit tool in AA X) to edit such text. It sounds like you are using the typewriter tool or something like it. Text editing in Acrobat is not for the weak at heart. It can be very frustrating and is not recommended except for very minor changes. If at all possible, you should edit the original and just recreate the PDF.

Similar Messages

  • How Can I replace newScale Text Strings with Custom Values?

    How Can I replace newScale Text Strings with Custom Values?
    How can I replace newScale text strings with custom values?
    All  newScale text is customizable. Follow the procedure below to change the  value of any text string that appears in RequestCenter online pages.
    Procedure
    1. Find out the String ID of the text string you would like to overwrite by turning on the String ID display:
    a) Navigate to the RequestCenter.ear/config directory.
    b) Open the newscale.properties file and add the following name-value pair at the end of the file:res.format=2
    c) Save the file.
    d) Repeat steps b and c for the RmiConfig.prop and RequestCenter.prop files.
    e) Stop and restart the RequestCenter service.
    f) Log  in to RequestCenter and browse to the page that has the text you want  to overwrite. In front of the text you will now see the String ID.
    g) Note down the String ID's you want to change.
    2. Navigate to the directory: /RequestCenter.ear/RequestCenter.war/WEB-INF/classes/com/newscale/bfw.
    3. Create the following sub-directory: res/resources
    4. Create the following empty text files in the directory you just created:
    RequestCenter_0.properties
    RequestCenter_1.properties
    RequestCenter_2.properties
    RequestCenter_3.properties
    RequestCenter_4.properties
    RequestCenter_5.properties
    RequestCenter_6.properties
    RequestCenter_7.properties
    5. Add the custom text strings to the appropriate  RequestCenter_<Number>.properties file in the following manner  (name-value pair) StringID=YourCustomTextString
    Example: The StringID for "Available Work" in ServiceManager is 699.
    If you wanted to change "Available Work" to "General Inbox", you  would add the following line to the RequestCenter_0.properties file
         699=General Inbox
    Strings are divided into the following files, based on their numeric ID:
    Strings are divided into the following files, based on their numeric ID:
    String ID  File Name
    0 to 999 -> RequestCenter_0.properties
    1000 to 1999 -> RequestCenter_1.properties
    2000 to 2999 -> RequestCenter_2.properties
    3000 to 3999 -> RequestCenter_3.properties
    4000 to 4999 -> RequestCenter_4.properties
    5000 to 5999 -> RequestCenter_5.properties
    6000 to 6999 -> RequestCenter_6.properties
    7000 to 7999 -> RequestCenter_7.properties
    6. Turn off the String ID display by removing (or commenting out) the line "res.format=2" from the newscale.properties, RequestCenter.prop and RmiConfig.prop files
    7. Restart RequestCenter.
    Your customized text should be displayed.

    I've recently come across this information and it was very helpful in changing some of the inline text.
    However, one place that seemed out of reach with this method was the three main buttons on an "Order" page.  Specifically the "Add & Review Order" button was confusing some of our users.
    Through the use of JavaScript we were able to modify the label of this button.  We placed JS in the footer.html file that changes the value of the butt

  • Can we replace OTR text with Images?

    Hi All,
    I just wanted to know can we replace OTR text with Images?
    or
    Can we define an image as an OTR text? so that it can be placed in the page where OTR text is used.
    regards...
    Ravi

    Hi Ravi,
    it is possible to replace an OTR Text with an image.
    You first have to define the Link in the OTR Text where your image is located. This can be everywhere in the Internet or better on a secured intranet server which everyone can reach easily without permission problems. Maybe in the DMZ.
    You can even link it into the MIME Repository of your SAP System as well.
    Then you have to put that OTR Text into a
    <htmlb:textview> Tag and ensure that the switch
    " encode = "TRUE" is enabled.
    Well thats all.
    Keep in mind that the a different language, set in the Internet Explorer or other viewing instances, disables the link if it not "translated" into that language.
    This can also be an advantage if you got multilingual fixed pictures with drawn text in it.
    I suggest you put all your links ( with a Value Field and at least a name field) into a seperate table into the repository for easy maintaining.
    Greetings,
    Dominik
    Edited by: Dominik Lemke on Dec 19, 2007 12:02 PM

  • Can't replace old text with new text in a text box

    Hello everyone. This is my first time posting in the forum, so I'm hoping this works out well. We recently purchased a few copies of Adobe Acrobt X for the office, and one of the users is having an issue with editing text in a field. She can type new text into a box, but when she goes back to replace that text with something else, the old text stays. New text appears on top of the old text, and you can see both. Is there a way to simply highlight the old text, delete it, and then replace it with new text? Thanks in advanace for your assistance. I understand this might be confusing, so let me know if you have questions.
    Thanks,
    Dan

    You have to use the text touchup tool (there is a new name like text edit tool in AA X) to edit such text. It sounds like you are using the typewriter tool or something like it. Text editing in Acrobat is not for the weak at heart. It can be very frustrating and is not recommended except for very minor changes. If at all possible, you should edit the original and just recreate the PDF.

  • How can I replace a text/range of text enclosed in a XML tag

    I want to replace a piece of text enclosed inside a XML tag in a text frame.
    In my input parameters, I have the In-design document page number, text frame UID in that page and the XML tag name inside that text frame
    which encloses my old text.
    what command/function/interface can I use which can help me to replace the existing text with the input text ?
    eg:
    [old text]  -----> [new text]
    where [ ] is XML tag with name tag1.

    After some trail and POC, I was able to write the below piece of code.
    This detects the starting and ending position of the marker and based on that we can replace the text inside it. Hope it helps.
    InterfacePtr<IDocumentSignalData> data(signalMgr, UseDefaultIID());
            if (data == nil)
                break;
            UIDRef docRef = data->GetDocument();
            InterfacePtr<IDocument> doc(docRef, IID_IDOCUMENT);
      IDataBase *db = docRef.GetDataBase();
      //Get the spread
      InterfacePtr<ISpreadList> spreadList(doc, UseDefaultIID());
      int32 spreadCount = spreadList->GetSpreadCount();
      for ( int32 spreadIndex = 0; spreadIndex < spreadCount; spreadIndex++ )
      // Get the spread reference
      UIDRef spreadUIDRef(db, spreadList->GetNthSpreadUID(spreadIndex));
      // Get the spread object
      InterfacePtr<ISpread> spread(spreadUIDRef, UseDefaultIID());
      int32 numberOfPages = spread->GetNumPages();
      for (int32 nPage = 0; nPage < numberOfPages; nPage++ )
      UIDList pageItemList(db);
      spread->GetItemsOnPage(nPage, &pageItemList, kFalse, kFalse);
      // Iterate the page items and save off the UIDs of frames.
      int32 pageItemListLength = pageItemList.Length();
      for (int32 j = 0; j < pageItemListLength; j++ )
      UIDRef pageItemRef = pageItemList.GetRef(j);
      InterfacePtr<IFrameType> frame(pageItemRef, UseDefaultIID());
      if( frame->IsTextFrame() )
      //Now trying to get the marker position for XML tag
      TextIndex startPos=0,endPos=0;
      IXMLReferenceData *xmlReferenceData= Utils<IXMLUtils>()->QueryXMLReferenceData(pageItemRef);
      XMLReference ref = xmlReferenceData->GetReference();
      //IIDXMLElement *element = ref.Instantiate();
      InterfacePtr<IIDXMLElement> element(ref.Instantiate());
      UID tagUID = element->GetTagUID();
      WideString elementName = element->GetTagString();
      for(int32 i=0; i < element->GetChildCount(); i++)
      XMLReference childRef = element->GetNthChild(i);
      InterfacePtr<IIDXMLElement> child_element(childRef.Instantiate());
      tagUID = child_element->GetTagUID();
      elementName = child_element->GetTagString();
      int32 index=0;
      Utils<IXMLUtils>()->GetElementMarkerPositions(child_element,&startPos,&endPos);
      startPos += 1; // move forward to exclude the starting tag
      } // iterate pages in spread

  • I can't edit text in InCopy CS5.5

    Hi,
    I wasn't very familiar with InCopy when I clicked into turning my text to InCopy, now I have to edit some pieces of the text and it will simply not allow me to make any changes, it's only on the main story (other parts of the document will allow me to check in and out of it). I've spent over 2 hours on the phone and sharing my screen with the people at Adobe and still no clue what's going on. Of course I'm on a deadline and desperate to understand how this works. Is InCopy being controlled by a plug-in? How do I modify it? I can't even open the stories that were created. Please help!!!

    Most logical answer would be that for some reason your specific text was not exported as InCopt text (you have to do this for every text story you have and want to be able to edit). If you click on such a text frame, does a name get selected in the assignment and/or Links panel? If not, the text is not an InCopy text.

  • How can I replace just the corrupt page(s) in the domain file of iWeb using Time Machine?

    I back up with Time Machine and have an extensive elaborate website I created in iWeb '09 over a couple months and publish to a local folder and then upload to my server, but in the last few days I notice certain pages (that I haven't even worked on or touched) somehow become corrupted or "cross-contaminated" with elements and images from other pages.  Once I see they are corrupt I make sure not to publish them (if the current published versions are the correct, non-corrupt versions) or if they did get published I can use Time Machine to retrieve the .html file and page files folder for that specific page and replace it in my published folder/server so it shows correctly on the Web.  However, that does not replace the corrupted page(s) you see and work with when you launch iWeb and try to edit or continue working on that page.
    I am confused as to how I go to the package contents of the domain file and replace just that page with a previous version from time machine.  I don't want to replace the entire domain file because I have new changes I made to other pages even in the past hours.  How can I keep the good pages and just get earlier, non-corrupted versions of the corrupt page(s)? I know it's not as easy as with the published site folder where you can just replace the page's .html file and folder, but I don't want to have to re-create the corrupted page(s) from scratch or have to replace it with the last non-corrupted domain file and then have to redo all my recent changes to new pages I made before discovering the corrupt page(s).  Thanks for your help as now I can't make changes to the page(s) within iWeb itself.

    Thanks for the response, Wyodor.  I don't know what that is, but I'll have a look.  Is it an alternative to iWeb or a way to transfer pre-existing iWeb sites?  When you say merge domain files, is that like so multiple copies of the same site show up then you can pick and choose the non-corrupted pages and group them then delete the corrupted ones?  I am on Snow Leopard with no plans or need to upgrade anytime soon.
    And yes, I will read your links but just wanted to ask those questions.  Maybe they'll answer my questions, maybe not.
    I was able to discern that within the domain file is a domain folder with all the site folders, each with their own page ".gz" files which expand into ".xml" files.  I was trying to figure out if you could simply drag the corrupt pages out that way and replace them with backup copies that are still good.  I am having trouble discerning which pages are which as they all have random names like site-page-30F175E3-AE33-4F10-A490-1A096D9B185B.xml and although I expanded and opened each in Text Wrangler, I still couldn't discern which were which for sure, and trial and error proved cumbersome.  Also, I did notice some of the later corrupted domain files had one or two more pages than the site itself has, so not sure how they got added or duplicated or what.
    Again, I'll look at your links, but do you know about swapping out individual page .xml files this way within the domain file?

  • Replacing marker text for sevral markers in one shot.

    I can't change marker text (such as an index entry) by using the Find/Change dialog box. If FrameMaker finds the marker text I specify, and if I type different text in the Change text box and click Change, FrameMaker replaces the marker--not the marker text--with the text in the Change text box.
    To change marker text, i use the Special > Marker command
    I have loads of marker spread over several documents. It is not practical to change each and every marker text manually.
    Basically i have marker with marker text in the format "gotolink xyz.pdf:abc". I would like to replace the marker text to "gotolink xyz.fm:abc".
    The marker text varies for different markers but the bottom line is replacing pdf to fm.
    Please help me as early as possible.
    Regards,
    Damodar

    Damodar,<br /><br />The fastest way would be to do the search & replace in the MIF files<br />using a text editor (such as UltraEdit or TextPad) or a regular<br />expression tool such as grep or Funduc's Search&Replace. <br /><br />You would look for the statement:<br /><br />   <MText `gotolink xyz.pdf:abc'><br /><br />and replace appropriately.<br /><br />To batch convert all of the files in a book to MIF, you could use the<br />trial version of mif2go available from Omni Systems at<br />http://www.omsys.com

  • Can I replace my current iPhone 5s with a new one in this case?

    I just got my iPhone 5s two days ago, but it already has problems when I was trying to text with it while charging. The phone was doing all these random things like mis-sensed my typing really badly, jumping out to the main screen and even called the person I was texting. I even tried typing messages in Whatsapp, it constantly hides the keyboard from time to time and that's really irritating. While it's on lock screen, I could not slide to unlock it, I had to use my finger scan to access my phone in the end. The phone went normal again once I got the charge unplugged, but it went crazy again once I got it plugged in. I truely believe it's something wrong with the phone rather than the charger. Can I replace my current phone with a new one in this case?

    Take it back. This is a warranty/purchase issue. We are just users here.

  • How can I remove ASCII text from a field when I use it in a query

    How can I remove ASCII text from a field when I use it in a query?
    I am running a select statement on a table that appears to have ASCII text in some of the fields. If I use these fields in the where statement like the code below nothing returns:
    SELECT FIELD1 FROM TABLE1 WHERE FIELD1 IS NULL
    But the field looks empty if I do a straight select without the where clause. Additionally, one of the fields has text but appears to be padded out with ASCII text, which I need to strip out before I can use this field in a where or join statement. I have tried using a trim, ltrim, rtrim, to_char, nvl, decode and nothing works. When I use excel to run the same query it looks as if these ASCII fields are boxes.
    I have asked our DBA team to see what they can do to prevent these from going into the table, but in the mean time I still need to run this report.
    Do you have any suggestions?

    Can you provide an example? I've been trying (for
    example) "select translate(' test one', ascii(' '),
    'X') from dual" with no luck.
    Thank you.To replace space, you should query like this:
    select translate(' test one', chr(32), 'X') from dual instead of select translate(' test one', ascii(' '), 'X') from dual Thanks,
    Dharmesh Patel

  • I can´t edit the text files with SAP BODS 3.2

    Hello
    I can not edit some text files 9-20 megabytes to replace two words in each file, the source is a text file and the same destination but with different name, because with the same name have been unable . My idea is to remove the original and stay with the new performing edition but that if he does , let me file this way:
    SALES_ORDERS_FULL_20140223_150051_006.xml ( ORIGINAL )
    should leave it with me so : SALES_ORDERS_FULL_20140223_150051_006.xml _OLD (AMENDED )
    but strangely leaves me so :
    MICROSOFT_SQL_SERVER_KCC-BI_REPO_KHSA_XI_REPO_KHSA_XI_1543_5434_2_3_Long_INVOICES_INCREMENTAL_20140225_034004_001_xml_dat.txt  (not deseased)
    The type of data you use is long since varchar not allow me because it cuts my data file , use varchar (50000000) but takes the information and short .
    I am using long data type , modify the file and I pass the name of the text files of sap bods for global variables. They are a series of files that are called by a while loop
    Thanks for your answers
    regards

    HIr
    Yes, first I convert long_to_varchar for edit, and convert varchar_to_long.
    I edit before before and later
    Thanks

  • Replace Filename text by start/end position?

    I could do this in php, but I know nothing of applescript. The main function I need is PHP's substr_replace, to rename files in a passed array, by start/end string positions, with passed text.
    Basically I'm looking for an applescript function to add to an Automator workflow, that will replace filenames with text, by character position. The applescript function would have 4 parameters, (files:Array, startPosition:int, endPosition:int, replaceWith:String). The first is an array of the files passed by Automator's "Get Selected Files" func, then the starting and ending positions for what is to be replaced, finally followed by the string to replace with.
    So something like,
    function renameFilenamesByPosition(files, startPos, endPos, replaceWith)
    for(i=0;i<count(files);i++)
    file = files;
    oldName = basename(file);
    newName = substr_replace(oldName, replaceWith, startPos, endPos);
    rename(oldFilename, newName);
    Any help in coming up with an applescript that I can do this, and be inserted into an Automator workflow, is MUCH APPRECIATED!! I often have files with number tags, that I'd like to have removed.

    I had a substring handler that converted fairly readily, but I was looking for something more general-purpose to put into an Automator action. Using an action is good for making the interface not quite so ugly, but there is a bit more to do to make sure it is robust enough to take whatever the other actions can throw at it. I finally decided on an action that trimmed an adjustable number of characters from the beginning or end, with an option to add a text variable - something that the existing rename doesn't do.
    As for my replacement handler, the main difference is that it uses the normal AppleScript index ranges, and the index items can also be text strings. There is also a bit more code to take care of stuff like negative or swapped indexes (yours definitely doesn't like that). It does work differently than the PHP function, which is probably not what you were looking for.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on run -- examples
    set TheText to "00012-myfile.jpeg"
    ReplaceTheText of TheText between 1 thru 6 by ""
    -- ReplaceTheText of TheText between "000" thru "-" by ""
    -- ReplaceTheText of TheText between 1 thru "-" by "xxxx"
    display dialog "\"" & the result & "\""
    end run
    to ReplaceTheText of SomeText between StartItem thru EndItem by ReplacingText
    replaces the text between the specified items with ReplacingText
    item searches are from left to right (beginning to end)
    if an item is not found, the replacement is from the beginning or end
    parameters - SomeText [text]: the text to modify
    StartItem [mixed]: the starting item or index (negative number is from the end)
    EndItem [mixed]: the ending item or index (negative number is from the end)
    ReplacingText [Text]: the replacement text
    returns [text]: the modified text, or the original text if error (index out of range, etc)
    set SomeText to SomeText as text
    set TextCount to (count SomeText)
    if class of StartItem is in {integer, real} then
    if StartItem is less than 0 then set StartItem to ((TextCount + 1) + StartItem) -- make positive index
    if (StartItem is greater than TextCount) or (StartItem is less than 1) then return SomeText -- out of range
    else
    set StartItem to offset of (StartItem as text) in SomeText
    if result is 0 then set StartItem to 1 -- the beginning
    end if
    if class of EndItem is in {integer, real} then
    if EndItem is less than 0 then set EndItem to ((TextCount + 1) + EndItem) -- make positive index
    if (EndItem is greater than TextCount) or (EndItem is less than 1) then return SomeText -- out of range
    else
    get (offset of (EndItem as text) in (text StartItem thru -1 of SomeText))
    if result is 0 then
    set EndItem to TextCount -- the end
    else
    set EndItem to StartItem + result + (count EndItem) - 2
    end if
    end if
    if StartItem is greater than EndItem then set {StartItem, EndItem} to {EndItem, StartItem} -- swap
    if StartItem is not 1 then
    set StartItem to text 1 thru (StartItem - 1) of SomeText
    else
    set StartItem to ""
    end if
    if EndItem is not TextCount then
    set EndItem to text (EndItem + 1) thru TextCount of SomeText
    else
    set EndItem to ""
    end if
    return StartItem & ReplacingText & EndItem
    end ReplaceTheText
    </pre>

  • [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>

  • [Solved]Can't run sublime-text

    Hey,
    maybe I am just stupid today but I can't run sublime-text.
    I just installed it from the AUR (no errors) and when I try to run it in my Terminal all I get is:
    [user@ArchPad ~]$ sublime-text
    bash: sublime-text: command not found
    Sublime seems to be installed correctly:
    [user@ArchPad ~]$ pacman -Qi sublime-text
    Name : sublime-text
    Version : 2.0.2-1
    Description : sophisticated text editor for code, html and prose
    Architecture : x86_64
    URL : [url]http://www.sublimetext.com/2[/url]
    Licenses : custom
    Groups : None
    Provides : None
    Depends On : libpng gtk2 xdg-utils desktop-file-utils
    Optional Deps : None
    Required By : None
    Optional For : None
    Conflicts With : None
    Replaces : None
    Installed Size : 14270.00 KiB
    Packager : Unknown Packager
    Build Date : Sun Oct 20 14:48:43 2013
    Install Date : Sun Oct 20 14:50:39 2013
    Install Reason : Explicitly installed
    Install Script : Yes
    Validated By : None
    I tried rebooting and reinstalling it but without any success.
    Ty for helping me out!
    Edit: I'm feeling really stupid now Thanks for your help!
    Last edited by 4814 (2013-10-20 13:45:23)

    https://wiki.archlinux.org/index.php/FA … tart_it.3F
    When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode
    like this

  • Can't replace lines in a downloaded template doc

    there're two lines in my document that I can edit regularly, but they just swith right back if I try to scroll down or print it. Any suggestions?

    Are you talking about using Reader on a PDF or something completely different. Are you trying to replace a line or replace some text in a form?
    More details of what you are using and what you are trying to do wold be helpful.

Maybe you are looking for

  • Iphone 4 won't turn on unless plugged into charger

    My Iphone turned on all of a sudden and now it won't turn on unless it's plugged in. It still has my password on but it only says connect to itunes after I type in my password. When I plug it out it turns back off and when I plug it into my computer

  • Flashback query works, but not flashback versions query

    This is a test database (Oracle10g 10.1.0.5), not in archivelog mode. I deleted one row 2 hours ago. I can still use flashback query: select * from tm_instances as of timestamp to_timestamp('STARTTIME_HERE') to view this row. But I can't use the foll

  • Images gone after exporting to DVD

    Wow, was this ever a surprise. I exported images by selecting individual albums to a DVD for Back up. Now I have all the images on DVD but they are totally gone from iPHoto, including the library. So now I don't have the originals, or at least access

  • CS6 suddenly available after CC purchase? What?

    I was an employee at Academy of Art University and was granted a license to CS6 under the policy that THEN stated that students AND employees get the software for free, with no limitations on time. Anyone who is aware already knows that the debacle t

  • Time field in iCal

    when I try to enter a time in a new event the field keeps restting itself. For instance if I enter 10 it first resets to 1 and then 0. If i put in 12 it resets to one then 2 but not 12. How do I  correct this so I can put in a 2 digit number for a ti