3 Replies Latest reply on Jul 21, 2015 12:58 PM by elDudereno

    Script UI, images + radio buttons

    elDudereno Level 3

      I am making a script to speed up proofing. I have a large portion of the work done but I've gotten a request to add an option to have more than one product per proof. I figure adding options for 2, 3, or 4 products per proof should cover most instances. The issue I'm having is with the UI. I have already been to ScriptUI for dummies | Peter Kahrel and it has been incredibly helpful. That is where I got the info for embedding the images. I don't know if what I want to do is possible. I would like my dialog to look like this:

      CCproofMultiDialog_wish.png

      Which I slapped together in photoshop. The closest I've gotten is this:

      Screen shot 2015-06-25 at 7.56.35 AM.png

      And it's not just that it's ugly, I can deal with ugly if it's functional, but as you can see you can select more than one radio button at the same time. I tried to play with replacing the "undefined" with [left, top, width, height] on each of my objects but then my dialog was entirely blank. Here is the code that makes the current UI:

      #target Illustrator
      
      
      if ( app.documents.length != 0 ){
        myDlg = new Window('dialog', 'Proof Multi Up');
        myDlg.orientation = 'column';
        myDlg.alignment = 'left';
      
        var twoUpX = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x01\x1BiTXtXML:com.adobe.xmp\x00\x00\x00\x00\x00<?xpacket begin=\"\u00EF\u00BB\u00BF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.1.2\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n  <rdf:Description rdf:about=\"\"/>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"r\"?>1\u00A8qi\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00HIDATx\u00DAb\u00FC\u00FF\u00FF?\x03\x05\u0080\u0085\u0081\u0081AII\u0091<\u00CD\u00F7\u00EE\u00DDg\u00F8\u00FF\u00FF\u00BF\u00A2\u00A2\u00C2\x7F\x1C\u0080\u00A0\x14\x13\x03e`T\u00FF\u00A8\u00FEQ\u00FDCW?\x0B\u0084\u00C2S\x04\u00E1/\u009D\x18),\u00FF\x00\x00\x00\x00\u00FF\u00FF\x03\x00\u00AF\u008A@\u00DFM8\u0092\u0083\x00\x00\x00\x00IEND\u00AEB`\u0082";
        var twoUpY = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x01\x1BiTXtXML:com.adobe.xmp\x00\x00\x00\x00\x00<?xpacket begin=\"\u00EF\u00BB\u00BF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.1.2\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n  <rdf:Description rdf:about=\"\"/>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"r\"?>1\u00A8qi\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00CIDATx\u00DAb\u00FC\u00FF\u00FF?\x03\x05\u0080\u0085\u0081\u0081AII\u0091<\u00CD\u00F7\u00EE\u00DDg\u0081\u00B3H\u00D5\f\u00B1\u0095\u0089\u008120\u00AA\x7F`\u00F5\u00B3 G&\u00F9\u00***\u00D3\u00CFh\u00FA!\x0B0RX\u00FE\x01\x00\x00\x00\u00FF\u00FF\x03\x00\u00FF\x18\x0F\u00F7\u00E2\u00A5\x1E\x0F\x00\x00\x00\x00IEND\u00AEB`\u0082";
        var threeUpX = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x01\x1BiTXtXML:com.adobe.xmp\x00\x00\x00\x00\x00<?xpacket begin=\"\u00EF\u00BB\u00BF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.1.2\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n  <rdf:Description rdf:about=\"\"/>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"r\"?>1\u00A8qi\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00EIDATx\u00DA\u00EC\u00D4\u00B1\r\x00 \f\x03A\x071\b\u00C9\u00FE3\u00C1(OM\u0087H\u0085\u0094/-]k\x03\u0094\u00A8K\u008A\u00F07<\u00E7\x12\u00E0>8\u00BB_\u009Ar\u0095/_\u00FE_o@\u00E6\x7F,\u00F9\x7F\x1B\x00\x00\u00FF\u00FF\x03\x00\u00A1\u008DCt\u00DD\u0091{\x0F\x00\x00\x00\x00IEND\u00AEB`\u0082";
        var threeUpY = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x01\x1BiTXtXML:com.adobe.xmp\x00\x00\x00\x00\x00<?xpacket begin=\"\u00EF\u00BB\u00BF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.1.2\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n  <rdf:Description rdf:about=\"\"/>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"r\"?>1\u00A8qi\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00BIDATx\u00DAb\u00FC\u00FF\u00FF?\x03\x05\u0080\u0085\u0081\u0081AII\u0091<\u00CD\u00F7\u00EE\u00DDg\u0081\u00B3H\u00D5\f\u00B1\u0095\u0089\u008120\u00D4\u00F5\u00B3 \x07\x06\u00F9\u00***\u00C3\x7F4\u00FCGd\u00F83RX\u00FE\x01\x00\x00\x00\u00FF\u00FF\x03\x00p\u0099\x13`\u0095\u00B6Q\u00E8\x00\x00\x00\x00IEND\u00AEB`\u0082";
        var fourUp = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00KIDATx\u00DAb\u00FC\u00FF\u00FF?\x03\x05\u0080\u0085\u0081\u0081AII\u0091<\u00CD\u00F7\u00EE\u00DDg\u00F8\u00FF\u00FF\u00BF\u00A2\u00A2\u00C2\x7F\x1C\u0080\u00A0\x14\x13\x03e`T\u00FF\u00C0\u00EAg\u0081Px\u0092\x10\u0081\u00D45\u009A~F\u00D3\x0F\x05\u00E9\u0087\u0091\u00C2\u00F2\x0F\x00\x00\x00\u00FF\u00FF\x03\x00Lcx\u0099H\u00AC\u00D4\u00B5\x00\x00\x00\x00IEND\u00AEB`\u0082";
      
        with(myDlg.add('group'))
        {
        orientation = 'row';
      
        with(myDlg.add('group'))
        {
        // left, top, width, and height
        orientation = 'column';
        alignment = 'left';
        add("Image", undefined, twoUpX);
        twoUpXbutton = add('RadioButton', undefined, "Two items per proof arranged horizontally.");
        twoUpXbutton.alignment = 'left';
        add('statictext', undefined, "");
        add("Image", undefined, twoUpY);
        twoUpYbutton = add('RadioButton', undefined, "Two items per proof arranged vertically.");
        twoUpYbutton.alignment = 'left';
        add('statictext', undefined, "");
        add("Image", undefined, threeUpX);
        threeUpXbutton = add('RadioButton', undefined, "Three items per proof arranged horizontally.");
        threeUpXbutton.alignment = 'left';
        add('statictext', undefined, "");
        add("Image", undefined, threeUpY);
        threeUpYbutton = add('RadioButton', undefined, "Three items per proof arranged vertically.");
        threeUpYbutton.alignment = 'left';
        add('statictext', undefined, "");
        add("Image", undefined, fourUp);
        fourUpbutton = add('RadioButton', undefined, "Four items per proof.");
        fourUpbutton.alignment = 'left';
        }
        }
      
        with(myDlg.add('group'))
        {
        orientation = 'row';
        alignment = 'left';
        btnOk = add('button', undefined, "OK",{name: 'ok'});
        add('button', undefined, "Cancel",{name: 'cancel'});
        }
        btnOk.onClick = function(){
        alert("result" + "\n" + "Two up X value " + twoUpXbutton.value + "\n" + "Two up Y value " + twoUpYbutton.value + "\n" + "Three up X value " + threeUpXbutton.value + "\n" + "Three up Y value " + threeUpYbutton.value + "\n" + "Four up value " + fourUpbutton.value);
        myDlg.close();
        }
      
        myDlg.show();
      } else {
        alert ( "A document must be open." );
      }
      
      
      
      
      

      Any advice would be appreciated.

       

      P.S. I've got a superfluous group in there from some sloppy editing, whoops!

        • 1. Re: Script UI, images + radio buttons
          elDudereno Level 3

          Solved. I just have to have the image and radio buttons in the same group and then add eventListeners to manually make the radio buttons work properly.

          #target Illustrator
          
          
          if ( app.documents.length != 0 ){
            myDlg = new Window('dialog', 'Proof Multi Up');
            myDlg.orientation = 'column';
            myDlg.alignment = 'left';
          
            var twoUpX = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x01\x1BiTXtXML:com.adobe.xmp\x00\x00\x00\x00\x00<?xpacket begin=\"\u00EF\u00BB\u00BF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.1.2\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n  <rdf:Description rdf:about=\"\"/>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"r\"?>1\u00A8qi\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00HIDATx\u00DAb\u00FC\u00FF\u00FF?\x03\x05\u0080\u0085\u0081\u0081AII\u0091<\u00CD\u00F7\u00EE\u00DDg\u00F8\u00FF\u00FF\u00BF\u00A2\u00A2\u00C2\x7F\x1C\u0080\u00A0\x14\x13\x03e`T\u00FF\u00A8\u00FEQ\u00FDCW?\x0B\u0084\u00C2S\x04\u00E1/\u009D\x18),\u00FF\x00\x00\x00\x00\u00FF\u00FF\x03\x00\u00AF\u008A@\u00DFM8\u0092\u0083\x00\x00\x00\x00IEND\u00AEB`\u0082";
            var twoUpY = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x01\x1BiTXtXML:com.adobe.xmp\x00\x00\x00\x00\x00<?xpacket begin=\"\u00EF\u00BB\u00BF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.1.2\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n  <rdf:Description rdf:about=\"\"/>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"r\"?>1\u00A8qi\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00CIDATx\u00DAb\u00FC\u00FF\u00FF?\x03\x05\u0080\u0085\u0081\u0081AII\u0091<\u00CD\u00F7\u00EE\u00DDg\u0081\u00B3H\u00D5\f\u00B1\u0095\u0089\u008120\u00AA\x7F`\u00F5\u00B3 G&\u00F9\u00***\u00D3\u00CFh\u00FA!\x0B0RX\u00FE\x01\x00\x00\x00\u00FF\u00FF\x03\x00\u00FF\x18\x0F\u00F7\u00E2\u00A5\x1E\x0F\x00\x00\x00\x00IEND\u00AEB`\u0082";
            var threeUpX = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x01\x1BiTXtXML:com.adobe.xmp\x00\x00\x00\x00\x00<?xpacket begin=\"\u00EF\u00BB\u00BF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.1.2\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n  <rdf:Description rdf:about=\"\"/>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"r\"?>1\u00A8qi\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00EIDATx\u00DA\u00EC\u00D4\u00B1\r\x00 \f\x03A\x071\b\u00C9\u00FE3\u00C1(OM\u0087H\u0085\u0094/-]k\x03\u0094\u00A8K\u008A\u00F07<\u00E7\x12\u00E0>8\u00BB_\u009Ar\u0095/_\u00FE_o@\u00E6\x7F,\u00F9\x7F\x1B\x00\x00\u00FF\u00FF\x03\x00\u00A1\u008DCt\u00DD\u0091{\x0F\x00\x00\x00\x00IEND\u00AEB`\u0082";
            var threeUpY = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x01\x1BiTXtXML:com.adobe.xmp\x00\x00\x00\x00\x00<?xpacket begin=\"\u00EF\u00BB\u00BF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.1.2\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n  <rdf:Description rdf:about=\"\"/>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"r\"?>1\u00A8qi\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00BIDATx\u00DAb\u00FC\u00FF\u00FF?\x03\x05\u0080\u0085\u0081\u0081AII\u0091<\u00CD\u00F7\u00EE\u00DDg\u0081\u00B3H\u00D5\f\u00B1\u0095\u0089\u008120\u00D4\u00F5\u00B3 \x07\x06\u00F9\u00***\u00C3\x7F4\u00FCGd\u00F83RX\u00FE\x01\x00\x00\x00\u00FF\u00FF\x03\x00p\u0099\x13`\u0095\u00B6Q\u00E8\x00\x00\x00\x00IEND\u00AEB`\u0082";
            var fourUp = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00KIDATx\u00DAb\u00FC\u00FF\u00FF?\x03\x05\u0080\u0085\u0081\u0081AII\u0091<\u00CD\u00F7\u00EE\u00DDg\u00F8\u00FF\u00FF\u00BF\u00A2\u00A2\u00C2\x7F\x1C\u0080\u00A0\x14\x13\x03e`T\u00FF\u00C0\u00EAg\u0081Px\u0092\x10\u0081\u00D45\u009A~F\u00D3\x0F\x05\u00E9\u0087\u0091\u00C2\u00F2\x0F\x00\x00\x00\u00FF\u00FF\x03\x00Lcx\u0099H\u00AC\u00D4\u00B5\x00\x00\x00\x00IEND\u00AEB`\u0082";
          
            var g2x = myDlg.add('group');
            g2x.orientation = 'row';
            g2x.alignment = 'left';
            g2x.add("Image", undefined, twoUpX);
            var twoUpXbutton = g2x.add('RadioButton', undefined, "Two items per proof arranged horizontally.");
            g2x.addEventListener("click",function(){
            twoUpYbutton.value = false;
            threeUpXbutton.value = false;
            threeUpYbutton.value = false;
            fourUpbutton.value = false;
            });
          
            var g2y = myDlg.add('group');
            g2y.orientation = 'row';
            g2y.alignment = 'left';
            g2y.add("Image", undefined, twoUpY);
            var twoUpYbutton = g2y.add('RadioButton', undefined, "Two items per proof arranged vertically.");
            g2y.addEventListener("click",function(){
            twoUpXbutton.value = false;
            threeUpXbutton.value = false;
            threeUpYbutton.value = false;
            fourUpbutton.value = false;
            });
          
            var g3x = myDlg.add('group');
            g3x.orientation = 'row';
            g3x.alignment = 'left';
            g3x.add("Image", undefined, threeUpX);
            var threeUpXbutton = g3x.add('RadioButton', undefined, "Three items per proof arranged horizontally.");
            g3x.addEventListener("click",function(){
            twoUpYbutton.value = false;
            twoUpXbutton.value = false;
            threeUpYbutton.value = false;
            fourUpbutton.value = false;
            });
          
            var g3y = myDlg.add('group');
            g3y.orientation = 'row';
            g3y.alignment = 'left';
            g3y.add("Image", undefined, threeUpY);
            var threeUpYbutton = g3y.add('RadioButton', undefined, "Three items per proof arranged vertically.");
            g3y.addEventListener("click",function(){
            twoUpYbutton.value = false;
            twoUpXbutton.value = false;
            threeUpXbutton.value = false;
            fourUpbutton.value = false;
            });
          
            var g4 = myDlg.add('group');
            g4.orientation = 'row';
            g4.alignment = 'left';
            g4.add("Image", undefined, fourUp);
            var fourUpbutton = g4.add('RadioButton', undefined, "Four items per proof.");
            g4.addEventListener("click",function(){
            twoUpYbutton.value = false;
            twoUpXbutton.value = false;
            threeUpXbutton.value = false;
            threeUpYbutton.value = false;
            });
          
            with(myDlg.add('group'))
            {
            orientation = 'row';
            alignment = 'center';
            btnOk = add('button', undefined, "OK",{name: 'ok'});
            add('button', undefined, "Cancel",{name: 'cancel'});
            }
            btnOk.onClick = function(){
            alert("result" + "\n" + "Two up X value " + twoUpXbutton.value + "\n" + "Two up Y value " + twoUpYbutton.value + "\n" + "Three up X value " + threeUpXbutton.value + "\n" + "Three up Y value " + threeUpYbutton.value + "\n" + "Four up value " + fourUpbutton.value);
            myDlg.close();
            }
          
            myDlg.show();
          } else {
            alert ( "A document must be open." );
          }
          
          • 2. Re: Script UI, images + radio buttons
            elDudereno Level 3

            This works great as long as you are below IllustratorCC. I am developing in IllustratorCS6 and it works like a charm. Is there a solution to get this functionality into CC and higher?

            • 3. Re: Script UI, images + radio buttons
              elDudereno Level 3

              In order to be compatible with CC the addEventListener had to be abandoned. I was able to accomplish the same look as the previous solution by adding a group that contained two sub groups, one for images, and one for radiobuttons which had spacing added.

              #target Illustrator
              
              
              if ( app.documents.length != 0 ){
                multiD = new Window('dialog', 'Proof Multi Up');
                multiD.orientation = 'column';
                multiD.alignment = 'center';
                multiD.preferredSize = [350,""];
              
                var twoUpX = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x01\x1BiTXtXML:com.adobe.xmp\x00\x00\x00\x00\x00<?xpacket begin=\"\u00EF\u00BB\u00BF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.1.2\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n  <rdf:Description rdf:about=\"\"/>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"r\"?>1\u00A8qi\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00HIDATx\u00DAb\u00FC\u00FF\u00FF?\x03\x05\u0080\u0085\u0081\u0081AII\u0091<\u00CD\u00F7\u00EE\u00DDg\u00F8\u00FF\u00FF\u00BF\u00A2\u00A2\u00C2\x7F\x1C\u0080\u00A0\x14\x13\x03e`T\u00FF\u00A8\u00FEQ\u00FDCW?\x0B\u0084\u00C2S\x04\u00E1/\u009D\x18),\u00FF\x00\x00\x00\x00\u00FF\u00FF\x03\x00\u00AF\u008A@\u00DFM8\u0092\u0083\x00\x00\x00\x00IEND\u00AEB`\u0082";
                var twoUpY = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x01\x1BiTXtXML:com.adobe.xmp\x00\x00\x00\x00\x00<?xpacket begin=\"\u00EF\u00BB\u00BF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.1.2\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n  <rdf:Description rdf:about=\"\"/>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"r\"?>1\u00A8qi\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00CIDATx\u00DAb\u00FC\u00FF\u00FF?\x03\x05\u0080\u0085\u0081\u0081AII\u0091<\u00CD\u00F7\u00EE\u00DDg\u0081\u00B3H\u00D5\f\u00B1\u0095\u0089\u008120\u00AA\x7F`\u00F5\u00B3 G&\u00F9\u00***\u00D3\u00CFh\u00FA!\x0B0RX\u00FE\x01\x00\x00\x00\u00FF\u00FF\x03\x00\u00FF\x18\x0F\u00F7\u00E2\u00A5\x1E\x0F\x00\x00\x00\x00IEND\u00AEB`\u0082";
                var threeUpX = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x01\x1BiTXtXML:com.adobe.xmp\x00\x00\x00\x00\x00<?xpacket begin=\"\u00EF\u00BB\u00BF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.1.2\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n  <rdf:Description rdf:about=\"\"/>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"r\"?>1\u00A8qi\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00EIDATx\u00DA\u00EC\u00D4\u00B1\r\x00 \f\x03A\x071\b\u00C9\u00FE3\u00C1(OM\u0087H\u0085\u0094/-]k\x03\u0094\u00A8K\u008A\u00F07<\u00E7\x12\u00E0>8\u00BB_\u009Ar\u0095/_\u00FE_o@\u00E6\x7F,\u00F9\x7F\x1B\x00\x00\u00FF\u00FF\x03\x00\u00A1\u008DCt\u00DD\u0091{\x0F\x00\x00\x00\x00IEND\u00AEB`\u0082";
                var threeUpY = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x01\x1BiTXtXML:com.adobe.xmp\x00\x00\x00\x00\x00<?xpacket begin=\"\u00EF\u00BB\u00BF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.1.2\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n  <rdf:Description rdf:about=\"\"/>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"r\"?>1\u00A8qi\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00BIDATx\u00DAb\u00FC\u00FF\u00FF?\x03\x05\u0080\u0085\u0081\u0081AII\u0091<\u00CD\u00F7\u00EE\u00DDg\u0081\u00B3H\u00D5\f\u00B1\u0095\u0089\u008120\u00D4\u00F5\u00B3 \x07\x06\u00F9\u00***\u00C3\x7F4\u00FCGd\u00F83RX\u00FE\x01\x00\x00\x00\u00FF\u00FF\x03\x00p\u0099\x13`\u0095\u00B6Q\u00E8\x00\x00\x00\x00IEND\u00AEB`\u0082";
                var fourUp = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\u00AD\u0091\u00B1J\u00C3P\x14\u0086\u00BF\x1BE\u00C5\u00A1V\b\u00E2\u00E0p'QPl\u00D5\u00C1\u008CI[\u008A X\u00ABC\u0092\u00ADIC\u0095\u00D2$\u00DC\u00DC\u00AA}\bG\u00B7\x0E.\u00EE>\u0081\u0093\u00A3\u00E0\u00A0\u00F8\x04\u00BE\u0081\u00E2\u00D4\u00C1!Hp\x12\u00C1o\u00FA\u00CE\u00CF\u00E1p\u00E0\x07\u00A3b\u00D7\u009D\u0086Q\u0086A\u00ACU\u00BB\u00E9H\u00D7\u00F3\u00E5\u00EC\x133L\x01@'\u00CCR\u00BB\u00D5:\x00\u0088\u00938\u00E2'\x02>_\x11\x00\u00CF\u009Bv\u00DDi\u00F07\u00E6\u00C3Ti`\x02lw\u00A3,\x04Q\x01\u00FA\x17:\u00D5 \u00C6\u0080\x19\u00F4S\r\u00E2\x0E0\u00D5I\u00BB\x06\u00E2\x01(\u00F5r\x7F\x01JA\u00EEo@I\u00B9\u009E\x0F\u00E2\x030{\u00AE\u00E7\u00831\x07\u0098A\u00EE+\u0080\u00A9\u00A3K\rPK\u00D2\u0091:\u00EB\u009DjY\u00B5,K\u00DA\u00DD$\u0088\u00E4\u00F1(\u00D3\u00D1 \u0093\u00FBq\u0098\u00A84Q\x1D\x1Du\u0081\u00FC?\x00\x16\u00F3\u00C5v\u00D3\u0091kU\u00CB\u00DA[\u00E7\u009Fq=_\u00E6\u00F6~\u0084\x00\u00C4\u00D2c\u0091\x15\u0084Cu\u00FE\u00DD\u0085\u00B1\u00F3\u00FB\\\u00DC\x18/\u00C3\u00E1-LO\u008Al\u00F7\nn6`\u00E1\u00BA\u00C8V\u00ABP\u00DE\u0082\u00FB\u00F1\x17\u00C2\u00B3O\u00FE\x1C\t\u00B3'\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E8\x00\x00R\b\x00\x01\x15X\x00\x00:\u0097\x00\x00\x17o\u00D7Z\x1F\u0090\x00\x00\x00KIDATx\u00DAb\u00FC\u00FF\u00FF?\x03\x05\u0080\u0085\u0081\u0081AII\u0091<\u00CD\u00F7\u00EE\u00DDg\u00F8\u00FF\u00FF\u00BF\u00A2\u00A2\u00C2\x7F\x1C\u0080\u00A0\x14\x13\x03e`T\u00FF\u00C0\u00EAg\u0081Px\u0092\x10\u0081\u00D45\u009A~F\u00D3\x0F\x05\u00E9\u0087\u0091\u00C2\u00F2\x0F\x00\x00\x00\u00FF\u00FF\x03\x00Lcx\u0099H\u00AC\u00D4\u00B5\x00\x00\x00\x00IEND\u00AEB`\u0082";
              
                var picsNwrds = multiD.add('group');
                picsNwrds.orientation = 'row';
                picsNwrds.alignment = 'center';
              
                var picSpot = picsNwrds.add('group');
                picSpot.orientation = 'column';
                picSpot.alignment = 'left';
                picSpot.add("Image", undefined, twoUpX);
                picSpot.add("Image", undefined, twoUpY);
                picSpot.add("Image", undefined, threeUpX);
                picSpot.add("Image", undefined, threeUpY);
                picSpot.add("Image", undefined, fourUp);
              
                var radio = picsNwrds.add('group');
                radio.orientation = 'column';
                radio.alignment = 'right';
                radio.spacing = 14;
                var twoUpXbutton = radio.add('RadioButton', undefined, "Two items per proof arranged horizontally.");
                twoUpXbutton.alignment = 'left';
                var twoUpYbutton = radio.add('RadioButton', undefined, "Two items per proof arranged vertically.");
                twoUpYbutton.alignment = 'left';
                var threeUpXbutton = radio.add('RadioButton', undefined, "Three items per proof arranged horizontally.");
                threeUpXbutton.alignment = 'left';
                var threeUpYbutton = radio.add('RadioButton', undefined, "Three items per proof arranged vertically.");
                threeUpYbutton.alignment = 'left';
                var fourUpbutton = radio.add('RadioButton', undefined, "Four items per proof.");
                fourUpbutton.alignment = 'left';
              
                with(multiD.add('group'))
                {
                orientation = 'row';
                alignment = 'center';
                btnOk = add('button', undefined, "OK",{name: 'ok'});
                btnCan = add('button', undefined, "Cancel",{name: 'cancel'});
                }
                btnOk.onClick = function(){
                alert("result" + "\n" + "Two up X value " + twoUpXbutton.value + "\n" + "Two up Y value " + twoUpYbutton.value + "\n" + "Three up X value " + threeUpXbutton.value + "\n" + "Three up Y value " + threeUpYbutton.value + "\n" + "Four up value " + fourUpbutton.value);
                multiD.close();
                }
                btnCan.onClick = function(){
                multiD.close();
                multi.value = false;
                twoUpXbutton.value = false;
                twoUpYbutton.value = false;
                threeUpXbutton.value = false;
                threeUpYbutton.value = false;
                fourUpbutton.value = false;
                }
              
                multiD.show();
              } else {
                alert ( "A document must be open." );
              }