Use dialogue "palette."

I try to use the "palette" dialog, but when I run the script' dialog box opened and closed immediately, I tried to use #targetengine, but I want to close the script binary and binary file reads #targetengine.

What can I do?

Remove the line with the #targetEngine.

Save as jsxbin.

Open in a text editor.

Add the line #targetEngine to the top.

Wrap the entire binary file in an eval statement:

eval ("binbinbinbinbinb");

Save as .jsx (not .jsxbin).

Ariel

Tags: InDesign

Similar Questions

  • Modeless window by using the "palette" does not remain upward in CS5

    I have a problem running a modeless dialog box with CS5 (on 64-bit Windows).  My own script does not stay in place and either don't extract of SnpCreateDialog.jsx that comes with the ESTK and is supposed to demonstrate modeless dialog boxes.  I tried:

    1. From the Scripts panel
    2. Add #target photoshop
    3. Be sure that the drop down menu says Photoshop, no CTSK

    as suggested in an older discussion at http://forums.Adobe.com/message/3008230#3008230 .  (I decided to make a new discussion as this one was marked answered.)

    It also does not stay in place when moved to the folder of Photoshop Scripts and run on the file menu in Photoshop.

    The corresponding code in SnpCreateDialog.jsx is:

    function SnpCreateDialog() 
    {
         this.windowRef = null;
    }
    
    /**
     Functional part of this snippet. 
     
     Create a window of type "palette" (a modeless dialog) and display it.
    
     @return True if the snippet ran as expected, false otherwise.
     @type Boolean
    */
    SnpCreateDialog.prototype.run = function()
    {
         // Create a window of type palette.
         var win = new Window("palette", "SnpCreateDialog",[100,100,380,245]);  // bounds = [left, top, right, bottom]
         this.windowRef = win;
         // Add a frame for the contents.
         win.btnPanel = win.add("panel", [25,15,255,130], "SnpCreateDialog");
         // Add the components, two buttons
         win.btnPanel.okBtn = win.btnPanel.add("button", [15,65,105,85], "OK");
         win.btnPanel.cancelBtn = win.btnPanel.add("button", [120, 65, 210, 85], "Cancel");
         // Register event listeners that define the button behavior
         win.btnPanel.okBtn.onClick = function() {
              $.writeln("OK pressed");
              win.close();
         };
         win.btnPanel.cancelBtn.onClick = function() {
              $.writeln("Cancel pressed");
              win.close();
         };
    
         // Display the window
         win.show();
              
         return true;
              
    }
    
    /**
     "main program": construct an anonymous instance and run it
      as long as we are not unit-testing this snippet.
    */
    if(typeof(SnpCreateDialog_unitTest) == "undefined") {
        new SnpCreateDialog().run();
    }
    
    
    

    If I put a breakpoint on the "return true;" line, then I see that the dialog box, in fact, was created and is visible, but he came back to win.show () and will disappear as soon as the script continues.

    Any help would be appreciated.

    Kenneth Evans wrote:

    The advantage of a modeless dialog box, is that you can continue to do things in Photoshop while the dialog box is in place.  At least, I suppose, since I don't have to work, including the example ESTK.

    Sorry but no, most of the Photoshop UI is disabled while a script is running even if the script displays a palette window.

    A dialogue window waiting for show() end. This is what makes the modal dialog boxes. A palette window does not expect show() end. He runs the rest of the script.

    In the example you posted the entire script after the window display is return true, then ends. That is why there is no blink the window. If you put a line of $.sleep (1000) before the real return line, that display the windows until sleep wait times then the script will exit and the window will close. That's why with Photoshop palette windows are really only useful progress bars or other type of script status windows.

    Although windows palette can allow the user to intreact with application UI while the window is displayed and does not work with Photoshop. The window shows only while the script runs and Photoshop UI interaction limited a running script.

    I tested windows palette in CS2, CS3, CS4 and CS5 with the same results. The window shows only while the script is running.

    With Photoshop if you want the user to interact with the user interface you will need to create a Panel.

  • How can I get my guides to align the work plan using my align palette? Whenever I hit the button Align, the guide turns completely off the drawing surface.

    I'm not crazy, he used to work. I could use the palette line up to put my guides centered, right-aligned, left-aligned, etc. I started having this problem in CS5 when I hit the button Align and the guide would go completely out of the drawing surface. I thought it was just a bug and would leave with upgrade to CC. But I'm getting the same problem! So boring.

    It's an old bug that sting when you line up with the palette alignment guides while using an extract of the limits is selected.

    You can disable it in the General preferences or in the drop of the alignment pallet.

  • dialogue vs palette

    How can I edit text in Illustrator using a PALETTE window when you use the PALETTE DIALOG box works but with no, can anyone explain to me why?

    my script is...

    #target illustrator

    var sourceDoc = app.activeDocument;

    var myMaterials is ["FILME POLYESTER HOLOGRAFICO", "FILME BOPP STAND", "FILME BOPP BRANCO", 'PAPEL LAYER', 'PVC PLANO'];.

    var myWin is new window ('dialog', 'Valves');.

    myWin.orientation = "row";

    myNewList = myWin.add ('dropdownlist', undefined, myMaterials);

    myNewList.selection = 0;

    myOkButton = myWin.add ('button', undefined, 'Ok', {name: 'ok'});

    myCancelButton = myWin.add ('button', undefined, 'Cancel', {name: 'Cancel'});

    myNewList.onChange = function () {}

    var item = myNewList.selection

    var myTextFrame = sourceDoc.textFrames.getByName ("MATERIAL");

    myTextFrame.contents = item;

    }

    myWin.show ();

    Hello Gustavo Del steep, Hi Ferrarezzi,.

    Still very small and imperfeicoes HA.

    The ok button is not necessary. The Cancel button does not work. And the first choice from the drop-down list is not working too (because there is no onChange event).

    Perhaps it is better to do something like this:

    function executar(valor){
        var sourceDoc=app.activeDocument;
        var myTextFrame = sourceDoc.textFrames.getByName("MATERIAL");
        myTextFrame.contents=valor;
        };
    
    var myMaterials = [" --- ATENDER SELEÇÃO --- ", "FILME POLIÉSTER HOLOGRÁFICO", "FILME BOPP METALIZADO","FILME BOPP BRANCO","PAPEL COUCHÊ", "PVC PLANO"];
    
    var myWin = new Window ("palette","Materiais");
    myWin.orientation = "row";
    
    myNewList=myWin.add ("dropdownlist", undefined, myMaterials);
    myNewList.selection = 0;
    
    myCancelButton=myWin.add ("button", undefined, "Cancelar",{name: "cancel"});
    myWin.cancelElement = myCancelButton;
    myCancelButton.onClick = function() {
    myWin.close();
    }
    
    myNewList.onChange = function () {
        var mensageiro = new BridgeTalk();
        if (myNewList.selection != 0) {
            var opcao = String (myNewList.selection);
            mensageiro.target = "illustrator";
            var mensagem = "executar('" + opcao + "')\n" + executar.toSource();
            mensageiro.body = mensagem;
            mensageiro.send();
            myNewList.selection = 0;
            };
        };
    
    myWin.show ();
    

    Have fun

  • import of FP using the iak file

    We can add a fieldpoint system to a project using the click right-> New-> target or device-> fieldpoint. This will scan the ports com for a device, and once added, let me drag - move a channel.

    Fieldpoint (large) unit has already been plugged on the test bench, and that it is impossible for me to add the fieldpoint to the project that I described above. I do however, have a file iak for units and so I am able to export channels of this or MAX fieldpoint somehow?

    Second, there are 15 units on the bus and as far as I know, using the palette fieldpoint (photo) I can't

    (a) communicate only one channel at a time, and

    (b) the VI will open the channel, read/write and close the bottle. Is it possible to open all channels in the initialization, then use tell datasocket read / write, and close all references on shutdown?

    Ed,

    Glad to hear that worked.  There seems to be some minor differences between 8.2 and 8.6 as to how files of .iak are recognized in a project.

    ____________________________________________________________________________________________________________________

    Second, there are 15 units on the bus and as far as I know, using the palette fieldpoint (photo) I can't

    (a) communicate only one channel at a time, and

    ____________________________________________________________________________________________________________________

    Most of the modules will allow you to read/write all channels at the same time.  You can also create custom groups of channels in a module if you wish.  http://digital.NI.com/public.nsf/allkb/86AD45702FF1E71986256B4300644E45

    I hope this helps.

    (b) the VI will open the channel, read/write and close the bottle. Is it possible to open all channels in the initialization, then use tell datasocket read / write, and close all references on shutdown?

    Not sure where you're headed with this question.  You can use datasocket, but it is slow, with a lot of overhead.  I tend to stick with the FP Read and Write FP.  Here is a link to a tutorial that best describes what happens during a read/write public Service operation, I found.  http://zone.NI.com/DevZone/CDA/tut/p/ID/3346

  • How to use the structures of the event for long-running tasks

    I created a state machine that scans a cluster of Boolean controls in a State of 'home '. Most of the States run a Subvi or two in ~ 100 ms or less.

    However, a State run for 10 seconds.

    The code works but the user interface is limited because the controls are outside the cluster because they provide inputs to the structure of State machine case but do not cause changes in the State. In other words, I all orders cluster stacked vertically on one side of the main panel and do not have the flexibility to move the controls to the more intuitive positions on the Panel.

    My question: How can I convert this code in a structure of the event and keep this long term 'event' and prevent that the operator by clicking another button event during the execution of this event?

    Thank you

    You say you have controls outside of your main code... You should really put these inside and manipulate them in a State of your state machine is initialized. This allows you to make changes to the code easier and limits of line entering your outside loop.

    You can do different things to lock the user.

    You can disable specific controls so that they can't be clicked or edited.

    You can use the palette of the mouse to define the busy cursor and disabled again once finished, I do this a lot during treatment when my code something loads the user just clicked.

    One of my favorites is to set a Boolean value in your data that passes through you event titled structure "disable mouse." When the value is True, a mouse down event will effectively reject the event, clicking on disable. I also added an event mouse move where if the bool disable the mouse is set to True, it moves an indicator of string with the mouse by telling the user why it is disabled.

    If you want more specific suggestions, I suggest to post an excerpt of your code, or attach your screws, so that we can better help you.

  • selection of window active when running the labview test program using pause option?

    Hello

    I have a question on how to activate the window of the first front window.

    I use LV8.6.

    Question?

    I did a labview program such that it is paused the program using 'dialogue of a button' box

    If she sees the test to fail, and if this 'button one zone' is active, I need to switch back

    in the main window, but for now I can't switch to the main window unless I close

    the "dialog box for a button.

    How to move the active window while I do not close the box of "diaglog a button?

    Can anyone answer my question?

    Thank you in advance.

    Create your own dialog a button (change template):

    Select by default instead of Modal.

    Start your new "dialogue of a button:

    http://forums.NI.com/NI/board/message?board.ID=170&thread.ID=436924

    Jean-Marc

  • Using the producer/consumer with GPIB/VISA model

    Hi all

    So I have a .VI I learned to communicate with my camera, I joined. I tried strip down as much as possible, just to understand the concept. It basically just takes a resource VISA name, use this open VISA, then uses the same resource VISA to write a command that reads the data from my machine (xall?) and then bed in 500 bytes and which prints. If it works, and it's good.

    I try to use producer/consumer model for doing essentially exactly what this guy. I have a RLC, I want to press a button that starts my measure, I want him to taste several times per second, save the data in a text file or .csv and then stop when I press the stop button. Thus, he will be given indefinitely potentially.

    I would like to have the data in a format something like:

    Time C R

    0 5.0 4.3

    ... etc.

    I read the link of model p/c above, but my LabView knowledge is still low. Currently, my plan is to take the part of read/write of my attached VI, which are a sub - VI and then put that in the pink box in the VI for the producer/consumer above page that is labeled "produce data to be placed in the queue":

    What prevents me to do this, it's that I can't get the piece of read/write to work properly as a standalone Subvi.

    What is the right way to go about this?

    Thank you!

    I put if you actually found data of your instrument.  Your instrument is not made to take new measures or just send you the last reading, she did.

    Insofar as the file IO, I recommend that you learn to use the palette for the file IO functions.  You need to create your file before your loop, write in a text file inside and then close after the loop.  I don't do the thing the comment on the express VI entry will do what you want.

  • Impossible to delete empty columns of controls palette

    Certainly a low priority, in fact just a gene.

    I was using the palette Editor (menu below shortened manually) today in order to copy the existing palette icons by saving them as glyphs. When you leave the palette I have not spared, but had not in fact made no changes.

    The palette editor does not display the additional columns.

    However, there are several additional columns when you use LabVIEW normally.

    This question is LV Version 10.0.1

    Thanks for your suggestions.

    James

    James,

    The range of controls is actually sizing itself to adapt the names of each subpalette.  In the case of most of the subpalettes, the names are fairly short ('Modern', 'Silver', 'Classic', etc.), but I noticed that you have the palette 'UI Control Suite '.  "This palette gets to have the too verbose display name of"UI Control Suite: OR themed Custom Control Suite", and the palette is design to hold the entire text."

    One thing you can do to fix this is to change this subpalette to have a shorter name, which should not affect the functionality.  Moreover, the community page for more control OR on the custom theme is here.

    Chris M

  • Make the palette of colors in an image

    Guess I have the sentence doesn't have the right to question... will try once again =

    1. I did a painting
    2. I want to do another painting by using the palette of color this picture (usually the swatches in Corel Painter, who does)
    3. No color indexed
    4. Palette of RGB or CMYK
    5. work with photoshop CS3
    6. the painting I did below
    7. Loved editor - need to do more art using the same colors - without picking up one both of the image

    summerdazecatweb.jpg

    Photoshop can do pretty much anything. What you did in painter, is exactly what you said in your first post you want to do, i.e. using indexed color. If you actually agree with to convert your image into 256 shades of color (which is what you did to the painter), you can do this in Photoshop by an indexed image. And unlike your example painter, who is only limited to the only option which makes a rigid preset, you can actually select the number of colors, the different modes of interpretation of the color (perceptual, Adaptive), etc..

  • Society feeling that I used to be able to modify a file of tones for me?

    I recently sent a document in a large printing company to have a printed record.  The document was created in Illustrator using only two colors. They said they couldn't print because he was still more than two colors, and I need to change it to a document of two colours using the Pantone Spot color.

    I've never had to do for a company to print before, but I also never had a project of two color before. I opened the file upwards and my selected objects and 'customized' work and remove all samples except the two colours which were now Pantone Spot Color (HSB) I needed. Literally, it took me 2 minutes.

    The reason I ask is because they pretty much said I don't know what I'm doing, that a designer is totally insulting.  We all have to make new things from time to time, but it's an insult. Should not, a large company of printing with years of experience, know how to do this for me? They took the original design file... Maybe they don't know what they're doing?

    Any clarity on as to why I needed to do and not them is greatly appreciated.  Also... any direction as the best way to use tones on CMYK is appreciated also.

    Yes, a printing company should be able to make these changes for you and if their time is negligible and that they would in most cases not charge you.

    Several times, you talk to a customer representative and not a real person with Illustrator in order to make the changes. They probably just got aggravated with your work and did not want to put the extensions in for someone else that your job right.

    Make sure that your file is built in only 2 colors, using the palette of separations he and only confirming the presentation of CMYK inks.

  • Cannot use Kubota Photoshop CC 2014

    I do most of my editing in Lightroom, but still do some things in Photoshop using the tools of Kubota. I've recently upgraded to the new Photoshop CC 2014 but can't install Kubota with the new version. I contacted Kubota and they said if I can download Photoshop CC before the most recent update I should be able to always use the palette, but I can't find a way to go back and get the older version. What I really do is to simply upgrade from versions CS4 or CS5, CS6, but I can only find options on the Adobe site to get CC. hoping someone can help. I thank very you much in advance!

    Out of curiosity, Kubota has said they are working to make their product compatible with Photoshop CC in the future?

    I believe you can buy a perpetual license CS6 from here:

    Creative Suite 6

    Click on the purchase link to see all pricing options.

    -Christmas

  • How can I find the palette layers in PSE 8?

    Hello

    I use Photoshop 8 editor and try to create retro-style/technicolor images by using the palette layers and creating grayscale images have disappeared through red, green and blue filters and then colorized the (as described here: http://www.youtube.com/watch?v=wJQj2ykF7fs). I'm looking for the palette layers.

    Thank you very much for your help!

    Elements not channels. It takes the video on Photoshop. However, you can add an array of strings to PSE using tools of either Grant (free):

    http://www.cavesofice.org/~grant/challenge/tools/index.html

    or elements + simplephotoshop.com (inexpensive, does several other things that the tools of Grant).

  • Limit the number of colors used

    Hello world

    I created a design for a t-shirt contest. I have not read until now that you are only allowed to use a maximum of 8 colors Design you!
    Problem is that I don't know how many colors I used actually :/
    I read articles on how to convert the colors by saving the file as a giff as posterising who all seem to make my work look like a waste of time...
    I have attached the image and if someone has ideas to all as to how I should go about it they would all greatly appreciated!

    Thanks again!

    Steph

    colour adjusted racoon_01.jpg

    Possibilities:

    (a) GIF or PNG with manually selected palette and dithering.

    In my opinion, we should not use dithering for printing on textile.

    (b) access palette manually in Photoshop (black, white, green, blue,

    darkbrown, Brown) by choosing typical colors.

    Save it as racoon.ase for Exchange.

    Apply vectorizing in Illustrator, use this palette.

    The result is a vector image - best fits for the textile one

    dithered raster graphic.

    For example, not optimized.

    Cordially - Gernot Hoffmann

    Image reproduced in JPEG - can have more than 6 colors.

    Edited: swatch Exchange: *.ase

  • Hand coded CSS, Dreamweaver CSS, long hand, short hand CSS palettes?

    I am new to CSS and coding by hand am and my hand coded CSS works but I got it from a book and it was coded in hand short syntx.

    I tried to write the CSS in Dreamweaver and it dose not work... so I tried using the palettes of DW that dose also do not work.

    I think the DW dose does not have the background color and background image at the same time but hand coded thi is also not allowed why?

    / * My HTML code * /.

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > ""

    < html >

    < head >

    < title > < / title >

    < link rel = "stylesheet" type = "text/css" href = "test.css" / >

    < / head >

    < body >

    < form id = "comment form" action = "/" >

    < fieldset >

    < label for 'name' = > name < / label >

    < input id = "name" type = "text" / >

    < / fieldset >

    < fieldset >

    < label for 'Email' = > Email < / label >

    < input id = "email" type = "text" / >

    < / fieldset >

    < fieldset >

    < label for 'comment' = > comments < / label >

    < textarea id = "Comment" rows = "10" cols = "10" > < / textarea >

    < / fieldset >

    < / make >

    < / body >

    < / html >

    / * My CSS that works * /.

    fieldset #comment-entry form,

    Comment # form textarea {} fieldset

    width: 400 PX;

    padding: 5px;

    -font size: 1.4em;

    border: none;

    background: #e2e1d7 url(img/input-bg.gif) top of horizontally to the left.

    }

    / * CSS that the dose does not work * /.

    fieldset #comment-entry form,

    Comment # form textarea {} fieldset

    Width: 400 PX;

    padding: 5px;

    font size: 1.4em;

    background-color: #e2e1d7;

    background-image: url(img/input-bg.gif);

    background-repeat: repeat-x;

    background-position: left top;

    }

    Hello

    I forgot the explanation (it's the problem with cut - paste - post).

    In the dreamweaver dialog box to select all the items, but if you start to type ahead of the dialog box displays the following selections do not appear.

    Try adjusting the delay time of code hints in your preferences.

    PZ

Maybe you are looking for

  • No computers to lost password recovery

    Someone put a password on my computer, iphone 4 - not available to usr, my screen blew, need help please I have my android, but can't even get to the cloud to see if his I find active

  • I can't move folders/files in the iTunes library

    Hello I am reorganizing my iTunes library after the implementation of a server. Even if I used the dialog box in iTunes (Preferences) to move the files, many, many links were broken. There is now a location in the library moved with the following pat

  • cq893a: printing problem

    When printing autocad hollow, it is automatically reversing the artwork of both roll and cut sheets (A4 / A3) not only this cannot be able to center the plot in sizes A4 & A3. I want to check that the problem was printer, PC, drivers and software or

  • The procedure entry point DnsGetPrimaryDomainName_UTF8 could not be found in the library of dynamic links DNSAPI.dll

    Hello I use windows 2008 standard R2, I am missing _msdcs, _tcp, _udp folders from Server DNS. How can I retrieve it?

  • retrieve the phone number

    TelephonyManager mTelephonyMgr = (Context.TELEPHONY_SERVICE) context.getSystemService (TelephonyManager); Dim num = mTelephonyMgr.getLine1Number (); the num is proving to be null, I even used the debugger to probe each value in mTelephonyMgr, but non