Kyle26205577rhrw
New Here
Kyle26205577rhrw
New Here
Activity
‎Jan 13, 2023
03:41 AM
I know but it wasn't working. User error I beleive. Thanks for your help
... View more
‎Jan 13, 2023
03:19 AM
Is there an updated list for 2022? I'm trying to call "Create Trim Marks" from the objects menu but its not working. Thanks
... View more
‎Oct 14, 2022
06:40 AM
@Charu Rajput I have the script setup as an action, just so it's one click rather finding it in the script menu. The script works if I select it from the script menu but if I use the action it crashes after creating the folder, without creating the PDF.
... View more
‎Oct 14, 2022
02:38 AM
@Mike Bro That creates a folder outside of the folder But changing "\Low Res" to "/Low Res" fixed it. I now have what I wanted 🙂 Thanks for your help var LOWRES = Folder(originalDocPath.parent + "/Low Res");
if (!LOWRES.exists) {
LOWRES.create();
}
var _pdfFileName = LOWRES.fsName + "/" + originalDocName + "_LR.pdf";
var dest = Folder(LOWRES);
... View more
‎Oct 14, 2022
02:28 AM
@Charu Rajput This script crashes Illustrator if I set it up as an action. Do you know why? Many thanks
... View more
‎Oct 14, 2022
02:13 AM
Hi @Mike Bro The script is creating a folder named "Artwork..Low Res" inside of "5000_ABC_Example". I want it to create a folder inside "5000_ABC_Example" called "Low Res" (If it doesn't already exist) and save the new file in it.
... View more
‎Oct 14, 2022
01:20 AM
Hi, thanks for the fix. var LOWRES = Folder(originalDocPath + "\..\Low Res");
if (!LOWRES.exists) {
LOWRES.create();
}
var _pdfFileName = LOWRES.fsName + "/" + originalDocName + "_LR.pdf";
var dest = Folder(LOWRES); creates a new folder - What am I doing wrong?
... View more
‎Oct 14, 2022
01:10 AM
I'm using scripts to save PDFs in various formats in various folders. var PRINT = Folder(originalDocPath + "/Print");
if (!PRINT.exists) {
PRINT.create();
}
var _pdfFileName = PRINT.fsName + "/" + originalDocName + "_PRINT.pdf";
var dest = Folder(PRINT); My Folder structure looks like this. \ Currently I have to have the document saved in the enclosing folder (5000_ABC_Example) but I want to have it in the Artwork folder. Basically how do I direct to: originalDocPath but back one folder?
... View more
‎Oct 14, 2022
12:55 AM
That works perfectly! I have 3 different version of my original code - Low res, Print and Zund. I tried to adapt your code to my Print and Zund saves but I can't see what I need to change? You've been so helpful, thank you.
... View more
‎Oct 13, 2022
08:25 AM
Hi @Charu Rajput Thats amazing but sometimes my documents take 20-30 seconds to open. I was hoping to be able to save a copy in the background. Any ideas? Thanks again
... View more
‎Oct 13, 2022
07:54 AM
I have a simple script that saves my current document as a low resolution PDF into a specific folder. Only issue is after using this script (or even saving manually) the current open document in Illustrator becomes this saved PDF document. I want to essentially save as copy. I cant any documentation of the scripting of Save as copy. How could I edit this script to Save as Copy, not Save as. #target illustrator-23
// The active document
var doc = app.activeDocument;
// The path of the original document
var originalDocPath = doc.path;
// The name of the original document
var originalDocName = doc.name;
// Get just the file name. Ignore the file extension .pdf and .ai
originalDocName = originalDocName.replace(/\.pdf|\.ai/gi, "")
// Save as Low Res + create folder if it doesnt exist
var path = originalDocPath.path;
var LOWRES = Folder(originalDocPath + "/Low Res");
if(!LOWRES.exists){
LOWRES.create();
}
// Setup pdf save options
var LOWRESopts = new PDFSaveOptions();
// Use the preset named Smallest File Size
LOWRESopts.pDFPreset = "[Smallest File Size]";
// Save the active document as PDF size and_LR
doc.saveAs(File(LOWRES + "/" + originalDocName + "_LR.pdf"),LOWRESopts,); Thank you.
... View more