Indesign CS3(JS) dialog box

Hi
The script having simple dialog box is not displaying the dialog box. But the same script is running another machine. The dialog box is displayed. What may be reason for it?
Thanks
Suresh

Interactive mode might simply be off.
Read
http://www.adobeforums.com/webx?7@@.3c061d17/11 and check.

Similar Messages

  • [JS][CS3] Simple dialog box problem

    Hi
    I am wanting to make my script do 1 of 2 things depending on the result of a dialog box.  I cannot seem to register the users response.  Here is the code:
    var myDialog = new Window('dialog', 'Confirm Changes');
    myDialog.frameLocation = [600,400];
    myDialog.size = [590, 250];
    myImage = myDialog.add('image',[480,41,572,127],'/Macintosh HD/Applications/Adobe InDesign CS3/Scripts/Scripts Panel/Images/xxxx.png');
    myPanel= myDialog.add('panel', [10,10,580,240], 'Select the action you wish to use');
    //Adding Buttons
    myUseExistingTextButton = myPanel.add('button', [48,190,75,25], 'Use Existing Text',{name:'select'});
    myUseNewButton = myPanel.add('button', [260,190,75,25], 'Use New text as shown',{name:'select'});
    myCancelButton = myPanel.add('button', [480,190,75,25], 'Cancel',{name:'select'});
    myExistingTextWindow = myDialog.add('edittext',[20,40,230,200],'Existing Text');
    myNewTextWindow = myDialog.add("edittext",[250,40,460,200],"New Text");
    myResult = myDialog.show();
    if(myResult == true)
         if (myResult == 0)
                        alert("Old was selected");
         if (myResult == 1)
                        alert("New was selected");
    which gives the following result:
    All I want to do is use the selected button do do the next part of my script depending on the text selected.
    I will keep on looking, and di-secting other scripts, but any help here would be nice.
    Thanks as always
    Roy

    Here is code created with RapidScriptUI in about 2 minutes. It includes multiline editbox, dimensions without using co-ordinates  that display accurately cross platform and simple to edit code for beginners like you to learn and understand (This is a free advertisement).
    var rapidDlg = new Window('dialog',"Confirm Changes",undefined);
    buildWindow();
    rapidDlg.show();
    function buildWindow(){
    // Properties for rapidDlg.Panel1
         rapidDlg.Panel1 = rapidDlg.add('panel',undefined,"Select the action you wish to choose");
         rapidDlg.Panel1.margins= [20,20,20,20];
         rapidDlg.Panel1.orientation = "row";
    // Properties for rapidDlg.Panel1.Group1
         rapidDlg.Panel1.Group1 = rapidDlg.Panel1.add('group',undefined);
         rapidDlg.Panel1.Group1.orientation = "column";
    // Properties for rapidDlg.Panel1.Group1.EditText1
         rapidDlg.Panel1.Group1.EditText1 = rapidDlg.Panel1.Group1.add('edittext',undefined,"Existing Text", {multiline:true});
         rapidDlg.Panel1.Group1.EditText1.preferredSize.width = 200;
         rapidDlg.Panel1.Group1.EditText1.preferredSize.height = 100;
    // Properties for rapidDlg.Panel1.Group1.ExistingText
         rapidDlg.Panel1.Group1.ExistingText = rapidDlg.Panel1.Group1.add('button',undefined,"Use Existing Text");
    rapidDlg.Panel1.Group1.ExistingText.onClick = ExistingText_Clicked;
    // Properties for rapidDlg.Panel1.Panel2
         rapidDlg.Panel1.Panel2 = rapidDlg.Panel1.add('panel',undefined,undefined);
         rapidDlg.Panel1.Panel2.alignment = [' ','fill'];
    // Properties for rapidDlg.Panel1.Group2
         rapidDlg.Panel1.Group2 = rapidDlg.Panel1.add('group',undefined);
         rapidDlg.Panel1.Group2.orientation = "column";
    // Properties for rapidDlg.Panel1.Group2.EditText2
         rapidDlg.Panel1.Group2.EditText2 = rapidDlg.Panel1.Group2.add('edittext',undefined,"New Text", {multiline:true});
         rapidDlg.Panel1.Group2.EditText2.preferredSize.width = 200;
         rapidDlg.Panel1.Group2.EditText2.preferredSize.height = 100;
    // Properties for rapidDlg.Panel1.Group2.NewText
         rapidDlg.Panel1.Group2.NewText = rapidDlg.Panel1.Group2.add('button',undefined,"Use New text as shown");
    rapidDlg.Panel1.Group2.NewText.onClick = NewText_Clicked;
    // Properties for rapidDlg.Button3
         rapidDlg.Button3 = rapidDlg.add('button',undefined,"Cancel", {name:"cancel"});
         rapidDlg.Button3.alignment = ['right',' '];
    function ExistingText_Clicked(){
         alert(this.text +  ' was clicked!');
    function NewText_Clicked(){
         alert(this.text +  ' was clicked!');
    Steven
    http://scriptui.com

  • InDesign "Save As" dialog box for every operation in INDB book file; updating page numbers, etc.

    So I haven't used INDB files in awhile in InDesign, and today was the first time I attempted to adjust an old INDB (created originally with CS5).  For every operation of adjusting the book file, such as updating page/section number or adding/removing an INDD file I get a Save As dialog box for each constiuent INDD file.  This is quite annoying since the book has lots of INDDs, and I have to click through the tedious save as with each.  I previously worked with INDBs in CS5, and never encountered this, there was no need to save each INDD in the book just to update the page numbers.  I tried creating a new INDB in CS5.5 thinking that maybe it was because I was working from a file created with an older version of InDesign.  Does anyone know if there is a way to suppress the Save As dialog?  Another thing I noticed that is supremely frustrating is that this new build of InDesign doesn't default to saving the file in its original location, and I have unwittingly ended up saving files in other places, only to later realize it.  I am using InDesign CS5.5 Ver. 7.5.2 on Mac OSX 10.7.3  Any help is greatly appreciated. 

    It will only happen once (and frankly, what you are doing is a very bad idea).
    When you open the old book in CS5, you are converting to the new format. All of the legacy files also need to be converted, even if added to a new book in CS5.5, hence the Save As since ID will not overwrite the old versions until you tell it to (and that's the bad idea). I strongly recommend (though it's too late for any books you've already updated and overwritten) that you either continue to edit in the old version, or that you take the time to open each file in the original version if it's older than CS5, then export to interchange format (.inx or .idml, depending on version), open those files in CS5.5, save with new names so you don't overwrite anything, then add to a new book and proceed.
    One of the reasons I recommend this seemingly time-consuming approach is that there are too many reports (another one yesterday) of some sort of problem that pops up late in the editing cycle when converting legacy files to CS5/5.5 by opening them directly and saving. This is a belt and suspenders insurance approach, and is far less labor intensive than starting over, which might end up being your other option down the road if something goes wrong.

  • Download InDesign trial ? dialog box

    warning dialog box=
    the_following_disk_images_failed_to_mount_InDesign_7-5-LS1.dmg_invalid checksum
    OK?

    Has the download completed?  Did you receive any error messages while downloading?

  • CS3 JS Dialog Boxes

    Hi all,
    Does Illy CS3 JS now allow more stuff in Dialox Boxes?
    Can we now add Radio buttons etc. Can we also add images?
    Regards
    Norbert

    You can, but it's rather complicated. See the Bridge SDK documentation.
    JET

  • [JS][CS3] Print DIalog Box with ESCAPE

    I am using document.print(true) in my script.
    Is there a way to catch if the user pressed "CANCEL"? So I can keep track of how many prints were "skipped"
    Thank you, Alex.

    Just a quick illustration of how useful APID is:
    My wife still uses CS2 at work. We have a Riso digital duplicator which
    we use for printing booklets, invitations, etc. When printing from
    InDesign to the Riso machine, color management must be off or the blacks
    get printed as dark gray (about 95% line screen). Well, I tried to help
    out by printing a booklet, and like usual, I messed up and forgot to
    turn off color management. (I'm really good at messing things up!) ;)
    I decided to put an end to this problem, and create a solution which
    would always cause InDesign to send to this printer (only) with color
    management turned off. It took me a total of maybe 15 minutes...
    // DontManageColorForRiso.jsx
    // This script should be in the same folder as the document
    DontManageColorForRisoSourceCS4.indd
    // It is automatically called by the DontManageColorForRisoController
    page item.
    //events: docPrintConfigured,docPrinted
    // Header - matches anonymous function trailer at bottom
    (function(thePlugin)
    main();
    function main(){
    var theEventCode = thePlugin.eventCode;
    var doc = GetDocFromPageItem(thePlugin);
    switch(theEventCode){
    case "docPrintConfigured":TurnOffColorManagement(doc);break;
    case
    "docPrinted":app.colorSettings.enableColorManagement=true;break;
    function TurnOffColorManagement(doc){
    var printer = doc.printPreferences.printer;
    if(printer.constructor.name!="String"){return}
    printer=printer.toLowerCase();
    if(printer.match(/riso/)){
    app.colorSettings.enableColorManagement=false;
    function GetDocFromPageItem (pageItem){
    var guid = app.callExtension(0x90B6C,10014,pageItem);
    return app.callExtension(0x90B6C,10009,guid);
    // Trailer - matches anonymous function header at top
    )(theItem);
    Harbs
    http://www.in-tools.com

  • InDesign CS3 "White Box" when printing with linked Photoshop EPS files

    This problem has been covered before, but never really resolved:
    Robert Levine, "InDesign CS3 Erratic White Box Phenomenon with Placed Photoshop EPS files" #1, 1 Apr 2008 11:05 am
    Now, I'm aware that we should no longer be using EPS files. I wholeheartedly agree. But until we can convince the department to change to another format (namely PSD or TIFF) for our vast library of images, I need a workaround.
    It seems that setting the clipping path for each linked image to "Photoshop Clipping Path" resolves this issue. So I tried writing an AppleScript that would find each linked Photoshop EPS and set it's clipping path to "Photoshop clipping path", but it didn't work for me (my expertise with AppleScript is basically nil.)
    Can anyone assist with the creation of this script? Or does anyone have a better suggestion for solving or working around the Photoshop EPS erratic white box printing problem?
    Thanks!

    >Why??????????
    Because they've got zillions of EPS and have no time to resave them all and because it
    b should
    work even if Buko doesn't like EPS...
    (Your vendetta against EPS takes on strange proportions. Were you bitten as a child by a rabid EPS and have sworn to wipe them out? Must be an interesting story behind it ;) )
    Brian, this script seems to do the job with one very important caveat: I see no way of finding out which path is active in the EPS (in case that more than one). So the script simply activates the first in the list.
    tell application "Adobe InDesign CS3"
    set aDoc to active document
    set allLinks to links of aDoc
    repeat with n from 1 to (count allLinks)
      set aLink to item n of allLinks
      if link type of aLink is "EPS" then
       set anEPS to parent of aLink
       tell clipping path of anEPS
        set ePaths to photoshop path names
        if (count ePaths) > 0 then
         set clipping type to photoshop path
         set applied path name to item 1 of ePaths
        end if
       end tell
      end if
    end repeat
    end tell

  • Problem with Indesign CS3 missing save as dialog box

    I am having problems saving documents with Indesign CS3. I have upgraded it to the latest version, repaired permissions, shut down a restarted to no avail. This is Indesign CS3 running on a Macbook under Leopard 10.5.2. You can select save and it appears to save a file. However, if you select "save as", the dialog box to select a location never comes up. Nothing seems to happen. I can't figure it out, and it happens to any file. I have created test files and the same thing happens.
    Help!!!

    Trash preferences before re-installing. Also, try this weird procedure: open the equivalent dialog in one of the other Suite products on the same computer (assuming they're there). That's been known to solve the problem on Windows machines.
    Dave

  • InDesign CS3 Print Engine Error and Corrupt Print Dialog Box

    We are a networked office working on various files off of a server. After setting print settings in the print dialog box and saving the file, when another user (or the same user) reopens the file, the Print dialog box settings are changed in a bizarre, corrupted way, and the file will not print. We get the following error:
    Printing Error: The Adobe Print Engine has failed to output your data due to an unknown problem.
    and printing fails to the HP LaserJet 4240 PS (64 MB RAM).
    We all use Windows XP, SP2, Dualcore 3 GHz Pentium Processors with 3.5 GB of RAM.
    Specifically, the Print dialog box shows these strange settings:
    Scaling gets set to 0%, copies are set to 0
    Spreads are turned on
    Print Visible Guides and Baseline Grids are turned on
    All printers marks are turned on, offset is set to 0
    Use document bleed settings is turned on, include slug area is selected
    Output Text as Black is turned on
    Omit for OPI has all 3 file formats selected (EPS, PDF, and Bitmap)
    Usually resetting the Print dialog box and saving the file allows us to print but then the next time we open the file, the Print settings are corrupted again.
    Any solutions? Or any fixes in the works?
    Thanks for your help!

    We currently only notice this problem with files associated with one project. The project is a book of many chapters, each with it's own file. The problem affects multiple files and multiple users (4 out of 5 people working on these files have experienced the problem). It may very well be a problem caused by a different user opening the files after another has closed them.
    We have a LAN with multiple Dell servers running Windows 2003 and many end-user PCs using Windows XP. All printers are on the network but printing occurs locally, meaning that data sent to a printer does not go through a server.
    We could test the problem by copying a chapter to one person's computer and making them the only person who works on it for a day or two. It's just hard to do so because different people have different duties to perform on all files.
    Thanks for your help!

  • CS3 Data Merge - Missing Fileds in Data Merge Dialog Box

    Indesign CS3 5.0.1, XP SP2
    Hi all,
    I have a document that I have applied a Data Merge to.
    I use a table in Excel 2003 with contact details, name, address etc...
    When I open the Automation> Data Merge Dialog box I no longer see the list off all the fields as in Excel.
    However, I can preview and create the mail merged document and place items using tags e.g <<Field 1>>.
    When I try to remove the Data Source InDesign always crashes But I can relink to a new Data Source, this does not solve the problem.
    Thank-you all for your time and help!
    Alu

    >>Did you perform the merge? Once you do, ID creates a new document. Which document are you looking at?
    I am using the original document, not the product of the mail merge.
    >>I assume it's a CSV file. ID can't use and Excel file for data merge.
    Correct.
    I have tried saving the document as an .inx file and then re-opening, but I still cannot view the .csv data merge fields from the Automation> Data Merge dialog box.
    Any Ideas? - thx for the response Bob & K

  • CS3  Design Premium Save As/Export Dialog Boxes Hidden

    I posted this originally on the InDesign forum
    http://www.adobeforums.com/webx?128@@.59b652e3
    - since then, the problem seems to have expanded to the rest of the programs in the CS3 (or it was already existent and I didn't bother testing against it).
    Original Post
    'i"Every time I try to save, export, save as, or (recently) even open a new document now, the dialog box opens with the various options for a split second and then disappears. I think it disappears behind InDesign, but cannot be sure as InDesign will not minimize, even when I Force Minimize everything (Windows-H).
    'iSearched the forums high and low, and tried all of the suggested solutions. I'm on a single-monitor setup. I have reset preferences, deleted/drug out the Documents and Settings InDesign 5.0 Preferences Folder, re started etc. At my whit's end and don't really know what else to do. Are there any other fixes?"
    I know for a fact that Photoshop at least was working fine yesterday (created, saved and saved as multiple layered tiffs). I cannot remember if Version Cue updated just before I left or if I could properly create, save, and save-as then too and it was only after turning it off and returning this morning that it stopped working. Either way, any ideas?
    Thanks,
    Zach

    Okay, awesome! I did that and now the Open dialog box is showing - none of the others are though - does this mean that I'll need to go to each of my dialog boxes missing (save, save as) etc., resize in pshop to use correctly in InDesign? What do I do for the dialog boxes that are in InDesign and aren't showing, but are not in Photoshop (ala "Open New Library" or "Open New Book?")
    Thanks a lot for your help.
    -Zach

  • Problem GUI scripting an inDesign dialog box

    I've posted this on the inDesign forums, but haven't received any answers.
    I'm trying to automate the opening of .indd files with InDesign CS3. Naturally they often come in folders with attached/included linked files, and opening the .indd files results in a dialog box offering to 'Fix Links Automatically'
    Trouble is, there's a dialog default button 'Don't Fix', that is selected when sending a return to the inDesign process (that works OK).
    I'd like to select the 'Fix Links Automatically' button, but trying to send a click to the button doesn't work. I can get the button to flicker with multiple 'clicks', both by GUI addressing by name and by position, but the button won't respond. Even 20 consecutive clicks turns the button blue, but doesn't work.
    I think it's a bug, but is it Adobe InDesigns or Apples?.
    Any thoughts anyone?
    Regards
    Santa

    Thanks Budgie
    Turns out it's easy to tuen of the dialogs, and re-do links after opening the document.
    tell application "Adobe InDesign CS3"
    try
    activate
    set user interaction level of script preferences to never interact
    open theItem
    delay 5
    set myDocument to document 1
    tell myDocument to update links
    set myFontCheck to (count (every font of document 1 whose status is not installed)) = 0
    if not myFontCheck then say "[[rate " & TheSpeechRate & "]]There are fonts missing. " using TheVoice
    set myGraphicsCheck to true
    set myGraphics to all graphics of myDocument
    repeat with myCounter from 1 to count myGraphics
    set myGraphic to item myCounter of all graphics of myDocument
    set myLink to item link of myGraphic
    if status of myLink is not normal then
    set myGraphicsCheck to false
    if SpeakTheErrors then say "[[rate " & TheSpeechRate & "]]There are linked graphics missing. " using TheVoice
    exit repeat
    end if
    end repeat
    end tell

  • InDesign CS2 & Leopard: Place & Export dialog box areas cutoff

    I am having severe problems with InDesign CS2 and Leopard, and before anyone says "upgrade to CS3", we can't.
    Almost every time I go to place a graphic or export a PDF, the system hangs for a few seconds with the wheel spinning, then InDesign just quits.
    I also notice that part of the dialog boxes get cut off near the top.
    Anyone have similar problems?

    Even upgrading won't eliminate all the Leopard incompatibilities. If you
    upgraded to Leopard from Tiger the best advice is to go back.
    Have a look around this forum and the Creative Suite forum for plenty of
    conversation.
    Bob

  • File Format options not appearing in the Save As dialog box - InDesign CC

    So i was working with a legacy file (an .eps from illustrator4) that i placed into InDesign CC, and when i went to export as a jpg, the option to choose a different file format from the bottom of the dialog box was gone. Did i hit some crazy shortcut to remove the options, or is this a bug that occurs when working with certain legacy files? I've restarted InDesign, rebooted my laptop, deleted my Adobe preferences, reset my adobe warning dialogs, and I still cant export or save as any other file format because the option doesnt appear. And it doesnt matter if i create a new file or open an existing one. Please help. See the pic below. No option for file format on the bottom of the dialog box.

    Thank you very much!
    Reinstalling worked, but i'd still kinda like to know what caused this problem & if this will continue to happen. To me, reinstalling is pretty much like having to reboot anytime you go to IT -- they dont know what the problem is, they just know how to fix/stop it.

  • Indesign CS3 : Inset spacing preview in text box not there anymore.

    Hi!
    In Indesign CS2, I could see a "preview" of the inset spacing of my text boxes in "Preview Mode (W)".
    In Indesign CS3, I can't see it anymore unless I move my text boxes (the preview of the inset spacing of my text boxes shows only when I move the boxes).
    This is bad, because I can't see really fast which boxes have inset spacing and which ones don't.
    Please help me!
    Thanks,
    Chris.

    Yes.
    Normal Mode hides all of those things. But Preview Mode shows all of those things (unless otherwise selected in the "View" menu).
    I need to see the inset spacing of my text boxes in Preview Mode without having to move them.
    Here is an image of my text box in Preview Mode (guides, invisible characters, etc. are visible, but not the inset spacing): http://www.chris.lafacade.com/share/01.jpg
    Here is an image of my text box in Preview Mode while I move my box. As you can see, the inset spacing shows: http://www.chris.lafacade.com/share/02.jpg
    I need the inset spacing to show all the time in Preview Mode.
    Thanks!
    Chris.

Maybe you are looking for

  • HP Deskjet 2050 J510 series my scanner doesn't work

    got this HP as a birthday present, windows 7 says cannot scan This question was solved. View Solution.

  • Having problems installing the new flash player

    As the title say im having great problems installing the new flash player. I have downloaded it many times and tried installing each time, still nothing. Ive tried installing it offline with my computer totally disconnected from the internet, nothing

  • Search for documents created "today"

    There used to be a "today" button to use when I want to find a document to attach to an e mail, but the button is now gone.   "Yesterday" is still there.   How do I get "today" back? nancy

  • Curve 9300 scroller won't work

    For the past few months, my scroller has been sticking and freezing, but i have managed to fix it everytime by pressing down hard or doing a battery pull. Also, the screen would just randomly turn white and then the phone would restart. The white scr

  • Photoshop elements will not let me upload altered pics on to my facebook account.

    This only happens with pics that I have made changes too on photoshop elements. It was working fine for months until this started happening three days ago.  When I go to upload them onto my facebook. it blocks pics where they cant be upload it.