Copy link to clipboard
Copied
Hi guys...
I would like to embed a file that I exported as binary code (Embed really needed).
But I don't know how to use it with .execute();
Is this possible?
Take a look the picture and many thanks for your time...
This works fine in my environment(OSX10.11.0).
Read file contents and evaluate it.
var f = new File("~/Desktop/test.jsx");
if(f.open("r")) {
eval(f.read());
f.close();
}
Copy link to clipboard
Copied
test it:
var bin = "@JSXBIN@ES@2.0@MyBbyBn0ABJAnAEjzFjBjMjFjSjUBfRBFeLjUjFjTjUhAiCjZjOjBjSjZff0DzACByB";
eval(bin);
Copy link to clipboard
Copied
Hi Ten
Do you know how to convert this path to mac?
I have tried to do it but it didn't work too.
It works in Windows but not in Mac!
var nf = new File("C:/Users/Dell Inspiron 14/Documents/Actions/Forms/ZoomSel.jsx");
nf.execute();
Best regards_
Copy link to clipboard
Copied
what address you are passing in file obj
Copy link to clipboard
Copied
Hi
I want to use this file in this path
Macintosh HD/Users/Admin/Desktop/Atns/Test.jsx
Copy link to clipboard
Copied
can you please try this a forward / at the starting
/Macintosh HD/Users/Admin/Desktop/Atns/Test.jsx
Copy link to clipboard
Copied
Using “” or not, displays error… another solution with doScript? 😕
Copy link to clipboard
Copied
This works fine in my environment(OSX10.11.0).
Read file contents and evaluate it.
var f = new File("~/Desktop/test.jsx");
if(f.open("r")) {
eval(f.read());
f.close();
}
Copy link to clipboard
Copied
Thanks bro!
I will give it a try in a few minutes... if you gave it a try, I know it work!
On more please... Did you try the binary code? Does it work?
I haven't had the time to see if the binary code works...
A handshake Ten!
Copy link to clipboard
Copied
Previous test.jsx file contain binary codes like below:
@JSXBIN@ES@2.0@MyBbyBn0ABJAnAEjzFjBjMjFjSjUBfRBFeLjUjFjTjUhAiCjZjOjBjSjZff0DzACByB
It worked.