Thanks for replying.
Am I supposed to wrap the entire binary in one single eval or does it need to be done as one eval per line of binary?
Right now I have enclosed the whole binary in one eval and yes the script now shows the correct title and position in the menu but when trying to run the script PS throws an error:
Error 4: Unterminated string constant.
OK, got it now.
I removed the section:
from the plain text .jsx file and then exported the remaining as binary .jsxbin.
I renamed the .jsxbin file to .jsx opened it in ESTK CC and selected and copied the entire contents of the file then pasted it into:
to remove all the white space, so the whole code is retained on one single line albeit an extremely long line.
I found by trial & error that importing this newly formatted code back in to ESTK CC does not work as ESTK CC does not want to reach the last digit in the line.
I used my favourite editor phpDesigner and copied the minified code in to there as a blank text document.
At the start of the line of code I added back the removed section above, hit return so this new long line is now on LINE 5 in the code.
I then added
to the beginning of the line, scrolled to the end of the line and added the
I saved this new with the extension .jsx
Now it works a treat, exactly how I wanted it to.
2 people found this helpful
Alternatively, you can use the triple-quote syntax (three double-quote characters in a row) introduced in CS4 and directly paste the contents of the .jsxbin file.
The Script Editor supports triple-quote syntax to allow strings to span several source code lines. When entering a very long string, you can:
• Enter it all on one line:
var myString = "This very long string might wrap onto a second line visually, but you typed no CR character when entering it."
• Enter on multiple lines, using a backslash (\) continuation character at the end of each line:
var myString = "This string spans \
• Use triple quotes around the entire string on multiple lines:
var myString = """This "quoted" word is inside the
multiline string enclosed by triple quotes."""
The triple-quote option allows the string to contain embedded quotes.
Absolutely excellent, a much, much simpler procedure than my long winded attempt.