Forum Replies Created
-
AuthorPosts
-
Kirsten McMillan
Memberyour textbox with the filename using the paragraph style “PageName” just needs to be touching the edge of the page. So put it in the slug area and format the textbox to bottom align and the have the top of the text box touch the edge of the page. This way your filename doesn’t show on the page. You can also but that textbox on a separate non-printing layer.
Kirsten McMillan
MemberSOLVED
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
app.doScript(resetClippingPath, ScriptLanguage.JAVASCRIPT, [], UndoModes.ENTIRE_SCRIPT, “Clipping Path On – NEW”)function resetClippingPath(){
var allOpenDocs = app.documents;
for(var m=0;m<allOpenDocs.length;m++){
var d=allOpenDocs[m];
var linksIDs = d.links.everyItem().id;
for(var n=0;n<linksIDs.length;n++){
try{
d.links.itemByID(linksIDs[n]).parent.parent.images[0].clippingPath.clippingType = ClippingPathType.PHOTOSHOP_PATH;
}catch(e){};};
};
};
March 19, 2019 at 1:01 pm in reply to: Apply Multiply Effect and Clipping Path then Group images. #115447Kirsten McMillan
MemberCould you guys help me with a script that will turn on the Clipping Path on all images, on all pages, in a document?
Kirsten McMillan
MemberThank you Graham, but I don’t think that is the correct GREP either. 0 instances are found with that.
Kirsten McMillan
MemberThanks to Trevor in the Adobe forums
You are passing a number in line 27, presumably
pagesize.variableOptions.contents = (app.activeDocument.documentPreferences.documentBleedBottomOffset)you need to pass a string so use
pagesize.variableOptions.contents = (” + app.activeDocument.documentPreferences.documentBleedBottomOffset)
This solved it!
Kirsten McMillan
MemberThis is going in a slug, I want the Bleed Size Variable to update when the script is run. It’s not always going to be .125in, sometimes it is .25in for larger print pieces.
Kirsten McMillan
MemberWith Line 27 like below:
{
pagesize = app.activeDocument.textVariables.itemByName(“Bleed”);
pagesize.variableOptions.contents = (app.activeDocument.documentPreferences.documentBleedBottomOffset)
}I get:
Javascript Error!
Error Number: 30477
Error String: Invalid value for set property ‘contents’. Expected String or SpecialCharacters enumerator, but received 0.125.Line: 27
Source: pagesize.variableOptions.contents = (app.activeDocument.documentPreferences.documentBleedBottomOffset) -
AuthorPosts
