reading the filter values (unsharp mask) defined in the dialog box

for my sharpening script, I should be able to store values defined in the dialog for later use unsharp mask. The script calls the dialog box with DialogModes.ALL, then the values are set manually. Is it possible that I can tell the script to read the values defined and store them in variables.

Can't find a topic referring to this problem.

Thanks for any help.

Hans

2016, use it at your own risk.

#target photoshop

try {}

var idUnsM = charIDToTypeID ("UnsM");

var theResult is executeAction (idUnsM, undefined, DialogModes.ALL);.

var theAmount = theResult.getUnitDoubleValue (stringIDToTypeID ("amount"));

var theRadius = theResult.getUnitDoubleValue (stringIDToTypeID ("radius"));

var theThreshold = theResult.getInteger (stringIDToTypeID ("threshold"));

Alert ("amount" + theAmount + ' \nradius ' + theRadius + ' \nthreshold '+ theThreshold ")

} catch (e) {};

based on the code of michael l hale.

function checkDesc2 {(theDesc)

var c = theDesc.count;

var str = ";

for (var i = 0; i)

Str = str + ' key "+ i +" = "+ typeIDToStringID (theDesc.getKey (i)) + ': ' theDesc.getType (theDesc.getKey (i)) +"\n"+ getValues (theDesc, I) +"\n ";

};

Alert ("desc\n\n" + STR);

};

check.

function getValues (theDesc, number) {}

switch (theDesc.getType (theDesc.getKey (theNumber))) {}

case DescValueType.ALIASTYPE:

Return theDesc.getPath (theDesc.getKey (theNumber));

break;

case DescValueType.BOOLEANTYPE:

Return theDesc.getBoolean (theDesc.getKey (theNumber));

break;

case DescValueType.CLASSTYPE:

Return theDesc.getClass (theDesc.getKey (theNumber));

break;

case DescValueType.DOUBLETYPE:

Return theDesc.getDouble (theDesc.getKey (theNumber));

break;

case DescValueType.ENUMERATEDTYPE:

return (typeIDToStringID (theDesc.getEnumerationValue (theDesc.getKey (theNumber))) + '_' + typeIDToStr ingID (theDesc.getEnumerationType (theDesc.getKey (theNumber)));)

break;

case DescValueType.INTEGERTYPE:

Return theDesc.getInteger (theDesc.getKey (theNumber));

break;

case DescValueType.LISTTYPE:

Return theDesc.getList (theDesc.getKey (theNumber));

break;

case DescValueType.OBJECTTYPE:

return (theDesc.getObjectValue (theDesc.getKey (theNumber)) + '_' + typeIDToStringID (theDesc.getObject Type (theDesc.getKey (theNumber)));

break;

case DescValueType.RAWTYPE:

Return theDesc.getReference (theDesc.getData (theNumber));

break;

case DescValueType.REFERENCETYPE:

Return theDesc.getReference (theDesc.getKey (theNumber));

break;

case DescValueType.STRINGTYPE:

Return theDesc.getString (theDesc.getKey (theNumber));

break;

case DescValueType.UNITDOUBLE:

return (theDesc.getUnitDoubleValue (theDesc.getKey (theNumber)) + '_' + typeIDToStringID (theDesc.getUn itDoubleType (theDesc.getKey (theNumber)));

break;

by default:

break;

};

};

Tags: Photoshop

