Cannot modify document metadata when a dialog box is open

Hello world

I get an error: cannot process the request because a modal dialog box or the alert is active. Whenever I try to edit document metadata and a dialog window is opened.

I put my extension is not interrupted by dialog boxes with UserInteractionLevels.neverInteract:

public static function run():void

  {

    var app:com.adobe.indesign.Application = InDesign.app;

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;

    // ...

  }


However, when I try to save the metadata of the document, if a dialog box is open, this code does not work:

public class Metadata

{

   public static function itemDownloaded(document:com.adobe.indesign.Document, dataXML:XML)

     {

      // ...

      document.metadataPreferences.setProperty("http://mydomain.com", 'data', dataXML);

     }

  }

This is the place where the metadata code is called, it fires when a file has been downloaded:

public class FileDownloader

  {


   // ...


   public function onComplete(completedFile:File):void

     {

       var app:Application = InDesign.app;

       Metadata.itemDownloaded(app.activeDocument, downloadInfoXML());

       // ...

     }

  }

Is it possible to go around it? Any suggestions?

Thanks in advance for your help.

-Bastien

You don't say what modal dialog gives you bad.

I guess that you don't talk about your own ModalDialog CSXS. You should have no problem with it.

If you use no script or ScriptUI modal dialog boxes, these pose a problem, as the integrated modal dialog boxes.

The only thing that UserIteractionLevels done is prevent some modal dialog boxes popping up while a script is running. He's not the modaless.

Substances

Tags: InDesign

