Opens the simple dialog box but not palette

Hello

So, I'm new to Scripting InDesign, but being a developer does not make this great not for me.

In any case, I accumulate ExtendScript Toolkit stuff, and when I run it, it works. But as soon as I run the same script in InDesign CC, then my palette is not displayed.

Made me dig in and I made 2 very simple scripts. The two scripts works and display a dialog box / palette, when it is running in ExtendScript Toolkit, but only the version dialog box works, when I run it in InDesign CC.

Suggestions?

Text 1

var myWindow is new window ('dialog', 'Form');.

myWindow.show ();

Text 2

var myWindow is new window ('pallet', 'Form');.

myWindow.show ();

Thanks in advance

Bo Dudek

WebDeveloper

Hi Bo,

Add "#targetengine" session"at the beginning of your script..." "

#targetengine "session"; // not needed in Illustrator/AfterEffects

var myWindow = new Window ("palette");
var myMessage = myWindow.add ("statictext");
myMessage.text = "Hello, world!";
myWindow.show ( );

Watch ScriptUI for Dummies | Peter Kahrel

Tags: InDesign

Similar Questions

  • HP Officejet 6700 Premium: Don't scan and the scan dialog box will not open

    Since I upgraded my computer to Windows 10, I'm unable to use my scan on my HP Officejet 6700 Premium function.  I can't even open the scan dialog box to look at the options etc.  I tried to find 'Scanner and printer' in painting, but it does not recognize.  Any suggestions?  I already deleted the printer and re-installed.  It was working fine before on Windows 8.

    Hello

    Thank you for using the HP forum.

    You can download and install the software COMPLETE features of HP printing for your operating system:

    http://support.HP.com/us-en/drivers/selfservice/HP-OfficeJet-6700-premium-e-all-in-one-printer-series-H711/4322971/model/4323605#Z7_3054ICK0K8UDA0AQC11TA930S6

    Once you have downloaded and installed the software, FULL of features, you will be able to print and scan.

    Hope that helps.

  • RightFax Print Option - does not open the Fax dialog box

    Currently using Word 2003 with RightFax 9.3.  Word and RightFax are offered through Citrix.  When choosing, file, print and by selecting the printer RightFax the fax dialog box is not open to allow the user to enter the recipient, fax number, etc..  The document goes through the server, but cannot be sent because there is no reference to a fax number.

    Any suggestions?  (could not get Open Text support).

    Hello

    You should maybe contact your system administrator and check with them. Also, follow the link that gives suggestions for updating the RightFax feature.

    http://www.Captaris.com/support/documentation/RightFax/9_3/RightFax9_3FeaturePack2Readme.htm

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • API to open the page dialog box

    Hi all

    I there any Apex API to open the Page dialog box in V5.0.

    I used apex.navigation.dialog, but it gives an error when loading the page.

    Please suggest.

    Concerning

    Rupesh Gupta

    Apex.navigation.dialog from code using JavaScript is not often necessary, but there are cases where it is necessary and it can be done. The tricky part is that the URL should be generated by the server as PREPARE_URL. The general idea is to extract the url from the rest of the javascript code that is generated. This can be done on the server or the client.

    I have an example of using apex.navigation.dialog in my blog on the custom menus

    http://hardlikesoftware.com/weblog/2015/07/13/Apex-5-0-custom-menus/

    Regarding the example code above, I never recommend using eval and it is better to use the apex.server API (or DA) than the old htmldb_Get. You can return to the server to have it prepare the URL using ajax, but wherever possible it is best to have the server generate the URL when the page is loaded. If you do not use ajax have the server split the URL you can call apex.navigation.dialog and not eval.

    It would be really nice if in the future PREPARE_URL had an option to return to the dialogue page URL or the URL and strings but also separate options. Or it could be a different utility API.

  • Why Firefox doesn't open the printer dialog box whenever it starts

    When Firefox opens the printer dialog box opens automatically - why and how can I make sure that he does this.
    This never used to happen on previous versions of firefox

    Some web pages automatically shows the print dialog box. In particular, the pages Web sites have specially formatted for printing can do.

    Restore you tabs that you have opened previously, or commissioning with your home page (s)? I suspect that one of them generates the dialog box. You can view by clicking on each of them and reload the page to see if it's on this page.

  • When I connect my camera (panasonic TZ5) to my PC. the AutoPlay dialog box does not appear. Help

    When I connect my camera (Panasonic TZ5) to my PC. The AutoPlay dialog box does not appear. Help please

    Hello

    · What is the operating system installed on the computer?

    · Were there any changes made on the computer before the show?

    You can access the link below which holds information on the problems of auto play: http://windows.microsoft.com/en-US/windows7/Troubleshoot-AutoPlay-problems

  • Help open the levels dialog box and save the entered settings.

    Hey,.

    I'm trying to work out how to save the applied middle, whitepoint ect to a variable after the levels dialog box was called from javascript?

    I am writing a script that allows you to adjust the levels on a single image, and then I have to repeatedly apply these settings on a batch of images specified.

    Is this possible? I figured out how to open and apply the levels but not to save the entered settings.

    Any help would be appreciated!

    I use photoshop cs6 on a mac.

    Thank you

    Mark

    Sorry Paul, but I think that you're wrong. The 'adjustment' list should have descriptions for each channel that has been set by the user. These descriptors must have the key for the channel as a referencetype, b/w in a list entry points, exit points black and white as a list and as a double gamma. I think that if these aren't in the descriptor, it is because the user has not changed the default values.

    But what if all you want to do is reapply the same settings later that you don't really need to know what setting were. You simply store the descriptor that contains for later use.

    function newLevels() {
    var desc2 = new ActionDescriptor();
    var ref1 = new ActionReference();
    ref1.putClass( charIDToTypeID('AdjL') );
    desc2.putReference( charIDToTypeID('null'), ref1 );
    var desc3 = new ActionDescriptor();
    var desc4 = new ActionDescriptor();
    desc4.putEnumerated( stringIDToTypeID('presetKind'), stringIDToTypeID('presetKindType'), stringIDToTypeID('presetKindDefault') );
    desc3.putObject( charIDToTypeID('Type'), charIDToTypeID('Lvls'), desc4 );
    desc2.putObject( charIDToTypeID('Usng'), charIDToTypeID('AdjL'), desc3 );
    return executeAction( charIDToTypeID('Mk  '), desc2, DialogModes.ALL );
    };
    // store the descriptor holding the users values for later
    var newLevelsDesc = newLevels();
    // do something else like open another image
    // then when needed make a new adjustment layer using those settings
    executeAction( charIDToTypeID('Mk  '), newLevelsDesc, DialogModes.NO );
    
  • 27.0 Firefox fails to open the print dialog box

    I have firefox set to update automatically. All of a sudden, perhaps after the most recent update, I can't print anything. If I try to print, I just get an audio windows error and nothing more. I don't get the print dialog box.
    I tried to reset the configuration of the printer, and I tried to reinstall Firefox all together. Neither sovled the problem.
    Please advice.

    Thank you.

    new information in bug reports seem to link it to avast.

  • First Watch a unexplained file to open a project dialog box but does not say what he wants or case?  Really?

    It is a common phenomenon: I opened a project in first, and instead of the interface user of first, I see a file dialog box.  Apparently first is looking for a file, since there is an option for "display only exact name match.»

    But corresponds with what?  Is nowhere on the screen there a file name, or anything to tell me first seeks.  Isn't this monumentally stupid?

    And so forth, over and over again for each file first can not find.  Your only viable solution is to hit "Skip All", since you are never given a file name.

    Once the project is in place, you can browse your timelines for any red video event.  And when you do a right-click on one of them to view its properties, first show you often inexplicably the name of an audio file.  Sometimes, you see the name of a video file.  But what is missing here, Adobe?  THE path.  You get the name of the file and nothing else.  You have still no idea where first expected to find the file, so you have no way of troubleshooting of his disappearance.

    And I thought the dialogue of media-reissue of old FCP links was bad.  Is there a solution for this?  What is the workflow expected here?

    Thank you!

    Looks like you're on Mac El Capitan (OS 10.11.x), is that correct? If Yes, some dialogs changed with 10.11 Mac and affected dialog boxes are more display the title bar, which is where this information is displayed (this affects a number of applications, not just the first one). Is a question that is being investigated because he was not a problem on Mac OS 10.10.x.

    Since CS6, it has improved to the Media link dialog box (as seen in the screenshot by shooternz).

  • Lightroom 5.0 does not automatically open the import dialog box when the inserted memory card

    Lightroom 5.0 fails to detect the memory card and import dialog box open. It has always worked well in Lightroom 2, 3 and 4.  Same cards, same camera, same iMac using OSX 10.8.4. Manual import works OK, the card is detected fine.

    Thank you very much, this TOTALLY WORKED for me.  Win 10, LR 5.7.1.  An inserted SD card of Nikon D7000 in the SD card reader built-in to laptop and Windows automatically started both Lightroom AND automatically went straight into LR import feature.  Perfect.

    (However, if LR is already running, insert the card SD initiates not import feature, despite having turned on the required checkbox in the preferences.)  Nevertheless, it is progress!   :-)

  • How to open the Options dialog box to display the curves on the properties panel

    I can find the dialog box options display of curves when I opened the curves by the image > adjustments > curves but correction I do it is not about when to use the curves in the properties panel.  I prefer using the properties panel, but try as I might I can't find a way to access the curves Display Options there.  I need to go back to the 'light' button so that my shadow is in the lower left corner and highlights are in the upper right corner, and not vice versa, as they are now.

    You will find the Display Options of curves for the curves adjustment layer on the shortcut menu in the properties panel

  • In Firefox 40 I can no longer click on the Blue Star and open the Bookmark dialog box

    When the current page already contains a bookmark, this one by pressing Ctrl + D also does absolutely nothing.

    Fix regressions. Please add automated tests to catch these regressions in the future.

    Thank you very much for all of your volunteer work very hard on the browser.

    Hi WalterGR, for me, 40 Firefox works in the same way as previous versions. One click adds a bookmark in the bookmarks unordered folder (you see the animation of the star in the list). A second click opens the Panel to modify bookmark. CTRL + d also works normally.

    Could test you mode without failure of Firefox? It is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    Does not work if Firefox: Hold down the SHIFT key when you start Firefox.

    If Firefox is running: You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    and OK reboot.

    Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).

    Any difference?

  • When I click on 'Tools' and then 'Options' Firefox hangs instead to open the Options dialog box. What can I do?

    No further details, that's it: it freezes while trying to open the "Options" from the drop-down menuOutils.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.

    You can check for problems with preferences.

    Rename or remove the file prefs.js and numbered possible prefs-# .js and the file user.js to reset all default prefs.

  • With parts attachments in thunderbird, I can open the file .xlsx directly but not .docx I use OpenOffice 4.0.1 Please help

    Clicking on attachments .docx screen just fashes briefly, but then nothing happens. I need to download the .docx files, then they open normally.

    With .xlsx clicking these attachments open normally

    I also have the problem. TB 24.6, MS Word 2010 (via Office pro 2010) attachments (doc and docx) options are set to open in Word format. When you click on, the screen flashes and... nothing. I can save, detach, and the document works as usual. Just TB will not open of in. PowerPoint, excel works via clicking on the attachment... simply no word

  • When I plug my sd card in the computer, the "AutoPlay dialog box' does not appear

    HP Pavilion Slimline s5 - 1114 Desktop Windows 7

    Have you changed the mixed setting Auto Play "ask me every time"?

Maybe you are looking for