A way to detect an indesign alert ?

Hi all,
Is there a way to detect an alert like "missing fonts" or others at the open of a document ?
Thanks
Pierre RAFFA

You can detect a modal dialog by script:
tell application "Adobe InDesign CS4"
  if modal state then
                    say "Please close the modal [[emph +]] dialog." using "Whisper"
  end if
end tell

Similar Messages

  • Way to detect if an Indesign Document has unsaved changes

    I have an InDesign document that I have saved. After saving the document, I make some changes to it. Now I want to detect if there are any unsaved changes in the document through JSX. I have tried to use the property document.saved, but this method only tells me if the document was saved for the first time.
    If have some unsaved changes in a document that has been previously saved, document.saved still returns true.
    Is there any other way to detect unsaved changes for a document?

    @Kapoor – you could tell by the layoutWindow name. If a * is in front of the name, the document is not fully saved.
    if(app.documents[0].layoutWindows[0].name.match(/^\*/)){$.writeln("doc not saved!")};
    At least this is true for layout windows on Mac OSX.
    In Windows the little * could be at the end of the name.
    Can't remember. Currently I'm on OSX 10.7.5.
    If it is indeed on the left right side of the name, you have to check on what OS the script is running and do the match accordingly.
    Uwe
    //EDIT

  • A way to detect other nearby iPhones?

    Will there be a way to detect nearby iphones/ipod touchs, for multiplayer games?

    You can detect a modal dialog by script:
    tell application "Adobe InDesign CS4"
      if modal state then
                        say "Please close the modal [[emph +]] dialog." using "Whisper"
      end if
    end tell

  • Is there a way to detect two keys at the same time?

    Is there a way to detect the keys if the user is holding two keys down at the same time?

    yes, but you'll have to check outside of the event loop (i.e. don't check for it in the keyPressed method).
    just use an array of keys that keeps track of which keys are currently down and which are up. you could use a boolean array but I use an int array because... Im not sure I've just done it probably because of my C background. anyway, basic setup:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class MultiKey extends JFrame {
         int keys[];
         public MultiKey() {
              super();
              keys = new int[256];
              Arrays.fill(keys,0); // 0 = key is up
              enableEvents(AWTEvent.KEY_EVENT_MASK);
              show();
         public void processKeyEvent(KeyEvent e) {
              // the 0xff below binds the key code to below 256
              int key = (e.getKeyCode()&0xff);
              if (e.getID() == KeyEvent.KEY_PRESSED) {
                   keys[key] = 1; // 1 = key is down
              else if (e.getID() == KeyEvent.KEY_RELEASED) {
                   keys[key] = 0; // 0 = key is up
         protected boolean isKeyDown(int key) {
              return (keys[key] != 0);
         protected boolean isKeyUp(int key) {
              return (keys[key] == 0);
    }so now at any time in your code you can check key state by using the isKeyUp and isKeyDown methods. this is about as close as you get to input polling in java unless you use LWJGL or something similiar ;)
    you can try out a full executable example at my site here - just open up the jar and start holding keys down :)

  • Is there a way to create an email alert in iCal on the iPhone (as it's possible to do on the laptop)?

    Is there a way to create an email alert in iCal on the iPhone (as it's possible to do on the laptop)?

    Nope.
    You might be able to find another calendar app that can do that in the App Store.
    And, you can always leave Apple feedback here -> Apple - iPhone - Feedback

  • Is there a way to create an AUDIO alert when my MacBook Air (Mavericks) battery runs low (say 10%)?

    Is there a way to create an AUDIO alert when my MacBook Air (Mavericks) battery runs low (say 10%)?  I often miss the visual power percentage in the top bar, so would like an audio alert as well.

    For global alerts, yes:
    There is no need to do anything before the alert appears, and the MBA will not lose data should it go to sleep. If it goes to sleep at 0% you still have several hours to plug it in before it shuts down.
    I wouldn't even bother displaying the percentage value.

  • Is there a way to detect all the photos already transferred to double (or triple) in iPhoto, so do not occupy space unnecessarily? Thank you from France.

    Is there a way to detect all the photos already transferred to double (or triple) in iPhoto, so do not occupy space unnecessarily? thanks from France

    Look in you main photo library. Are there doubles or triple photos there? If so delete the extras.
    All photos are stored in the photo library. When you move a photo into an album the photo is not duplicated. The album contains a pointer back to the original photos. These pointers or aliases take up very little space.

  • Is there a way to detect motion and set markers automatically?

    My video includes walking around with the camera.  I walk, then stop and hold the camera in one area, then pan, then continue walking (and repeat). 
    While panning, there is some annoying flicker of vertical objects (beams, poles, whatever).  I can use a horizontal fast blur to fix this, but I only want the blur applied when there is panning (not when the camera is relatively still).  Doing it manually is cumbersome.
    Is there a way to detect when motion is going on (over a certain threshold)?  I would like PP to tell me when there is significant motion, and place markers in the points where it begins and ends (when motion goes over a threshold and then when it falls below the threshold).
    Thanks, experts!

    One thing you can try is to bring your footage into Prelude - it will lay out the entire clip so you can see thumbnail snapshots for the whole clip at once - that might give you a good start to see where there is a lot of motion.  Then, you can add markers very easily at all of those points - and when you send it over to Premiere, the markers will show up on your clip. 
    Not automated, but a good workflow to achieve what you are looking for.

  • Is there a way to detect a bad http client handle before it locks up LabVIEW?

    The attached VI demonstrates a simple way to hang LabVIEW such that the only way to recover full use of it is to kill the LabVIEW process. LabVIEW version is 11.0.1f2 and this problem will occur in both WinXP and Win7.
    Is there a way to detect when an HTTP Client Handle refnum is stale and should not be used?
    Is this a known bug?
    Attachments:
    Hang after Bad HTTP Client Handle.vi ‏15 KB

    Have you tried the bad reference comparator?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Is there a way to detect a other iphone near me

    Is there a way to detect a other iphone near me with a app or any other functionality of the iphone

    Just any iPhone? or one in particular?
    Find my Friends will allow you to locate people who have iPhones and have explicitly agreed to share their location with you. There are some third party apps which will allow you to locate people as well.
    Other than that, no.

  • Is there a way to detect if Excel is busy?

    I have a VI that is testing three products at the same time, and writing data to three different excel spreadsheets.  If more than one subvi is writing to Excel at the same time, I get an error.  Is there a way to detect if Excel is busy, and wait until it is not busy?
    metzler CLAD

    The correct answer is the one that Putnam (and others) suggested: Encapsulate all the logic to perform a single write into a VI that is used wherever you need to write to an Excel file. This structure will guarantee that the code will only be writing to Excel from one place at a time.
    If you don't want to have the different sections of the code waiting for their turn to come up, a variation on the theme would be to create a separate stanalone process that does nothing but write to Excel files. The rest of the code would pass it the data to be written using a queue. With this approach everybody seems to write at the same time, but the standalone process is actually serializing the Excel operations. This approach could even be extended to include the ability to read from files, but that is as they say, "...left as an exercise for the reader..."
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Is there a way to detect the end of a video?

    Is there a way to detect the end of a video.. .mp4 or youtube? I want to be able to detect the end of a video and then have it do something...ie play on timeline or go to and play symbol.

    For youtube the code would be something like this:
    view-source:calkaweb.herobo.com/video.html
    for HTML5 videos for youtube replace &version=3 with &html5=1 in the youtube URL
    I have no idea how to impletent the youtube code into Edge tho other than an iframe but that wouldn't work I've tried :
    http://forums.adobe.com/thread/1285212
    You would need to place all of the youtube codes into edge in order for it to work but I duno how to do that and no1 answered the question in the thread I made about it.
    as for MP4/HTML5 video you can use
    var video = document.getElementsByTagName('video')[0];
        video.onended = function(e) {
          /*Do Something*/

  • What's the best way to detect that text fits into ContainerControllers without scrolling?

    Hi.
    Question
    What's the best way to detect that text typed by user (or added programmatically) exceeds available container space and find out where starts truncated part? Is there available some other (than described bellow) easy way to detect it or disallow set of controllers to receive more characters that can be displayed in given composition area?
    My partialy failed attempt (simplified)
    For example lets say that I've got an editable textflow with attached two instances of ContainerController.
    var flow:TextFlow = createSomeFlowFromGivenString(sampleText),
        firstController = new ContainerController(firstSprite, 100, 30),
        lastController = new ContainerController(secondSprite, 600, 30);
    flow.interactionManager = new EditManager(new UndoManager());
    flow.flowComposer.addController(firstController);
    flow.flowComposer.addController(lastController);
    flow.flowComposer.updateAllControllers();
    With enabled vertical scroll policy I can compare height of the composition in last controller with height of the content:
    var bounds:Rectangle = lastController.getContentBounds(),
        overflow:Boolean =  lastController.compositionHeight < bounds.height;
    trace('Content does not fit into given area?', overflow)
    But when I switch vertical scroll policy off (lastController.verticalScrollPolicy = ScrollPolicy.OFF) - unfortunately this no longer works...(In my case scrolling should be dissabled, since text areas might have only one line with restricted width)
    Use case
    I want to create fillable form. Field might have a single or multiple lines. One field might start in the middle of the page, continue in the next line where it spreads through whole page and end in the - quarter of page width long  - third line. Text typed by the user can't exceed given area since it might cover some static text that sits right after/below field.
    Something like ascii image bellow:
    |                <PAGE>                    |
    |                                          |
    |                                          |
    |                                          |
    |               [Field starts here........ | 
    | ........................................ |
    | ........................................ |
    | Ends here..]                             |
    |                                          |
    |                                          |
    | [Another field] xxxx  xxxx xxxxxxxx x xx |
    | xxxxxxxxxxxxxxxxxxx                      |
    |                                          |
    |                              [One more.. |
    | .....]                                   |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    Info:
    [......]  <-- form fields starts with '[' character, and ends with ']'
    xxx       <-- sample, static text
    | and _   <-- page borders

    I've tried something like that previously, but it didn't work because then I've got vertical scroll policy to set to 'auto'. After changing verticalScrollPolicy to ScrollPolicy.OFF  in the last container it worked like a charm.
    Thanks zhen bian

  • Is there a way to put additional text alert sounds on an iPhone 3GS?

    Is there a way to put additional text alert sounds on an iPhone 3GS?

    If you think this is silly and would like to let Apple know this, you can contact them here:
    http://www.apple.com/feedback/iphone.html

  • Is there a way to package an InDesign CC book for earlier versions of InDesign - CS5 specifically?

    Is there a way to package an InDesign CC book for earlier versions of InDesign - CS5 specifically?

    You have to export the individual files to .idml, open those in CS5 and add the CS5 versions to a new CS5 book.

Maybe you are looking for

  • Solution Manager does not get service definitions from SAP in self diagnosi

    Hi, In our production solution manager transaction solution_manager, self diagnosis we are getting a warning message on our development solution manager.  Solution Manager XXX does not get service definitions from SAP. The production Solution Manager

  • Using logical database to fetch data in Module Pool programming

    I am unable to use logical database to fetch data in case of Module pool programming. Has anyone ever faced problems with it...?

  • Data acquisition with time stamp

    Hi I'm using NI DAQ 6211 to acquire acceration, strain and temperature from a VI. I have made several modifications and my last two vis are attached. I need to get 1000 data points from a encoder and sampling the period is by far the best way to get

  • Mulitple libraries vs. playlists

    Can somebody explain the differences between libraries and playlists? What should I do with Christmas songs or St. Patrick's songs - things I may not want to hear year round? Thanks.

  • Imported .mov file does not play in Flash export

    I have imported a .mov file as a background for a flash banner I want to put on my website. The exported flash file plays all of the text animations, but the .mov background does not work -- it's just frozen on the first frame. I have read similar pr