Similar Questions

  • You cannot close Microsoft Office Word because a dialog box is open

    When I try to print an electronic document, I get this message. Says nothing on the toolbar.

    See if any of these articles to the knowledge base to adapt to the situation:

    On a version x 64 Windows, open two instances of the print properties dialog box, or Word stops responding when you try to access the properties of the printer and you can not print

    You receive an error "the command cannot be performed because a dialog box is open" message when you try to open a file in Word 2007 or Word 2003

    HAL
    --
    HAL Hostetler, TCE
    Engineer senior/UPDATED--MS MVP-Print/Imaging - WA7BGX
    www.kvoa.com - KVOA television, Tucson, AZ.
    Live Hot Licks - www.badnewsbluesband.com

  • MS Photo Gallery, how can I activate the "do not show this again" when the dialog box appears whenever I try to download a picture to another location?

    How can I activate the "do not show this again" when the dialog box appears whenever I try to download a picture to another location?

    The dialog box that appears frequently when I try to convert or download photos, shows the shadow of this question - I want to make it active until the times dialog box stops appearing I scroll the photo folders.

    Thank you

    I got the last part of what you wanted, which was simply not the message

    The key is that you have to allow this program through your windows firewall.

    Go to your look for the windows Firewall Control Panel,

    There should be a list to allow a program through windows firewall, look at the top left.

    If you feel safe doing this, vlc is not one that I would feel safe with, but to you, it has a function to browse to find the program to be added to your trusted list or access through your firewall.

    Still, it may give you a warning but could release the message?

  • Overview of the output only works when the preview dialog box is open?

    The preview of the output adjustment certainly between into force, but only when the output preview dialog box is open, while precisely the preview of the images in playback mode is not possible; It is only possible to preview by clicking on an image and open the dialog of OP. As soon as the OP dialog box is closed, the image reverts to its prior Preview State. This is not normal!

    That's how it has always been. Keep in mind, this is a modeless dialog box, it prevents you to navigate through the file.

    What do you mean by "reading mode" specifically and why you can not use?

  • Why can't I get a glimpse of the indd files in the dialog box to open InDesign?

    Hi all

    It is unfortunate that Adobe does not add a plugin to display a preview of any Adobe source file in Windows Explorer (I mean, except for the PDF but I think that Microsoft did this).

    But I think it's ridiculous that I can't preview the source .indd inside the dialog box to open InDesign files. He says just, "no preview available". I am sure that this failure is related to what Windows can preview... again, not a good excuse!

    It is also the same problem in Illustrator and Photoshop... or program Adobe can get a glimpse of their own file format!

    WHY?  OR how can I fix this?

    [UPDATE: SageThumbs |] [SourceForge.net seems to partially work on several Photoshop files (works reasonably well as long as I limit the file size to 70 mb), it doesn't seem to work with Illustrator files (despite the claim), and it does not work on InDesign.]

    Yet the question remains: why Adobe is not taking responsibility for this?

    I think that for the dialog open regularly, Adobe wants to use operation

    Open the file integrated system of dialogue, so that users are familiar with it.

    and also if they can use the peculiarities of their OS (Windows vs

    Mac have different habits).

    And to solve your problem, they created Bridge (and even Mini Bridge).

    He could theoretically get into the habit to use to open the files,

    That is, instead of file > open it just click on the bridge icon.

  • Cannot create document empty when you open the label printer software

    I installed the software to store 8 labels intermec for my label INTERMEC PF8t printer, when I try to open the message cannot create an empty document when you open the printer software labels appear. Help, please

    Hi Phaphama,

    ·         Did you do changes on the computer before the show?

    ·         He has already worked on the computer?

    Follow these methods.

    Method 1: Uninstall and reinstall the software and check if it works very well.

    How to change or remove a program in Windows XP

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

    Method 2: Perform a clean boot to see if there is a conflict of software like the clean boot helps eliminate software conflicts.

    How to configure Windows XP to start in a "clean boot" State

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

    Note: After completing the steps in the clean boot troubleshooting, follow the section How to configure Windows to use a Normal startup state of the link to return the computer to a Normal startupmode.

    After the clean boot used to resolve the problem, you can follow these steps to configure Windows XP to start normally.

    (a) click Startand then click run.

    (b) type msconfigand click OK.

    (c) the System Configuration Utility dialog box appears.

    (d) click the general tab, click Normal startup - load all services and device drivers and then click OK.

    (e) when you are prompted, click on restart to restart the computer.

    If the problem still persists, contact the manufacturer for more help and information.

    http://community.Intermec.com/Intr/

    http://www.Intermec.com/support/index.aspx

    http://www.Intermec.com/products/pswlblshop/index.aspx

  • How to place xmp metadata in a dialog box

    Hey guys JS expert.

    I would like to add custom xmp metadata (f.e.: custom, object, operator...) in a dialog box when I run a js to save my file id. Can someone help me?

    Thnx a lot.

    I solve easly the question:

    app.menuActions.itemByID (75265) .invoke ();

  • The mouse pointer jump at the top of the screen when the dialog box opens

    In the last few weeks my mouse pointer jumps sometimes extreme high (left side) of the FF browser window. Only happens in FF, Chrome or IE or any other application from Ms. The mouse to update drivers fees Reloaded, switched mouses, USB switch, ports switched to a mouse not MS - all to nothing does.

    "It seems to happen most often when I mouse ' snap to" feature is turned on and that the pointer automatically moves to the default button in the dialog box.

    This unique disability FF to hide the pointer when you enter (when the value in the mouse properties box) have become very annoying.

    Please address and solve the two problems above. Thank you.

    Good news! Now come on. For the moment, you can disable
    KeyScrambler. You can always turn it on when you need it.

  • LabVIEW interrupts the execution of a loop when a dialog box is called in another loop

    Hi all

    I have a program of multiple loop (single loop made data acquisition, analysis and the other to handle errors). If the acquisition loop or loop of analysis was a mistake, I passing that the error in the loop of error through a comprehensive functional Manager (basically, it loads a buffer FIFO loop error handler appears errors off of a at the same time).

    Global functional handles, error writing to a log file when a new error is pushed into the buffer. What I need the loop of error handler to do is to display a dialog box to the user so that they know something happened. I had been using the screw box to do this, but I noticed that they seem to break other loops as well. I would like to find a way around that I got to the point where the program can recover most of these errors coming from hardware communication problems automatically.

    Essentially I want to do is have a pop-up box that warns the user that something has happened but not interrupt data acquisition or analysis loops so that I always get data from the rest of my devices even if one of them has a problem that my program can not resolve on its own.

    Create your own dialog box. LabVIEW subVIs can be made to present their façade and set to look and behave like a dialog box.

  • All records showing the attribute read-only - cannot be changed via a Properties dialog box OR the command "attrib" user profile AND is not corrupted

    I use Win 7 64 and recently all my files have begun to show read-only. Other responses on this forum, which suggests to change the read-only via the Properties dialog box, attrib command did not work. In addition, I created a new administrator account as suggested by another answer, but the problem persists on both accounts.

    Several programs will not work now that they can not write files in folders.

    What can I do to fix this?

    Hello

    See the following article for a description of this problem.

    326549 You cannot view or change the read-only or the attributes of system files in Windows Server 2003, Windows XP, Windows Vista or Windows 7

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • Update of popup when the export dialog box is open

    I am writing an export plugin to export images on my Web page. On the export dialog box, a drop-down menu to select the gallery where the image should I exported. Contextual menu items are read by the web server after the login information is validated, this product only when I update my login information.

    I wonder if there is no way to update the list at the opening of the export dialog box? Add a LrHttp.get call to the startDialog method an output error occurs.

    How can manage us such smart update function dynamically export gui?

    Best,

    Marcus

    You could link the 'items' of the popup_menu property to a key in the property table.  Then have an asynchronous task is the LrHttp.get () and update the value of this key.  In broad terms:

    f: popup_menu {points = LrView.bind ("menuItems")...}

    LrTasks.startAsyncTask (function)

    ... LrHttp.get ()...

    prop.menuItems =... get() property...

  • Display document data in the dialog box

    I use a folder level script to do the following:

    Get the value of a specific field XMP against an open PDF file:

    this.info.InDesignFileName

    Define a dialog box

    Create a menu item that calls up the dialog box

    But for the life of me, I can't get the dialog creation function to fill the XMP value in a static text element.

    The function below is changed from the right example out of the Acrobat Javascript API Reference.

    var inDesignNameDialog = {}

    initialize: function {(dialogue)

    store InDesignFileName XMP

    var indfn = this.info.InDesignFileName

    Create a static text containing the current date.

    / * var todayDate = dialog.store () ["date"];

    todayDate = "Date:" + util.printd ("mmmm dd, yyyy", new Date()); "."

    Dialog.Load ({'date': todayDate});

    */

    var todayDate = dialog.store (['indfn']);

    currFN = "Date:"+ this.info.InDesignFileName; "

    Dialog.Load ({"indfn": currFN});

    },

    function: Commit (dialog) {/ / called pressed OK}

    results var = dialog.store ();

    Now do something with the data collected, for example,

    Console.println ("your name is" + results ["fnam"]

    + "" + results ['lnam']);

    },

    Description:

    {

    name: 'Personal data', / / title of the dialog box

    align_children: 'align_left,

    Width: 350,

    height: 200,.

    elements:

    [

    {

    type: "cluster."

    name: 'Your name',

    align_children: 'align_left,

    elements:

    [

    {

    type: "display."

    align_children: "align_row."

    elements:

    [

    {

    type: 'static_text. "

    name: "" first name: ".

    },

    {

    item_id: 'fnam ',.

    type: 'edit_text. "

    alignment: "align_fill",.

    Width: 300,

    height: 20

    }

    ]

    },

    {

    type: "display."

    align_children: "align_row."

    elements:

    [

    {

    type: 'static_text. "

    name: "" name: ".

    },

    {

    item_id: "lnam."

    type: 'edit_text. "

    alignment: "align_fill",.

    Width: 300,

    height: 20

    }

    ]

    },

    {

    type: 'static_text. "

    name: "InDesign file name: «,»»

    char_width: 50,.

    item_id: "indfn."

    },

    ]

    },

    {

    alignment: 'align_right ',.

    type: "ok_cancel."

    ok_name: "Ok."

    cancel_name: "Cancel".

    }

    ]

    }

    };

    cExec: "inDesignNameDialog.parentDoc =; app.execDialog (inDesignNameDialog); «,

  • Dialog box to open the file on the target in real time

    It is possible to load data from a file on a local PC to a VI runs on an RT target? I have a RIO OR the VI running on. From the front panel, I want to be able to click a button and have a dialog pop up where I can choose a local file to load data from. The problem is that when I try to use the spreadsheet VI load data it returns an error indicating that the dialogue has been canceled. If I use the express VI from file dialog, the VI will always return true to cancel. The dialog box never appears. It is not possible to open a local file to a VI runs on a real-time target?

    Jon VT-

    This function will not work in time real (RT).  Please see the bulletin 2S9D21OH knowledge base: creation of a dialog box file for use with LabVIEW Real-time for more information on this.  However, it only locates the files on the target of RT.  If you try to communicate with a file on your host computer, you can be forced to transfer this document to the target of RT, or implement a different architecture for this task.  I would also add that given the user to define the source of the file manually create non-determinisme within your system.  Again, it is perhaps another reason to implement a different architecture.

  • dialog box not opening not in DW CS3 table creation

    After installing Adobe CS3 Master Collection and uninstall then CS2 Premium, I suddenly more don't create table dialog box when you insert a new table. It falls right in a wide table, 3 columns and 3 rows default 200 px. I can't find any settings or CSS which should be the engine. It wasn't until I uninstalled CS2, but I even ran a repair on CS3 without change installation.

    Any ideas?

    Krisalan,

    Go in Edition > Preferences > General category and make sure that the show «»
    Setting dialog when inserting objects"is turned on.

    HTH,
    Randy

    > After installing Adobe CS3 Master Collection and uninstall then CS2 Premium.
    > I'm suddenly more don't create table dialog box when you insert a
    > new table. It falls right in a wide table, 3 columns and 3 rows default 200 px.
    > I can't find any settings or CSS which should be the engine. It didn't happen
    > until I uninstalled CS2, but I even ran a repair on CS3 without change installation.

  • What is the dialog box file open

    I use an element of «File browse...» ». With firefox, a user can click on the Browse button provided or the corresponding text box to choose a file. However with IE7, the file dialog box to appear if the user clicks the Browse button.

    Can someone tell me how javascript can be used to open a file dialog box? (which is called when the user clicks the Browse button)

    Thank you.

    Hello

    Can someone tell me how javascript can be used to open a file dialog box? (which is called when the user clicks the Browse button)

    There is in fact no javascript code attached to this article. Browsers just deal with them differently.

    Download points your javascript options are limited because there are security issues special with an item type file upload, nothing specific with APEX, is a standard HTML thing, and it's a good thing because her search for a file has access to your file system.

    Take a look here [http://www.w3schools.com/HTMLDOM/dom_obj_fileupload.asp]

    Kind regards
    Carl

Maybe you are looking for

  • iCloud drive do not download on the new iMac

    I had to disconnect my iCloud account for a problem of credentials. Specialists apple has assured me that I loose any data even if all files have been removed from my computer (about 40 GB)... I reconnected my iCloud account but no files were downloa

  • Could not open the photos

    I just tried to open the application 'Photos' (or icon) on my Mac and received a message that says "Photos could not find the system 'photos library.photoslibrary' how can I do to recover it?  I have about 10,000 photos which are lost!   I run a sepa

  • Installation process of Windows XP freezes - Tecra A9

    I have problems with reinstalling Windows XP from CD.The installation process freezes right after that "the installation program expects your hardware configuration of the computer. Nothing is displayed.I can reboot with Ctrl-Alt-Delete. Is this a dr

  • How to avoid receiving e-mails from commercial sites

    Original title: unsubscribe e-mail Is there a way to prevent the receipt of e-mails from a commercial site that does not take into account your request should be removed from their mailing list?

  • Windows can't check for updates 80244019 error code.

    I have a problem, the system is vista home basic. Windows can't check for updates 80244019 error code. I have read many of the forms and ran from bugs that I found from microsoft. Further investigation indicates the RPC and DCOM service Launcher are