Suppressing progress dialog when importing Tagged Text?

Howdy:
I'm using the Adobe Tagged Text import provider to place text in a document. I'm making the call to iImportProvider->ImportThis() with the kSuppressUI flag set. Even though the flag is set, InDesign is still displaying the progress dialog. Does anybody know how to keep that from happening? I don't see anything in the documentation about this.
Thanks,
Noel Williams

Hello:
I have the same problem that Noel.
I'm using:
* prov->ImportThis(database, stream, kSuppressUI, &contentUIDRef);
* prov->ImportThis(database, stream, K2::kSuppressUI, &contentUIDRef);
* prov->ImportThis(database, stream, (K2::UIFlags)0, &contentUIDRef);
But the progress Dialog appears.
This problem is critical for me.

Similar Messages

  • Selectively ignore Problem Tags Dialog  while importing Tagged Text in CS5.5

    Hi
    My script imports tagged text and places it in selected frames. Due to the tag creation process used, I occasionally get a "Ignoring character level attribute termination tag "<cTracking:>" found without the corresponding character level attribute application tag "<cTracking:value>"
    Since it's not a problem I can ignore this specific error -- but I don't want to turn off ALL problem tag error checking because occasionally there are serious errors that I DO want to see.
    Is there a way to tell ID to ignore this specific error?
    Thanks
    Akiva

    UNfortunately the original ascii files uses a <D> code to return to the default settings -- and since that occasionally includes resetting the tracking to 0 I need to include the "<cTracking:>" tag.
    I could obviously fix it by adding a "<cTracking:0>" to all the codes -- but that seems like it could cause more problems.
    I can preprocess the ascii code to eliminate the excess codes -- but that increases processing time for something which happens only occasionally and is non-problematis in practice.
    Akiva

  • Trouble when importing tagged text (CS6)

    I'm trying to import a tagged .txt file into InDesign however when I do, the paragraph styles are not recognized and I end up with unformatted text. Is there a certain format the .txt file needs to be in (unicode 8, 16 etc.)? Any help would be appreciated, thank you!

    Tagged with InDesign Paragraph Style tags. I think I sorted it out, I needed to append the .txt file with "-mac.txt"

  • Import tagged text without overwriting formatting?

    When processing an INDD file in InDesign Server CS5, we are importing text that contains Tagged Text tags.  The tags are being properly applied, but we are having an issue with the formatting in the INDD file being overwritten.
    For example: We have a selection of text that is formatted using a specific font type in the INDD file.  The tagged text being imported only has tags that defines the size of the font.  When the selection of text is replaced with the tagged text, the font type is replaced with the default font, rather than leaving it as it was even though we never defined the font type in the tagged text. 
    Any ideas on how we can apply tagged text but still retain any text formatting that was not specifically defined in the tagged text?
    Thanks!

    I am using
    InterfacePtr<IK2ServiceProvider> service(registry->QueryServiceProviderByClassID( kImportProviderService, kTaggedTextImportFilterBoss));

  • [IDCS3 WIN] Assert while importing tagged text

    Hi,<br /><br />I use the following code to import a tagged text from a buffer into a text frame:<br /><br />IDataBase* database = frameUIDRef.GetDataBase();<br /><br />InterfacePtr<IHierarchy> frameHierarhy(frameUIDRef, UseDefaultIID());<br />int32 count = frameHierarhy->GetChildCount();<br /><br />InterfacePtr<IMultiColumnTextFrame> textFrame(frameHierarhy->QueryChild(0), UseDefaultIID());<br /><br />if( !textFrame )<br />return UIDRef::gNull;<br /><br />UID storyUID = textFrame->GetTextModelUID();<br /><br />InterfacePtr<ITextModel> textModel(database, storyUID, UseDefaultIID());<br /><br />if( !textModel )<br />return UIDRef::gNull;<br /><br />UIDRef result = UIDRef::gNull;<br />InterfacePtr<IK2ServiceRegistry> services(gSession, UseDefaultIID());<br />InterfacePtr<IK2ServiceProvider> service(services->QueryServiceProviderByClassID(kImportProviderService, kTaggedTextImportFilterBoss));<br />InterfacePtr<IImportProvider> prov(service, IID_IIMPORTPROVIDER);<br /><br />InterfacePtr<IPMStream> stream(StreamUtil::CreatePointerStreamRead(taggedtext, strlen(taggedtext)));<br /><br />if (prov->CanImportThisStream(stream) == IImportProvider::kFullImport)<br />{<br />database->BeginTransaction();<br /><br />prov->ImportThis(database, stream, K2::kSuppressUI, &result);  //This line generates the Assert<br /><br />if (result != nil )<br />{<br />Utils<ITextUtils> textUtils;<br />InterfacePtr<ICommand> moveAllStoryCommand(textUtils->QueryMoveStoryFromAllToAllCommand(result, ::GetUIDRef(textModel)));<br />CmdUtils::ProcessCommand(moveAllStoryCommand);<br />}<br />     <br />database->EndTransaction();<br />}<br /><br />It works fine, but when "ImportThis" is called i get this:<br /><br />ASSERT 'fCmdProcessorState == kDoing || fCmdProcessorState != kNotProcessing || cmdMgrRef.GetDataBase()->GetUndoSupport() == IDataBase::kNoUndoSupport' in ..\..\..\source\components\appframework\commandmgmt\CommandProcessor.cpp at line 2889 failed.<br /><br />Any help would be appreciated.<br />Thanks in advance, David

    I would say the problem here is in using database->BeginTransaction()/EndTransaction(). Basically you should never call these methods - you need to find/create a command to do the processing instead, then perhaps wrap the two commands in a command sequence.
    I know there was a post saying ' don't use those methods' a long time ago by Ken Sadahiro (then of Adobe) - you might find it with a search, though will have been archived by now.
    Ian

  • Problems importing tagged text

    IDD CS5.5, 7.5.2
    what I do
    prepare IDD tagged text file, using DOS/Windows line ends and ANSII encoding
    open IDD CS5.5 file with formatted content
    select all content
    File > Place InDesign tagged text file, using "show list of problem tags" option
    what I get
    no angle brackets imported, no errors in the list of problem tags …
    74 paragraphs, all using the first paragraph style specified in the tagged text
    I wish IDD tagged text were as easy to get on with as FrameMaker's MML … that would also make it easier for me to start with one tagged source file and use the content in different applications with a minimum of effort. Any tips on _exactly_ what has to be done to placate the IDD Import goblins welcome!

    Give this script a try:
    // DESCRIPTION: This InDesign script reads the tags of an imported MML file and applies their corresponding paragraph styles.
    // USAGE: Place the MML file in InDesign. Using the Text tool, select all or part of the imported text. Run this script.
    var myDocument = app.activeDocument;
    if (app.documents.length != 0){
    //If the selection contains more than one item, the selection
    //is not text selected with the Type tool.
    if (app.selection.length == 1){
    //Evaluate the selection based on its type.
      switch (app.selection[0].constructor.name){
       case "Character":
       case "Word":
       case "TextStyleRange":
       case "Line":
       case "Paragraph":
       case "TextColumn":
       case "Text":
        convertMML(app.selection[0]);
       break;
       default:
        alert("Please select all or part of the text using the Text Tool.");
       break;
    } else {
      alert("No valid selection.");
    function convertMML(theSelection) {
    // this sequence collects the names of the paragraph styles in the MML file
    var theContent = theSelection.contents;
      var theParagraphs = theContent.split("\r");
      var theParagraphStyles = [];
      for (var i = 0; i < theParagraphs.length; i++) {
        if (theTag = theSelection.paragraphs[i].contents.match(/<!DefineTag (.+?)>/)) {
          theParagraphStyles.push(theTag[1]);
    // ********* this sequence adds dummy paragraph styles in the document, if necessary
    for (var i = 0; i < theParagraphStyles.length; i++) {
      var currentStyle = theParagraphStyles[i];
            try { myDocument.paragraphStyles.add({ name: currentStyle }) } catch(err){};
    // ********* This sequence set the preferences of the Grep queries
    app.findChangeGrepOptions.includeFootnotes = true;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = true;
    app.findChangeGrepOptions.includeMasterPages = true;
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    // ********* The action begins here
    // ********* This sequence removes spaces and/or TABs in the beginning of the lines
    app.findGrepPreferences.findWhat = '^\\s+';
    app.changeGrepPreferences.changeTo = '';
    myDocument.changeGrep();
    // ********* This sequence consolidates multiple paragraph returns into one
    app.findGrepPreferences.findWhat = '\\r\\r+';
    app.changeGrepPreferences.changeTo = '\\r';
    myDocument.changeGrep();
    // ********* This sequence removes the header and the paragraph declarations
    app.findGrepPreferences.findWhat = '((^<MML>\\r)|(^<!DefineTag .+?>\\r))';
    app.changeGrepPreferences.changeTo = '';
    myDocument.changeGrep();
    // ********* Now that everything is cleared up and in place, we can make the required changes
    for (var i = 0; i < theParagraphStyles.length; i++) {
      app.findGrepPreferences = NothingEnum.nothing;
      app.changeGrepPreferences = NothingEnum.nothing;
      var currentStyle = theParagraphStyles[i];
      var theGrepString = '^<' + currentStyle + '>';
      app.findGrepPreferences.findWhat = theGrepString;
      app.changeGrepPreferences.appliedParagraphStyle = myDocument.paragraphStyles.itemByName(currentStyle);
      myDocument.changeGrep();
      app.findGrepPreferences = NothingEnum.nothing;
      app.changeGrepPreferences = NothingEnum.nothing;
      app.findGrepPreferences.findWhat = theGrepString;
      app.changeGrepPreferences.changeTo = '';
      myDocument.changeGrep();
    It worked in your sample. To install it, select the text between the multi-hyphens lines, copy it to a text editor, save it with the ".js" or ".jsx" extension and put it on your Scripts Panel folder.
    To run it, place the MML in InDesign as unformatted text, select everything with the Text tool and double click the script in the Scripts panel. All the tags will be eliminated and the paragraphs will be formatted according with the MML tags. Be aware that this script doesn't contemplate character styles and any other formatting; only paragraph tags, like your sample.
    Hope it helps.

  • Scripting question: how to suppress Aperture dialog when exporting?

    Hi Forum,
    I started to write an AppleScript for Aperture to perform a backup. The standard backup procedures of Aperture are not quite right for me so I decided to write my own using AppleScript.
    One question which arised was how I can supppress the dialog box which Aperture opens when an export could not be done because of a missing master. I want to suppress the dialog box and instead get an error returned from Aperture into AppleScript. is that possible?
    Koen van Dijken

    Hello Koen,
    have you solved your problem by now? For me the following does work:
    I does not seem to be possible to set Aperture to suppress the warning, so catching the error in a "try" clause will not help. The best option is to check, if the master image is online, before trying to export and skipping the offline images, like in this example,  see: http:/dreschler-fischer.de/scripts/ExportMastersWithoutWarning.scpt.zip
    on run {}
      -- export masters, but check it they are online before trying to export
      -- skip if not online
              set exportFolder to (choose folder with prompt "Choose an export folder")
              tell application "Aperture"
                        set imageSel to (get selection)
                        if imageSel is {} then
                                  error "Please select an image."
                        else
                                  repeat with i from 1 to count of imageSel
                                            try
                                                      set onlne to get online of (item i of imageSel)
                                                      if onlne then export {item i of imageSel} naming folders with folder naming policy ¬
                                                                "Project Name" to exportFolder
                                            end try
                                  end repeat
                                  return imageSel
                        end if
              end tell
    end run
    Regards
    Léonie

  • Importing Tagged Text Files

    Working in MAC ID CS5 and pulling in text from a Windows based database that places tags automatically with the information it pulls.  Using <

    Shoot! Yes, I had typed in my code and it stopped at that.
    "Working in MAC ID CS5 and pulling in text from a Windows based database  that places tags automatically with the information it pulls.  Using Unicode tagging direct to TextEdit and saving as Unicode (UTF-16).  When placed in ID it either gives Boxes with x's in them, text only or response in below pic.  Is there a specific way to save, code or place that I am not seeing.  Where are the "rules" from ID on this.  We used Quark before and it was so simple.

  • No Progress Bar when importing from Camera

    I just updated to iLife 06, and I noticed when I was importing new photo's into iPhoto 6, that the progress bar does not move. The photo's import fine, but I have no idea of the approximate time it will take, since the progress bar never shows up.
    Has anyone else seen this? Is there any pref files I can clean out to see if I can get this feature back?
    Thanks, and sorry if this has been discussed, but I could not find anything when searching the forums for this issue.
    - Bruce

    Well, I just imported 10 photo's and the progress bar worked. My previous import where the progress bar did not work, had 125 photo's, with two of them locked. I have removed the locked photo's, and removed the regular photo's, and now the progress bar works. I do not know if it was because there was 125 photo's or if it was because I had a few locked photo's, but now it seems to be working.
    I will test things out by locking some more photo's and seeing if the progress bar shows up when I import. I also chose to delete the original photo's after importing them.
    Has anyone else imported a lot of pictures, and had a few locked on the camera, and noticed if the progress bar works or not?
    - Bruce

  • InDesign CS: suppress warning dialogs when opening file

    Hello,
    is there a way to suppress the warning dialogs that inform you about missing fonts or linked images? If I have to modify a large amount of files with a script it would be easier if I handle those situations myself after I opened the file instead of having somebody (or myself) to sit in front of the computer while the script runs and close those messages manually.
    Best regards,
    Christian Kirchhoff

    If you use these two functions to control user interaction, this part of your script will survive when you upgrade.
    function neverInteract() {
    if (app.version == 3) {
      app.userInteractionLevel = UserInteractionLevels.neverInteract;
    } else {
      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
    function interactWithAll() {
    if (app.version == 3) {
      app.userInteractionLevel = UserInteractionLevels.interactWithAll;
    } else {
      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    Dave

  • Bypass ACR dialog when importing raw files?

    I am batch importing raw image sequences with a script i wrote, but for each sequence it pops up the ACR dialog to allow for raw adjustments before import. I want to just dismiss that dialog automatically with the script, is that possible?
    Thanks!

    Negatory.  Very frustrating.
    var test_ACR_bypass = (function(){
      var f = new File("/path/to/some/raw/myraw_seq_00000.cr2");
      var opt = new ImportOptions(f);
      //these don't seem to make a difference.
      opt.sequence = true;
      opt.forceAlphabetical = true;
      app.beginSuppressDialogs();
      var imported_item = app.project.importFile(opt);
      //neither does this argument
      app.endSuppressDialogs(false);
    I guess this has something to do with the fact that the ACR dialogue box is a function of the filetype plugin and not the scripting engine?  Frustrating regardless, I have to import a *lot* of camera raws and we don't do our grading upon AE import...

  • Skip a column when importing a text file into Excel 2010

    Hi,
    I have a formatted Excel 2010 spreadsheet that I want to import data from a .txt file located on my local drive. The third column of the spreadsheet is a concantenate formula that converts the second column from a Hex formatted value to a Dec formatted value.
    I want the first two columns of the text file to import into the first two columns of the spreadsheet and skip the third column then import the remaining columns from the text file to the spreadsheet. Is there an easy way to do this or do I need a VBA code
    and if so can you provide that to me?
    Thank you,
    Jennifer

    Hi Tony,
    I am sorry if I didn't express my issue more clearly. Where I need to skip a column is in the Excel spreadsheet. I want to import all the columns from the text file. I want the first two columns from the text to import to the first two columns in the Excel
    sheet A and B, skip the third column C in the spreadsheet, where I have a formula to convert the second column B values from a Hex format (imported data) to a Dec format, then continue to import columns 3, 4, and 5 from the text to spreadsheet columns D, E,
    and F. I would think the function would be in the Excel spreadsheet maybe some type of protection setting or something similar, if it can even be done. 
    Thank you for taking the time to help me out with this.
    Jennifer

  • Importing URLs using tagged text

    I'm trying to import tagged text with URLs into InDesign. InDesign sees the links, but does not seem to know that the links are URLs (rather than text anchors or page links). I have nearly 1500 hyperlinked pieces of text I want to import, so I can't manually create Destination Definitions for all of them. When I try to send definitions in using tagged text, InDesign (CS2) crashes. Any help very much appreciated.

    There are many ways of "tagging" information in an InDesign document. For what you're doing, I'd suggest a unique paragraph style used only for this purpose, then you can search for text in it and use the contents.
    Dave

  • How do I import an InDesign tagged text file into multiple pages and export as .ps or .pdf using Jav

    I have an InDesign tagged text file I've translated from .xml. I need to automate the following steps:
    1 - access specific InDesign template (eg. ABC_template.ind)
    2 - import tagged text file into InDesign
    3 - autoflow text to END of document (normally around 3-5 pages)
    4 - save document as either .ps or .pdf file
    5 - where the input file stub name matches the output stub name (eg., OrigName.txt outputs as OrigName.pdf).
    I would like to completely automate this whole process using JavaScript (because I don't know anyone that knows AppleScript). I've automated the first part using a perl script. I've been trying to find sample snipits of JavaScript that would do one or more of the items listed above, but am having a hard time finding what I need.
    Please, I'm desperate!! Can any of you InDesign scripting guru's out there help me??
    Thanks in advance!!
    LindaD

    Hi Linda,
    I might be able to help you out. You can contact me by email (click on my user name for the address), or if you post your email here.

  • Tagged text import issues

    I have had some issues with importing tagged text. In my workflow i get some data converted to tagged text, no problems, special characters are also converted to ASCII entities.
    Everything works on my machine, but as soon as it is imported on another machine, the special characters are gone.
    I have located the issue, that my entities are lowercase (e.g. ë = <0x00eb>), and by making it uppercase (<0x00EB>) it works.
    What can be the difference on the machines? Is it an InDesign thing, or is it a CPU thing? The only difference on the machines are that mine is a Mac with intel processor, and the other is a G5.

    Oops -- the smiley face in the code should be changed to semicolon close angle (greater than sign). Jim

Maybe you are looking for

  • Mid 2011 iMac won't boot in any mode.

    Hello, Last ast week in the middle of a deadline my imac crashed. I was in the middle of a Pro Tools session and the next thing my mouse icon turns into a series of dots and everything freezes. So, I rebooted and since then I haven't been able to get

  • SCCM 2012 - Pull distribution point and target PKI or HTTPS DPs

    I have spent several days researching this and so far have found only a single page that even takes a stab at offering a solution. Problem: Trying to target an HTTPS DP when creating a pull distribution point in SCCM 2012 R2. The link that I'm referr

  • 2 LDAP source to 1 EP

    Hi, Is it possible to connect 2 LDAPs to one single Portal UME. I checked the config tools but it seems not visible. I cant see how this can be done. My requirement is that we want two different companies each having its own LDAP connect to the Porta

  • All Email seems slow since 4S (not just iCloud mail)

    Ever since I upgraded from my 4 to a 4s all my email seems slow. This includes my former mobileme email as well as an exchange server from work. For example right now I am looking at an email on my phone that shows as "new" even through I deleted the

  • ChnPropSet from GPI-Dll

    Hey! I think this would have been asked before, but I could not find the answer.. so.. I am creating a Waveform-Channel from a GPI-dll. Transferring the data works fine, but now I am stuck at the offset and increment parameters which I cannot set. Fo