Similar Questions

  • Move the dialog box - start with the values defined at the current position?

    My apologies in advance if this is a stupid question.

    With a selected object and the active selection tool, I press return to get the dialog box move.

    For some reason, it seems random values entered in the horizontal and vertical fields. Instead, I just want the boxes to always start at 0 so that I can decide where the action, instead of having to manually delete these fields.

    Can someone put me straight on how to get that box to behave as I want what it?

    The numbers in the boxes are not random. They are the last move used values. They are kept to be used if you use a Cmd (Ctrl) d, the shortcut to repeat last transformation.

  • Retrieve the value of the dialog box

    Hello

    I have a class that extends the dialog box. A few Radiobuttns are added. I want to get the value of the RadioButton selected the actual class of the screen, call the dialog box by clicking the Dialog.OK button. The code I tried is as follows:

    My class of the screen:

                    XXXDialog clScrn = new XXXDialog ();
                    if (clScrn.doModal() == Dialog.OK) {
    
                        // I click Ok, but this is never shown
                        Dialog.alert("Closed & here");
                        Dialog.alert("Selected = " + clScrn.getSelectedItem());
                    }
                    clScrn = null;
    

    The dialog class-

      public XXXDialog() {
            super(Dialog.D_OK, "Select Item", Dialog.OK, null, VERTICAL_SCROLL | VERTICAL_SCROLLBAR | Field.USE_ALL_WIDTH | Field.USE_ALL_HEIGHT);
            rbg = new RadioButtonGroup();
            rb1 = new RadioButtonField("One", rbg, false, Field.USE_ALL_WIDTH);
            rb2 = new RadioButtonField("Two", rbg, false, Field.USE_ALL_WIDTH);
    
            rb1.setChangeListener(this);
            rb2.setChangeListener(this);
    
            add(rb1);
            add(rb2);
        }
    
        public void fieldChanged(Field f, int context) {
    /*
    Actually, I want to know which field was clicked RadioButton or Ok button. If it is Ok, then I want to hide and return back to screen.
    */
    
            try {
                    RadioButtonField fd = (RadioButtonField) f;
                    item = fd.getLabel();
                    System.out.println("Selected = " + item);
            } catch (Exception e) {
            }
    
            try{
                ButtonField fd = (ButtonField) f;
                System.out.println("********* Button PRESSED = " + f);
                this.close();
            } catch (Exception e) {
            }
    
            System.out.println("*********** Field Count = " + f.getManager().getFieldCount() + " Index = " + f.getIndex());
        }
    
        public String getSelectedItem() {
            return item;
        }
    

    The XXXDialog class is in a separate file of java.

    Can anyone help me on what to do and how to achieve the goal.

    Thank you

    I found my solution. What I did is: -.

    In my main screen, I call the as dialog box

    clScrn.doModal ();

    Dialog.Alert (Come Back here");   I see this alert as soon as the dialog box is closed.

    In my class of dialogue, I have only the Ok button, dialog can be closed using the ESC key as I implemetned the code-

    Dialog box does not close on ESC
    {} public boolean keyChar (key char, int status, int time)
    Boolean retVal = false;
    {Switch (Key)}
    case Characters.ESCAPE:
    break;
    }
    Return retVal;
    }

    So now, there is no other means to close the exception, Ok button dialog box and I make sure that when Ok is clicked, 1 radiobutton is selected.

    Thank you all for the time and effort.

  • In the dialog box constant value

    Hello

    Is it possible to keep the values in the dialog box once I entered? I mean there is value if I run the script again?

    var myWidth=prompt("PLEASE ENTER YOUR TEXT FRAME WIDTH VALUE (IN POINTS)","")
    

    For example if I get 10, next time, that the default value must be 10.

    Screen Shot 2016-02-25 at 5.32.00 PM.png

    Not sure we can use const not variable (var)?

    Kind regards

    Kitty

    Well, not quite. Before displaying the prompt, you want to extract the label. So move the line before 04 08 and change 04 to something like:

    myWidth = prompt ("Enter etc...", myWidth)

    and then it should work. Obviously, test it first.

    Ariel

  • Consult the Page element values in the dialog box confirm dynamic action

    Hello

    I can return values to the Page item in the dialog box confirm dynamic action.

    I have a dynamic Action and I using the Action - confirm to display the confirmation message. I'm trying to refer point Page P1_EMP_NO say in the Confirmation box as shown below.

    Action - confirm
    Text - * & P1_EMP_NO.* "test123".

    When I have to run so that a dynamic action, confirmation shows only 'test123', the value for P1_EMP_NO is not displayed.

    My question is that we can refer such values as described above OR is there any other way to do it.

    ----
    Thank you
    Deepak

    Hi Deepak,

    You can see no elements in the confirm dialog box.
    You will need to write your own javascript and refer to elements such as dialog box

    $v('P1_EMP_NO') 
    

    Kind regards
    Kees Vlek
    -----
    Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66
    If the answer to question please change replied and mark the appropriate post as correct / helpful.

  • Value of the parameter is not displayed when moving from page of the dialog box

    Hello

    The question I face, is that I have a backup button with the logic in the PFR in which I call a page of dialogue that has an OK button. I give the floor to press ok another page. I need to capture a XXParty parameter that I put in the CO LIC key but is not displayed in the central of the PR of the other page that is called when you press the OK button. Probably I'm missing something very small. Any help would be greatly appreciated. Thank you


    SAVE BUTTON controller LIC... (Call the dialog box and the parameter)
    =============================================
    If (SaveButton! = null)
    {am.invokeMethod ("addNotes", params);  Transaction record.
    System.out.println ("save backwards");
    Try to build your own Page of dialogue here...
    String MainUrl = "OA.jsp?page=xxksms/oracle/apps/imc/ksms/webui/ShipperOverviewPG & retainAM = Y;
    OAException descMesg = new OAException ("XXTSA", "XX_KSMS_SAVED_NOTES");
    OAException instrMesg = new OAException ("FND", "FND_CANCEL_ALERT");

    DialogPage OADialogPage = new OADialogPage (OAException.INFORMATION, descMesg, null, MainUrl, null);
    OK button to send back the values of the PartyID for CO of the ShipperOverview Page.
    System.out.println ("The party ID is" + left); It is displayed.
    dialogPage.setPostToCallingPage (true);
    java.util.Hashtable formParams = new java.util.Hashtable (1);
    formParams.put ("XXParty", out); Part definition ID in XXParty.
    dialogPage.setFormParameters (formParams);
    pageContext.redirectToDialogPage (dialogPage);


    Partial code in the process asks in the called ShipperOverview Page of the dialog box's OK button
    ====================================================
    super.processRequest (pageContext, webBean);
    Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
    String XXId = pageContext.getParameter ("XXParty"); Try to recover part ID here of page of the dialog box.
    System.out.println ("The PartyID is" + XXId);

    Salvation;

    Try one of these two options.

    1. pass the value of the part directly in the URL & get it 2nd co:
    String MainUrl = 'OA.jsp?page=xxksms/oracle/apps/imc/ksms/webui/ShipperOverviewPG&retainAM=Y&XXParty="+Party;

    2. After selecting the button ok in the dialog box get the parameters in CO 1 himself then using URL forward, send them to CO 2

    If (SaveButton! = null)
    *{*
    * //Your code... *.
    *//..............*
    *//............*

    Default OAException = new OAException ("XXABCD", "XXABCD_GNO_DELETE_WARNING");
    DialogPage OADialogPage = new OADialogPage (OAException.WARNING, default, null, "","");
    dialogPage.setOkButtonItemName ("DeleteYesButton");
    dialogPage.setOkButtonToPost (true);
    dialogPage.setPostToCallingPage (true);
    String lineId = pageContext.getParameter ("lineId");
    Hashtable ht = new Hashtable();
    HT.put ("lineId", lineId);
    HT.put ('actor', actor);
    HT.put ("empId", empId);
    dialogPage.setFormParameters (ht);
    pageContext.redirectToDialogPage (dialogPage);

    *}*

    * combination else if (pageContext.getParameter ("DeleteYesButton")! = null) {*}
    String lineId = pageContext.getParameter ("lineId");
    String = pageContext.getParameter ("actor") actor;
    Var empId = pageContext.getParameter("empId");
    HashMap formParams = new HashMap (1);
    formParams.put ("lineId", lineId);
    formParams.put ('actor', actor);
    formParams.put ("empId", empId);
    pageContext.forwardImmediately ("OA.jsp?page=/xxx/oracle/apps/xxabcd/appraisal/webui/DrillDownPG",
    NULL, KEEP_MENU_CONTEXT,
    NULL, formParams, true,
    ADD_BREAD_CRUMB_NO);
    *}*

    --
    GsrC

  • How to freeze my application until the dialog box is closed?

    Hi everyone, I wonder how to freeze my application until the dialog box is closed.

    Please look at my code first:

    inputDialog=new InputReadMessageNumberDialog(selectedGroup.getName(),msg,numPost,choices,values);
    UiApplication.getUiApplication().invokeLater(new Runnable()
    {
      public void run()
      {
       inputDialog.show();
       if(inputDialog.doModal()==Dialog.OK){
       System.out.println("FROM: " + inputDialog.getFrom()+" TO:"+inputDialog.getTo());
       }
      }
    });
    

    As I throw the runtime exception, then I tried to do this:

    inputDialog=new InputReadMessageNumberDialog(selectedGroup.getName(),msg,numPost,choices,values);
    UiApplication.getUiApplication().invokeLater(new Runnable()
    {
      public void run()
      {
       inputDialog.show();
    
      }
    });while(true){  synchronized(this){    if(inputDialog.isClosed) break;    else wait(500);  }}if(inputDialog.doModal()==Dialog.OK){
    System.out.println("FROM: " + inputDialog.getFrom()+" TO:"+inputDialog.getTo());
    }
    

    She also throws an exception too. Now I don't know how to solve this problem.

    Any ideas?

    Thank you!

    Steve

    While I have deep religious convictions against the complicity of an author of the modal dialog box,

    I can say that this code seems to work and these dialog box classes are easy to use. If you

    Look at the API these altneratives will be pretty obvious.

    but there are two usages mixed with a be commented (both

    Work as much as I KNOW).

    String [] ch = new String() {"ACCEPT", "REJECT"};
    int [] vx is new int [] {Dialog.YES, Dialog.NO};.
    D = new dialog box dialog (m_tc, ch, vx, vx [0], new Bitmap (1,1));
           
    D = new dialog box dialog box (Dialog.D_YES_NO, m_tc, Dialog.NO, Bitmap (1,1), 0) new;
    F = d.getFont (police);
    d.setFont (f.derive (Font.PLAIN, f.getHeight () - 1));
    int x = d.doModal ();

    This will block your thread until there is something to "xx."

    However, I must reiterate that you evaluate the options before deciding that you need

    to lock all the other options. This is especially true in this environment where things

    might take some time and resources are limited.

    If you want to hang your entire application, no doubt you

    can define a volatile indicator around the doModal call and have other threads check it.

  • 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); «,

  • How to use a button in a dialog box without closing the dialog box

    I defined a button located in a dialog box. I want this button to refresh an outputText but when clicked, the managed bean method is called as expected and the dialog box is closed that I don't want.

    <af:popup id="dataFilterPopup">
      <af:dialog id="d5" contentHeight="500" contentWidth="600" stretchChildren="first">
      <af:panelGroupLayout layout="vertical">
      <af:commandButton text="Count" id="cb1" action="#{pageFlowScope.ReportDataFilterBean.count}" partialSubmit="true" partialTriggers="countText"/>
      <af:outputText id="countText" clientComponent="true" value="Number: #{pageFlowScope.ReporDataFilterBean.countValue}"/>
      </af:panelGroupLayout>
      </af:dialog>
    </af:popup>
    

    The managed bean counting method sets the value of the countValue.

    public void count() {
     countValue = 10;
    }
    
    public int getCountValue() {
      return countValue;
    } 
    

    I see two errors:

    1. you may use the 'action' of attribute because it causes the navigation there is no transition rule such that the current page is just refreshed, so your dialog box is closed. Use 'actionListener' rather;

    2. in order to refresh the component, you must set the 'partialTriggers' attribute but not the attribute 'partialTriggers' the command button:

    Dimitar

  • initialize the dialog box with img

    Hello

    I want to import img in a dialog box, as described here: Images in Acrobat JavaScript dialog part 2 additional prepress

    I import my icon on the other side and it is loaded, as the button appears with this icon. The iconToHex.pdf has two images assigned to the fields: Button1 and img2.  Button1 icon is imported to the button "Smile" and the other "img2" icon I try to import in the dialog box, but it does not work . The dialog with two buttons: 'Close' and 'Wink' and under the buttons is a warning: JavaScript window. I tried different icons for "img2" sizes: 20 x 20 and 200 x 200 so, it doesn't work. Could you help me please to get the icon in the dialog box.

    var importImg = {app.trustedFunction (function (targetImg)}

    try {}

    shortPath var = "/ Macintosh HD/users/tmpAcrobat / ';

    app.beginPriv ();

    var doc = app.openDoc({)

    cPath: shortPath + "iconToHex.pdf."

    acachees: true

    });

    app.endPriv ();

    } catch (e) {}

    Console.println ("could not open the file of the icon:" + e);

    return;

    }

    var myIcon = doc.getField (targetImg) .buttonGetIcon ();

    var streamIcon = util.iconStreamFromIcon (myIcon);

    Return streamIcon;

    });

    IMPORT IMAGES:

    var oIcon = importImg ("Button1");

    var oSmile = importImg ("img2");

    var oWink = importImg ("img2");

    app.addToolButton({)

    cName: "btnDialog."

    cEnable: true,

    oIcon: oIcon,.

    cExec: "app.execDialog (myDialog)."

    cLabel: "Smile."

    cTooltext: "cTooltextSmile1."

    NPO:-1

    });

    var myDialog = {}

    Load the original image

    initialize: {function (dialog)}

    This.t = 1; State of the image value

    Dialog.Load ({}

    img1: oSmile,.

    });

    },

    called when you press the "wink"

    Tunb: {function (dialog)}

    If (this.t == 0) {}

    Dialog.Load ({}

    img1: oSmile,.

    Tunb: "wink"

    });

    } else {}

    Dialog.Load ({}

    img1: oWink,.

    Tunb: "Smile".

    });

    }

    the image swapping state value

    This.t = (this.t - 1) *-1;

    },

    called when Cancel button pressed

    closed: {function (dialog)}

    Dialog.end ("Cancel")

    },

    Describes an aspect of the dialog box

    Description: {}

    name: 'Smile', / / title of the dialog box

    items: [{}

    type: 'image', / / type of the element

    height: 200, / / height of the element in pixels

    Width: 200, / / width of the element in pixels

    item_id: "img1" / / year ItemID of this element

    }, {

    type: "display."

    align_children: "align_row."

    items: [{}

    Close button

    type: 'button ',.

    item_id: "closed."

    name: "close".

    }, {

    image selector button

    item_id: "Tomb."

    type: 'button ',.

    name: "wink."

    }]

    }]

    }

    };

    Kind regards

    Alex

    There is a bug in this version of Acrobat (and perhaps the reader as well). It will not display the images in a dialog object.

  • Generate the log file for the dialog box

    Hi all


    I'm generating information for the dialog box as a .txt log file format. That means that if the box is checked, the log file will be give ' checkbox1 - 01.»   Check the report, sizes against the information on tickets and slug jobs"is checked


    If the checkbox is not checked, the log file will be give ' checkbox1 - 01.»   Check the report, sizes against ticket and slug information on employment"is not checked


    and also the entry "myText2" also needs to generate the log file


    Can someone help on this... Help would be appreciated!



    var l is new window ('dialogue');.

    myGroup1 var = w.add ("panel", undefined, ' P & & G check the list ');

    myGroup1.alignChildren = 'left ';

    CheckBox1 var = myGroup1.add ("checkbox", not defined, '01.   (Check the ratio, size against the information on tickets and slug jobs");

    CheckBox2 var = myGroup1.add ("checkbox", not defined, '02.   "" "Check images are linked");

    var checkbox3 = myGroup1.add ("checkbox", not defined, '03.   Visually check the progress of KV/model/CP images");

    var checkbox4 = myGroup1.add ("checkbox", not defined, '04.   Visually check the progress of other elements such as Logo and bottle");

    var checkbox5 = myGroup1.add ("checkbox", not defined, '05.   Check the positioning of the markup language");

    var checkbox6 = myGroup1.add ("checkbox", not defined, '06.   Ensure that all measures are calculated Live based area");

    var checkbox7 = myGroup1.add ("checkbox", not defined, '07.   After that the resizing of the picture KV frame open to cut and bleed");

    var checkbox8 = myGroup1.add ("checkbox", not defined, '08.   Complete Magenta if there is insufficient image');

    var checkbox9 = myGroup1.add ("checkbox", not defined, '09.   ("To ensure that the document's bleed, crop gutter and slug information brands ');

    var checkbox10 = myGroup1.add ("checkbox", not defined, '10.   Make sure that the final work is updated on the server");

    var checkbox11 = myGroup1.add ("checkbox", not defined, '11.   ("Enter time cmd");

    var myGroup2 = w.add ('panel', undefined, 'The operator name');

    var myText2 = myGroup2.add ("edittext", undefined, "");

    myText2.characters = 25;

    myGroup2.orientation = 'left ';

    var buttons = w.add ("group");

    Buttons.Add ('button', undefined, 'Export to PDF', {name: 'ok'});

    Buttons.Add ('button', undefined, 'Cancel');

    w.Show ();

    ~ group();

    ~ If (myGroup1.alignChildren.value! = true) {}

    ~ alert ('yes')

    //~ }


    myDoc = app.activeDocument;

    w = [];


    DESCRIPTION: Make a TXT file

    myDoc = app.activeDocument;

    Log1 = makeLogFile (app.activeDocument.name.split('.') ([0], myDoc, true);

    log (log1, app.activeDocument.name);

    ~ log2 = makeLogFile ("test", myDoc, false);

    ~ Journal (log2, "Text file log base 2");

    Log1. Execute();

    ~ log2.execute ();

    function makeLogFile (aName, aDoc, deleteIt) {}

    var logLoc; path to the folder that will contain the log file

    try {}

    logLoc = aDoc.filePath;

    } catch (e) {}

    logLoc = getmyDoc (). parent.fsName

    }

    var queue = aFile (logLoc + "/" + name + ".txt");

    If {(deleteIt)

    aFile.remove ();

    return aFile;

    }

    var n = 1;

    so that {(aFile.exists)

    aFile = File (logLoc + "/" + String (n) + ".txt" aName);

    n ++

    }

    return aFile

    }

    function getScriptPath() {}

    try {}

    Return app.activeScript;

    } catch (e) {}

    Return File (e.fileName);

    }

    }

    function log (aFile, message) {}

    var today = new Date();

    If (! aFile.exists) {}

    do the new log file

    aFile.open ("w");

    aFile.write (String (today) + "\n");

    aFile.close ();

    }

    }

    function log (aFile, message) {}

    var text = o;

    If (! aFile.exists) {}

    do the new log file

    aFile.open ("w");

    aFile.write (message + "\n" + "\n" + String (w) + "\n");

    aFile.close ();

    }

    ~ aFile.open ("e");

    ~ aFile.seek (0.2);

    ~ aFile.write ("\n" + message);

    ~ aFile.close ();

    }

    myDoc.close (SaveOptions.no);

    Thanks in advance

    Steve

    Hi Steve,.

    There are some errors in your code.

    1. function 'getmyDoc' is used, but not created.
    2. fucntion 'getScriptPath' is created but not used. (In any case, this will not give you error)
    3. function 'journal' has defined two times with the same length of the parameter.

    etc...

    Here, I have modified your code. Try this.

    var w = new Window ("dialog");
    var myGroup1 = w.add('panel', undefined, 'P&&G Check List');
    myGroup1.alignChildren = "left";
    var checkbox1 = myGroup1.add ("checkbox", undefined, "  01.  Check the ratio, sizes against job ticket and slug information");
    var checkbox2 = myGroup1.add ("checkbox", undefined, "  02.  Check images are linked");
    var checkbox3 = myGroup1.add ("checkbox", undefined, "  03.  Visually check the progression of KV/Model/CP images");
    var checkbox4 = myGroup1.add ("checkbox", undefined, "  04.  Visually check the progression of other elements like Logo and Bottle");
    var checkbox5 = myGroup1.add ("checkbox", undefined, "  05.  Check the placement of Language Tagging");
    var checkbox6 = myGroup1.add ("checkbox", undefined, "  06.  Ensure that all measurements are calculated based on Live area");
    var checkbox7 = myGroup1.add ("checkbox", undefined, "  07.  After resizing the KV image frame opened up to trim and bleed");
    var checkbox8 = myGroup1.add ("checkbox", undefined, "  08.  Fill Magenta if there is inadequate image");
    var checkbox9 = myGroup1.add ("checkbox", undefined, "  09.  Ensure the document has bleed, crop marks, gutter marks and slug information");
    var checkbox10 = myGroup1.add ("checkbox", undefined, "  10.  Ensure the final artwork is updated in the Server");
    var checkbox11 = myGroup1.add ("checkbox", undefined, "  11.  Enter time in CMD");
    var myGroup2 = w.add('panel', undefined, ' Operator Name');
    var myText2 = myGroup2.add("edittext", undefined, "");
    myText2.characters = 25;
    myGroup2.orientation = "left";
    var buttons = w.add ("group");
    buttons.add ("button", undefined, "Export PDF", {name: "ok"});
    buttons.add ("button", undefined, "Cancel");
    w.show ();
    myDoc = app.activeDocument;
    log1 = makeLogFile(app.activeDocument.name.split('.')[0], myDoc, true);
    log(log1, app.activeDocument.name);
    log1.execute();
    function makeLogFile(aName, aDoc, deleteIt)
    {
        var logLoc = "";
        try
        {
            logLoc = aDoc.filePath;
            } catch (e) {}
        var aFile = File(logLoc + "/" + aName + ".txt");
        var n = 1;
        while (aFile.exists)
        {
            aFile = File(logLoc + "/" + aName + String(n) + ".txt");
            n++;
            }
        return aFile
        }
    function log(aFile, message)
    {
        var text = w;
        var rep = "";
        if (!aFile.exists)
        {
            aFile.open("w");
            var today = new Date();
            rep += String(today) + "\n";
            rep += message + "\n" + "\n\n";
            for(var i =0;i
    

    Kind regards

    Cognet

  • Feature request: option to not have an action button in the dialog box

    As is, the dialog box requires you to have an "OK" button and a "Cancel" button (the name can be changed...) - which will remove the dialog box. Buttons more than that and you must define an incidental view or place in points of view buttons - what is very good, except when a dialog box serves more as a framework, in which case it would be better if only one button dismissed the dialog box (for example "made").

    Rob

    Here's a way without papers to create a dialogue with just one 'fact' button.  Not sure you want to rely on this good:.

    local LrDialogs = import "LrDialogs".
    local LrFunctionContext = import "LrFunctionContext".
    local LrTasks = import "LrTasks".
    local LrView = import "LrView".

    function search local button (x, label, visited)
    If visited == nil then went = {} end

    If type (x) ~ = 'table' or visited [x] then return nil end
    visited [x] = true
       
    If x._WinClassName == 'AgViewWinPushButton' and

    x.title == tag can
    Return x;
    end
           
    for k, v in pairs (x) is
    local result = button Search (v, label, visited)
    If the result then end result
    end
       
    Return to zero
    end
       
    local f = LrView.osFactory)

    local command = {f: column}
    f: static_text {title = "Look Ma! Not OK or cancel. »},
    f: edit_field {value = "fields"},
    {f: push_button {title = "Do It"}}

    LrTasks.startAsyncTask (function)
    While true
    local okButton = button Search (controls, 'OK')
    If okButton then
    okButton.enabled = false
    okButton.visible = false
    return
    end
    LrTasks.sleep (0.1)
    end
    end)

    {LrDialogs.presentModalDialog}
    {title = 'Test', content = speed control, cancelVerb = "Done"}

  • 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.

  • Issue of change event in the dialog box.

    Hi all

    I'm having a problem with a user dialog box. The dialog box should use eventchange to update aspects of the dialog box based on a user selection in a drop-down list box. The problem I encounter is that eventchange does not recognize the change of no selection to the first selection. IE, a user will have to select something else first, then change to what they want to be recognized. Is there something better that would solve this problem? or is the problem something else entirely?

    Thank you

    Artemis

    Hey, Artemis,

    The simplest solution would be to use the event EventInitialize to set the combo box to a default value when the dialog box opens, and your settings dialog box to match the selection.  In this way the first change makes the user would trigger change of value.

  • Why "limit maximum instances of this event in the queue" in the dialog box change events?

    Why I "would limit the maximum instances of this event in the queue" in the dialog box change events?

    I think that this is new for LV 2014, but I couldn't find an explanation for an instance of good use. A research on OR displays only the 2014 help text, which explains what it does, but not why?

    Does anyone know good arguments to use this option?

    Thanks in advance.

    Justin Tyme

    It is useful for user interface elements that can enqueue actions as quickly as they can be made.

    For example, say it takes takes 1 second to take a picture and save it. The user presses the button "Take a photo", but they do not see a new image file again after a wait of 250 ms (human beings humans can be impatient) so they press twice. Finally, they see a new file image... and then another... and then another... To get rid of this possibility, check this box.

    Or that you have a cursor to adjust some settings. Moving the cursor updates very fast! If the user swipes from 0 to 1 then the program might try to send all the rest as a parameter to your instrument, which takes some time. Instead of sending all of these values, it is probably better if the software can keep up with the cursor and send a value of about 1 at the same time, the cursor said 1. If you do not check this box, the user can be 1, but the unit will continue to receive values from 0.53, 0.54, 0.55...

Maybe you are looking for

  • Why FCP is not create backups?

    All of a sudden the backups are not created. It is on a new machine. It was their creation on my first two projects. Now, it is not the case. Any ideas? Thank you Tom

  • Siri is broken after upgrade to iOS 9.2

    After upgrading iOS to the 9.2.  Siri has lost his voice and takes no action when I give his orders to

  • OfficeJet Pro 8600: just installed new HP cartridges and ink colors are disabled!

    It's very expensive 4 950 XL and 951 cartridges XL that I bought at Staples a couple of months. I noticed right after installation that bright red in my images were now feel like dull brown. I printed a few pages from the control panel of the printer

  • Establishing a Contact Group

    I can't set up a new group of contacts in Windows mail 2007. The instructions say to go to contacts and click to create the new contact using the toolbar group, but there is no such thing as the toolbar. How to make a toolbar with this option appear

  • Internet in stall all the time

    Hi, I have the key above wifi 3G and also the same in the 4G and they drop out or unplug the net at random intervals, I use an antenna and have a great signal but because two of them do the same thing all the time I presume it's something to do with