icon to binary/hex code !

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Kukurykus, Tom, xbytor

wasfiwasfi
Posts: 45
Joined: Fri Nov 04, 2016 8:29 am

icon to binary/hex code !

Post by wasfiwasfi »

Hi Guys

anyone can help me on how i can convert an icon/png (to be used on a UI ) to this kind of "Hex/code" :

\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x0F\x00\x00\x00\x0F\b\x06\x00\x00\x00;\u00D6\u0095J\x00\x00\x00IIDAT(\u0091c`\x18~ --\u00ED?\x0E\u00BC\u009F\x18\u00CD\r8p\x026\u00C5\x06@\u00EC@\x046 \u00C5\u0099\u0084\u009D\r\x14,\u00C0\u00E3T\u00FC\u00CE&\u00C1\x10\u00BC\u009AIw6\u0092f\u00D2\x02\f\u00E4\x14\"\u00FD\u008B\u00E9l\u0090S(\nm\u00BA\x02\x00\u009Dp\u00B2N\u00F1d\x1D\u00FD\x00\x00\x00\x00IEND\u00AEB`\u0082

Thanks,

User avatar
Dormeur74
Posts: 32
Joined: Mon Oct 03, 2016 4:56 am

Re: icon to binary/hex code !

Post by Dormeur74 »

Hi wasfiwasfi,

The name of this process is "serialization". It will be easier through an example.
You create a folder in which you paste 2 files :
- the following script : serialization.jsx

Code: Select all


// MAC Finder ou WINDOWS Explorer, on autorise le double clic  et on fait passer Photoshop au 1er plan 
#target photoshop
app.bringToFront();
// You paste the icon file (info.png) and this script (serialization.jsx) in a folder (/c/icon)
var infile=File("/c/icon/info.png");
var outfile=File("/c/icon/info.txt");
infile.open("r");
infile.encoding="binary";
var temp= infile.read();
infile.close();
outfile.open("w");
outfile.write(temp.toSource());
outfile.close();
// This script will create a text file serializing the .PNG file ; its name will be info.txt
- a .PNG icon : info.PNG
info.png
info.png (2.7 KiB) Viewed 5161 times
When you execute the script, it will create a long serialized text file beginning like this :
(new String("\u0089PNG...................
You must delete (new String( and
and the last ))

Now, you have to use the whole chain in a variable, like here :

Code: Select all

        
var icon=

"\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \b\x06\x00\x00\x00szz\u00F4\x00\x00\x00\tpHYs\x00\x00\r\u00D7\x00\x00\r\u00D7\x01B(\u009Bx\x00\x00\x00 cHRM\x00\x00z%\x00\x00\u0080\u0083\x00\x00\u00F9\u00FF\x00\x00\u0080\u00E9\x00\x00u0\x00\x00\u00EA`\x00\x00:\u0098\x00\x00\x17o\u0092_\u00C5F\x00\x00\nRIDATx\u00DA\u00AC\u0097{t\u0094\u00E5\u00B5\u0087_\u00E1d\x12\t m\u00E5&\u00B7\x16\r\u00E5\u00D4\u00CB9\u00AD\u0080\u00D5#\u00D6\u00D3\u00C6\u00D2Ua\t\u00EA\u00E9\"UF\u0081h[\u00C5c\x11/\u0094F\t&!0\tW\u00A1hIW\u00D1F\u00C8$ULB\u00C2$\u0084\u00D4Dr'\u0081\u0090@\u00C8m\u00BE\u00DB|\u00DF|3\u00B9M\x06\u00CA%\u0099\u0099\u00E7\u00FC\u0091d\x14\x0B\x1E\u00CF:\u00DD\x7F\u00CEZ\u00F3\u00FD\u009E\u00BD\u00DF\u00FD\u00FE\u00F6~\u0085\u00F8\u00FA1~\u00EE\u00DC\u00B9\u00F3\u00ADVk\u00BC\u00CDfK\u00B3\u00DB\u00ED\x07\x0B\n\n\u00F2\n\n\n\u00F2\u00ECv\u00FBA\u009B\u00CD\u0096f\u00B5Z\u00E3\u00E7\u00CE\u009D;_\b1^\u00FC\u00B3\"22rJ\\\\\u00DCj\u0087\u00C3\u00E1\u00F0\u00FB\u00FD\u00BD|!B\u00A1\x10\u00A1P\u00E8\u008B?\u00D1\u00DF\u00DF\u00DF\u00EBp8\x1Cqqq\u00AB###\u00A7\u00FC\u00BF\u00B4\x17-Z\u00F4Duuu\u00E5\u00C8\u00C7/\\\u00B8@ww7\x1E\u008F\x07\u00B7\u00DB\u008D\u00AE\u00EB\u00E8\u00BA\u008Ea\x18\u0098\u00A6IWW\x17~\u00BF?\fS]]]\u00B9h\u00D1\u00A2'\u0084\x10\u0091\u00FF'e\u008B\u00C521555=\x10\b\\\x01\u00E8\u00EB\u00EB\u00C34M4MCQd\\\u00AA\u008C\u00DB%c\u00EA\n\x1E]\u00C1\u00EDRp\u00A92\u00B2,\u00A3\u00AA*\u0086\u00E1\u00A6\u00A7\u00A7\u0087`0\u00C8\u00E0\u00E0\u00E0\u0095\u00D4\u00D4\u00D4t\u008B\u00C52\u00F1k\u0089GGGO\u00CF\u00CE\u00CE\u00CE\x01\u00B8x\u00F1\"\x1E\u008F\x07UUQe\tS\u0097\u0091e\u0089\u00F2\u0086V\u00EC\u00A5g\u00D8\u009F_\u00C7\x1F\u00F3\u00EA\u00C8*i\u00A4\u00BC\u00FE<\u008A,\u00E3\u00D1\x15TYBQ\x14\u00DCnw\u00B8\"v\u00BB='::z\u00FAW\u008AGDDL\x1C\x11\u00F7\u00F9|\x18\u0086\u0081,I\u00B8]2-mNv\u00E6\u009Ef\u00D5\x1F\u00AA\u00F8\u00C5\u00CEj\u00AC{O\u00B2\u00FA\u00BD\u0093\u00AC\u00DAW\u00C7S\u00BB\u00ABYf+g\u00C5\u00F6\u00BF\u00B1-\u00A7\u0096\u00966'\x1ECE\u0092$\\.\x17\u00BD\u00BD\u00BDa\u0088\u0088\u0088\u0088\x1BV\"r\u00F3\u00E6\u00CD\u00E9#\u00E2\u00BA\u00AE#\u00CB\x12n\u0097\u00C2\u0087\u00C7\u009BY\u00BE\u00BB\u009A\u0095\u00FB\u009B\u00D8\\\u00A8\u00B1\u00B7\u00CC\u00C3\u00AE\u00E3\x06\u00DB\u008A\x14\u00D2\u008EJ\u00A4\x1F\u0095\u00D8\u00EE\u0090I\u00FC\u00B8\u008D\u00E5;*Y\u009Ar\u008C\u00F7\x1D\rx\r\rY\u0092\u00D04\u008D\u009E\u009E\x1E\x00RRR\u00D2\u00AF\u00DB\x13\u00B1\u00B1\u00B1\u008F\x0F\x0E\x0E^\u00B9x\u00F1\u00E2P\u00E6\u00B2\u0084K\u0095\u00B1\x1D>\u00CDc\u00BB\u00EAI\u00C8\u00D7\u00D8Y\u00D6\u00CD\u00C6|\u00957\u00B3\u00CF\u00B2\u00F7h+\x07\u00CB:\u00C9\u00A9pr\u00E0x;\u00C99gX\u0097\u00D9LJ\u00BE\u00C4\u00BA\x0F\u009B\u00F9\u00F1[\u00C5$gVbh\u00EA0\u0084\u008B\u00FE\u00FE~\x06\x06\x06\u00AE\u00C4\u00C6\u00C6>~\u008DxTT\u00D4\u00E4\u009A\u009A\u009A\u00AAP(\u0084i\u009A\u00E1\u00B2\u00A7\x7F\u00D2\u00C8\u00E2]\u00A7I(\u00F4\u0090X\u00DC\u00CD\u00DA\u008F42J%<}\x7F\u00E7\u00CB\u00F1\u00F7\u00CB\x03\u00E4\u00D5\u00C8\u00C4\u00BF{\u0092\u00B5\u0087Z\u00F9\u00EF\x0F\u00CE\u00F2\u00E0\u0086\"\u00923+\u00F0\u00BA5$\u00A7\x13\u00C30\b\x04\x02TUUUEEEM\x0E\x03\u00C4\u00C5\u00C5\u00AD\x1E\u00E9vUUqk2Y\u009F\u009Ec\u00D1\u00B6\x06\u00D6\x1C6y9\u00B7\u008B\u0097\x0E{\u00B0~\u00E0doQ;_\x15\x7F:\u00D6\u00CA\u00B2\x1Du<\u00BB\u00BF\u0099\u00A7\u00F660o]>\u0099\u008E\x06<\u0086\u008A,\u00CBtww\x03\x10\x17\x17\u00B7:\u00ECp\x0E\u0087\u00A3x${E\u0096h\u00ED\u0090\u00F8\u00AFw\u00EAy\u00F2\u0080\u00CA\u00CA\u009C.\u00ACY&+\x0E\u00EA\u00FC\u00E2}\u0085U\x19g8\u00A7\u00F6\u0092S!\u00B1-\u00B7\u0099\u00A2z\u0095`\u00F0s3\u00EA0|\u00FCl\u00F3g<\u00BA\u00BD\u0081%\u00DBO\u00F2Pb\x19\u00B1\x1B\u00F2i\u00EB\u0090Pd\t]\u00D7\t\x04\x02\x14\x16\x16\x16\x0B!\u00C6\u008B\u0098\u0098\u0098\u00F9~\u00BF\u00DFw\u00E1\u00C2\x054M\u00C3t\u00C9\u00EC;\u00DA\u00CC\u00FDi\u00CD<\u009E\u00E9e\u00E9\u00FBn\x1E;`\u00B0\u00E4O*\u008B\u00F7+\u00FClO+?\u00DDv\u008A\u00FB\u0092O2?\u00B9\u009E\u00EF\u00AF/\u00E1T\u00A77\f\u00A0z/\u00B0p\u00E3\u00A7\u00DC\u00FFv5\x0F\u00BC]\u00C5\u00FD\u0089\x15|\u00FBW\u009F\u00B0#\u00A7\x1A\u00AF{\u00C8G|>\x1F}}}\u00BE\u0098\u0098\u0098\u00F9\u00C2j\u00B5\u00C6\x03tww\u00A3(2\u009A\"\u00F3\u00F4\u00BB\r,\u00D8-\u00F3\u0093\f\x0F\x0F\u00BF\u00A7\u00F3\u00A3}\x1A\x0B\u00F7\u00C8<\u00B8\u00DB\u00C9\u00FD;;\u0098\u0097\u00DE\u00CA\u00BD\u00B6\u00F3\u00DC\u0095\u00DC\u00CC\u00F7\u00DE(\u00E3\u00BC\u00F6\u00B9C\u00977\u00BB\u0099\u00FDr1\u00FF\u00BA\u00FE\x04s_/\u00E3\u00BB\u00AF~\u00CA\u00D4_\x1D\u00E1\u00D1\u00B7\u008E\u00A0\u00BB\u0086\u00AE\u00A6\u00C7\u00E3\x01\u00C0j\u00B5\u00C6\u008B\u00B4\u00B4\u00B4t\x00\u008F\u00C7\u0083K\u0095\u00A9mj\u00E7\x07\u00C9\r\u00FC\u00DBn\u009D\x1F\u00EC1\u00F8\u00F7]\x1A\u00F7l\u0097\u00B9\u00D3\u00E6d\u00CE\u00E66\u00BE\u00BD\u00A9\u0085io63y\u00C3\x19,\u00BF\u00F9\u008C7\u00B3\u00CF^\u00D3\x03+vU26\u00BE\u0098\u00C9/\u00FD\u008DI/\u00940\u00F1\u00D7\u00C5\u00DC\u00B2\u00AA\u0080)\u00CF\x1C\u00A2\u00BA\u00B1\x15\u0097*\u00A3\u00EB:\x00[\u00B7nM\x17v\u00BB\u00FD\x10\u0080a\x18\u00B85\u0099\u00DC\x13-\u00CCJ8\u00C5\u009C\x1D\x06s\u00B6\u00B9\u00B8\u00DD\u00A6\u00F0\u009DT'3\u0093\u00DA\u0099\u009Ex\u009E\u00DB\u00DE:\u00C7\u00D4\u0084f\u00C6\u00AE\u00AD\u00E3\u00E7\u00E9\u00B5\\\u00BE:\x18\x16?P\u00D2\u00CA\u00E8\u00A7s\u0089z\u00AE\u0094\u009B\u00E3\u008F\x11\u00B5\u00CA\u0081\u00E5\u0099BF=\u0095\u0087x\u00EC}>:~\x1ASW\u00D14\u008D@ \u00C0\u00A1C\u0087\x0E\u0089#G\u008E\u00E4\u0087B!t]\u00C7t\u00C9|P\u00D4\u00C8\u0094\r\u00A7\u0098\u00B3\u00C3\u00E4\u008Et\x17\u00B7o\x1D\x02\u0098\u0095\u00DC\u00CE\u008CM\u00E7\u0099\u00B6\u00F1\x1C\u0093641\u00ED\u00D5J\u00CE(}a\u00F1\u00B2&\u009D[V\u00E6\x12\u00F9\\)\u00D1\u00CF\x0F\x01XV:\u0088\u00B0\x160\u00EA\u00A9|\u00C4\u00A3\x07\u00C8\u00C8\u00AB\u00C1\u00EB\u00D6PU\u0095\u0081\u0081\x01\u00F2\u00F3\u00F3\u00F3\u00AF\x01\u00F0\u00B8\u0094\u00AF\x050n]\x03+\u00DE=\x1D\x16\u00BFx\u00E9*\x0B\u00D6\x171jU\t\u00E3~S\u00C6\u0098/\x03<}}\u0080\u00BC\u00BC\u00BC\u00FCk\u008E\u00C0\u00D0dr+Z\u0098\u0099p\u008A\u0098\u00ED\u00C6\r\x01\u00C6\u00BC\\\u00CB\u00CE\u00A3\x1Da\u0080\u00CA\x16\u0093\u00C8g\x0B\x18\u00FB\u00E2\t\u00C6^\x07\u00E0\u00A6_~\u00C5\x11\u00D8l\u00B6t\x00\u00D34q\u00A9\x12\u00B5\u00CD\x1D\u00DC\u0099X\u00CF\u00EC4\u00ED\u0086\x00\u00E3_9\u00C9k\x07\u009B9\u00DD\u00E9\u00E5T\u0087\x17\u00DB\u00E1\u00B3X\u00E2K\x18\u00B7\u00E6:\x00\u00CF\x14\"\u0096\x7F\u00C2\u0084\u00B8\x0F\u00A9\u00B9^\x13\u008E\\\u00C3\u00AE\u00AE\u00AE!\u00A3\u00D0d\u009E\u00D8S\u00CF\u00D4\u00A4Nb\u00D2\u00F5/\x01\u00B42=\u00F1\x1C\u00D3\u00DFlb\u00E2\u00DA\x13\u008C]\u0095O\u00F43\u0087\x19\u00F7|\x11\u00DF\u00FAm\x05\x13^\u00FA\u008Cq/|\u00CA\u0098\u00E7K\u0089\u00FA\"\u00C0\u00B2l\u00FEs}.n]C\u0092$L\u00D3$\x14\n\u00B1b\u00C5\u008Ax1g\u00CE\u009C\u00F9\u00FD\u00FD\u00FD>\u00BF\u00DF\u008F\u00AA\u00AAxt\u0099\u00BD\u0085\u00CDL\u00FA]\u00E35\x15\u00F8\u00CE\u00E6\x0E\u00EE\u00D8\u00DC\u00CAwS[\u0088Inb~j\x03\u00BBJ\x14\x0EV\u00E9,}\u00A7\u0081\u00E9oT0\u00F3\u008DJ&\u00AF-g\u00C2\u008B\u00A5\u008Cy\u00EE\x18\u0091+\x1D\u00FC\u008B\u00B5\x00\u00B1$\u0093m\u00F6*\u00BAM\rI\u0096\u00E9\u00EB\u00EB\u00A3\u00B7\u00B7w\u00C8\u0088F\u00AC8\x18\fb\x18\x06\u008A,\u00D1\u00E1\u0094xxK-S\x12\u00DB\u00B9\u00DD\u00A6\x12csr\u00F7\u00F6\x0E\x16\u00ECj\u00E3\u0081=\u00AD\u00CC\u00B35P\u00D4d\u0086{\u00A0\u00EF\u00E2\x15~\u00BE\u00B3\u0086{\u0092\u00AA\u00B9{S\x15\u00B3\u00D7\u0097s\u00EB\u009A\u00E3\u008CY]\u0084x\u00F2#\u00EE|\u00F1\u00AFtJ\n\u008A<4\u009A\x07\x07\x07)(((\x0E/\u00AF#\u00C3\u00A8\u00A7\u00A7\x07YV0]2\u00D9\u00E5-\u00DC\u00F6z\r\u00B3R:\u00B9{\u0087\u00C4\x7F\u00EC\u00EB$\u00F6\u008F\u00ED\u00FC\u00F8\u00BDVbw\u00D6\u00E1\u00F5]\u00BA\u00C6\u0080\u00D6f6\u00F0\u00FD\u0094J\x1EH\u00AB\u00E5\u00DE\u0094Jf\u00BFQ\u00C6\u00CD\u00AB\n\u0089x\"\u0093\x0F\u008BN\u00D1\u00E5\x1E*\u00BF\u00D7;d\u00DB\u00CB\u0097/_}\u00CD8\u00AE\u00AE\u00AE\u00AE\n\x04\x02\u00B8\u00DDn\u009C\u0092\u0093.Ce\u00CB\u00C7\u008D|\u00EB\u0095\x1A\u00E6\u00DA\u00DAY\u00F8\u00AE\u0093\u00D8\u00FD\u00ED\u00C4\u00EEoc\u00C1\u0096*\x0EW9\u00C3\u00E2\u00EEn??\u00DDR\u00CA}[k\u0086\x01\u00AA\u0098\u00F1\u00CAq\u00C4\u0093\u0087H\u00FC\u00E0\x04=\x1E\x1D\u00A7\u00D3\x19\u00CE\u00BE\u00A2\u00A2\u00E2\u00DAq,\u0084\x10\u008F<\u00F2\u00C8\u00E3\x03\x03\x03W\u00FC~?\u009A\u00E6B\u0096\u009C\u00B8]\n[>>\u00CD\u00B4\u00D7*\u0098\u00FDv\x13\x0Bv\u00B5\u00F1\u00E0\u00DE6~\u00B8\u00A3\u0089\u00FB6\u0096\u0090\u009A]\u00C7\u00FE\u00A3gX\u009CR\u00CC]\x1B\u00CB\u0099\u00B7\u00A5\u008E\u00BB\x12\u00AB\u0098\u00F4R1\u00B7Xsx\u00FB/\x15x\u00DC.\u00E4\u00E1\x1D\u00B1\u00AF\u00AF\u008F\u00ABW\u00AF\u00FE\u00E3B\u00F2\u00E5\u0095\u00AC\u00A7\u00A7\x07M\u00D3\u0090\u0086+a/;\u00C7\u00C2\u00A4\x13\u00DC\u00FAJ\x05\u00B7\u00FD\u00BE\u009E9IM\u00C4lj`\u00EA\u00DAR&\u00AE)b\u00FA\u00EB\u00E5\u00CC\u00FA]\x15\u00DFXs\u009C\u009B\u009F\u00CDe\u00DE\u00AB\u00F9\x1C<\u00D6H\u008F\u00C7\u0085,\r\u0089wuu\x01\u0090\u009C\u009C\u009C~\u00C35\u00DDb\u00B1L\u00B4\u00DB\u00ED9\x00\u00BD\u00BD\u00BDC\x10N'\x1E]\u00A1\u00D3)\u00F3N~#K\u00D2N0{])\u00B7\u00BEX\u00C2\u00F8_\x171\u00F69\x07\x13\u009E/d\u00C6\x0B\x05,\u00DAT\u00CC\u008E\u008F\u00EA\u00E8\u0094\x14\u00BCn\r\u00A7\u00D3\u0089\u00A2\u00AAa\u00F1\u00AC\u00AC\u00AC\u009C\u00FFu=\u008F\u008E\u008E\u009Ef\u00B7\u00DB\u00B3\x01\u00FC~\u00FF\u00F0~(\u00A3\u00C8\x12^C\u00C5p\u00A9\u00D46\u00B5\u00F3Iy3\x7F.\u00AC\u00E7\u00CF\u0085\u00F5\x1C.k\u00A2\u00F6L;\u0086K\u00A5\u00CB\u00AD\u00A1\u00C8Rx#\u00F6\u00F9|#\u00E2\u00D9\u00D1\u00D1\u00D1\u00D3\u00BE\u00CE\u00D3`TDD\u00C4\u008C\u00A4\u00A4\u00A4\u00BD\u0097/_\u00BE\x12\f\x06\u00E9\u00EE\u00EE\u00C6\u00E5r\u00A1(\u00CA\u00D0\u0082\u00A9\fm\u00CB\x1EC\u00C5c\u00A8\u009F?L$\tY\u0096\u00D14\r\u00AF\u00D7\u00CB\u00E0\u00E0 \u0097.]\u00BA\u0092\u0094\u0094\u00B4\u00DBb\u00B1L\u00FD*\u00D1\u009B\u0086\u00CFe\u0082\x10\u00E26!\u00C4\x1DB\u0088y\x0B\x17.\u00DCPRR\u00D2\x12\b\x04\b\u0085B\u00F4\u00F7\u00F7\u00E3\u00F1x\u00D0u\x1DM\x1B\x1A*\u00AA:\u00E4\u00ED\u00BA\u00AEc\u009A&>\u009Fo\u00E4EDII\u00C9\u00D9\u0087\x1Ez\u00E85!\u00C4\u00DDB\u0088iB\u0088o\n!\u00A2\u0084\x10\u00A3\u00FE!k!\u00C4X!\u00C4$!\u00C4\u00EC\u00E1?\u00DC'\u0084xx\u00D4\u00A8QO/^\u00BCx_vvv\u0093i\u009A\u0097\x03\u0081\x00\x00\u00C1`\u0090@ \u00C0\u00E0\u00E0 \u00C1`\x10\u0080\u00E1k|);;\u00BBq\u00C9\u0092%\u00BBG\u008F\x1E\u00FD\u00A4\x10\u00E2\u0087B\u0088{\u0086\u0093\u009A:l>\u00A3oT\x05\u00CB0\u00C8D!\u00C4\f!D\u008C\x10\u00E2.!\u00C4\u00BDB\u0088Gf\u00CE\u009C\x19\u00BFt\u00E9\u00D2\u00D4\u0084\u0084\u0084\u00CC\u008C\u008C\fGVVV\u0099\u00DDn/\u00CB\u00C8\u00C88\u009A\u0090\u0090\u00F0\u0097e\u00CB\u0096\u00A5\u00CC\u009A5k\u00A5\x10\u00E2\u00E1\u00E1$b\u0084\x103\u0087\x13\x1B?\\\u00E5\u009B\u00BE(\u00FA?\x03\x00?=\u00C97B\u0096\u00E7\x07\x00\x00\x00\x00IEND\u00AEB`\u0082";
DO NOT FORGET THE LAST ";"

Now, you can use your button like a scriptUI object :

Code: Select all


    var buttonInfo = savePanel.add("iconbutton",{x:241, y:3, width:34, height:34},icon,{style:"toolbutton",toogle:true});
buttonInfo .helpTip = "My infos";
buttonInfo .onClick = displayInfo;

wasfiwasfi
Posts: 45
Joined: Fri Nov 04, 2016 8:29 am

Re: icon to binary/hex code !

Post by wasfiwasfi »

Amazing !! Thank you so much Dormeur74 !!

one more question please ! is it possible to use this method/technic to convert a .jsx file to a array and then use the script using this command (which i don't even understand)

Code: Select all

//========================================
#target photoshop

$.level=0;
debugger;
var Version="1.2.1";

var _0x61e9=""\x7C\x7C","","\x7E\x2F\x62\x61\.....{OutputPath[_0x61e9[81]]= FolderToSave[_0x61e9[83]]}};dropActionSetAfter[_0x61e9[84]]= function(){dropActionAfter[_0x61e9[85]]();var _0x9b15x28=ActionSets[this[_0x61e9[88]][_0x61e9[87]]][_0x61e9[86]];for(var i=0;i< _0x9b15x28[_0x61e9[3]];i......";
Thank you again

User avatar
Dormeur74
Posts: 32
Joined: Mon Oct 03, 2016 4:56 am

Re: icon to binary/hex code !

Post by Dormeur74 »

Of course you can. As it is possible to open and load a text chain, it is possible to put the whole (chain and object name) in an array.
It is normal that you cannot understand the code you gave us, because there are too many errors inside. I think you ought to learn ScriptUI first.
Serialization of an image is not really so easy and useful.

wasfiwasfi
Posts: 45
Joined: Fri Nov 04, 2016 8:29 am

Re: icon to binary/hex code !

Post by wasfiwasfi »

Greatly appreciate you quick reply !
i do scripting for all adobe products and "MS Excel" as well but am new in doing UI
Thank you so much for your help :-)