Forum Replies Created
-
AuthorPosts
-
Scott Rudy
Participanti have been using this script fairly regularly and was wondering what would be involved in setting the PDF preset that is selected when the script is run. currently it defaults to whatever was the most recently run preset.
scott
Scott Rudy
ParticipantUwe,
in your script…on line 31d.exportFile(ExportFormat.PDF_TYPE,File(pdfFullName),true,undefined,undefined);
what do the two ” undefined” on this line refer to?
scott
Scott Rudy
ParticipantI just wanted to say thank you for helping me with this, it now works great!!!!!
I added it to a larger script that i run when the file is approved. the script preflights the job (including the job code slug line), does a collect, makes a high and low res PDF and a few other archiving type of operations. no more projects going out with an incorrect job code!!!!scott
Scott Rudy
Participantwhat would need to be changed so it does not ask if you want to change the “job code” if it is matching the file name
currently it always asks even if it does not need replacing
scott
Scott Rudy
ParticipantAMAZING!!!!!!
you understood exactly what i needed. I am adding this to a larger script that does a simple preflight, metatag, collect for output, and makes a high and low res PDF all saved in the proper folders. this is just another part of keeping my designers consistent in how they are saving the final art for our projects.the only issue is it finds abc123456_
and returns abc123456 without the underscorewhat line do i need to change to keep the underscore?
scott
Scott Rudy
ParticipantI have a start on a different way but do not know how to get it to actually work….
the below script will insert the beginning of the filename up to that underscore into the document at the point where you have the text insertion point.
#target indesign;
#targetengine “myCustomGetFileNameHandler”;fileNameVariable = app.activeDocument.name.split(“_”)[0]; // get XXXXX from XXXXX_Name1_Name2_Name3.indd file name
// app.activeDocument.textVariables.item (“myVariable”).variableOptions.contents = fileNameVariable;myTextFrame = app.selection[0];
firstInsertionPoint = myTextFrame.insertionPoints[-1].index;
myTextFrame.contents += fileNameVariable;
myAddedText =
myTextFrame.characters.itemByRange(myTextFrame.insertionPoints[firstInsertionPoint],
myTextFrame.insertionPoints[-1]);what i’m thinking is can i replace the insertion point with a grep find/change that will search the entire document for \<[\u]+[\d+]_
which will find my file name format that is ABC123456 (sometimes i have a few extra letters at the beginning)
and replace it with the “file name variable”ideally i would like it to call up an alert if they are different in case there was a reason for the difference
scott
Scott Rudy
Participantwould this work?
apply an all cap character style to…
(?<=\p{punctuation} )|^
it looks for any punctuation followed by a space then caps the next letter, then it caps all first letters of a paragraph
this will work for a multi sentenced paragraph.
Scott Rudy
Participantwhat response are you getting when you assign the paragraph style, which has the grep assigning the character style, to the text?
Scott Rudy
Participantthanks for piggybacking on my post….i tried out peters grep and it works like a charm, this is one i will be writing down for some other use
and , peter thanks for spelling out what the different codes mean, it really helps me wrap my head around this
scott
Scott Rudy
Participanti tried it in a new document and it worked PERFECT!!!!
i hope you have fun figuring out these grep that you help people with so freely. It is a great tool and i have done some really fun things with it but it frustrates me when i know i can see the pattern so i know it can be done, but cannot figure it out myselfthanks for the assistance, thanks for the explanation and thank you your patience!!!!
scott
Scott Rudy
Participantpeter,
unfortunately i am getting no response from that …
i have tried to figure out the [^;] but am not savvy enough to grasp it…
it means the character set of ; back to the beginning of the paragraph?because i cannot wrap my head around this i am unable to trouble shoot why i am getting nothing when i add this to my style sheet
would you be so kind as to help a little more?
Scott Rudy
Participantbringing this back from the dead….
this is working for me until i add a forced line break before a excluded word (i.e., and)
when I force break and the word i do not want to be capped is the first word on the next line it gets recognized as the first word of a new sentence capitalizing it. is there a remedy?
-
AuthorPosts
