Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
pdf_export [2024/04/04 09:07] – [Javascript] o2adminpdf_export [2024/04/04 09:08] (current) – [Javascript] o2admin
Line 29: Line 29:
 ==== Javascript ==== ==== Javascript ====
  
-You can run Extendscript (Illustrator's built-in version of Javascript) to modify the file and path. Your code will be wrapped in a function so ensure that you include a return statement with the required data structure.+You can run Extendscript (Illustrator's built-in version of Javascript) to modify the file and path. Your code will be wrapped in a functionso ensure that you include a return statement with the required data structure.
  
   * Return an array with the find and replace values such as [{ find: "ABC", replace: "123"},{find: "Cat", replace: "Dog"}], which will be applied to the filename template   * Return an array with the find and replace values such as [{ find: "ABC", replace: "123"},{find: "Cat", replace: "Dog"}], which will be applied to the filename template
Line 59: Line 59:
 var matches = docName.match(/F(\d+)/); var matches = docName.match(/F(\d+)/);
 if (matches) { if (matches) {
-  setPath('X:\' + matches[1] + '\');+  setPath('X:/' + matches[1] + '/');
   return [];   return [];
 } }