Home Forums General XMetaL Discussion Common Macro Reply To: Common Macro

pooh2583

Reply to: Common Macro

Hello Derek,

As per the requirement i will be referring to the external .js file from common folder, and when i use it by Macro->add->Existing File-> and i select the file from the ommon folder but when i go by this method it copies that file itself in the project and this doesnt solve my problem of avoiding redundency.

Also wnen I try to implemet  your above mentioned method by providing external path of the file, i will have to create a new files in the project itself which will be having following code.

var strMyJScript = Application.FileToString(“path to file.js”);
eval(strMyJScript);

so this code would be there for the no. of file I have to call from external common folder for each project.

Ex. to call file1  callfile1
file2 callfile2

please suggest the solution.

Regards,

Reply

Products
Downloads
Support