Copy link to clipboard
Copied
Hi Everybody,
Can someone help me with a script:
I have a document of 500pages where i have to use the script CornerEffects.jsx!
I need a script to start from the begining of the document,
Select the text frames,
run the script CornerEffects.jsx,
then repeat this step to all spreads on the document !
Thanks in advance
change CornerEffects.jsx 11-42 lines to this and be happy
app.doScript('main()', ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, 'CornerEffects')
function main(){
if(app.documents.length != 0){
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll
var myObjectList = app.activeDocument.textFrames.everyItem().getElements()
if(myObjectList.length != 0){myDisplayDialog(myObjectList)}
}
}
Copy link to clipboard
Copied
Offer to pay a fee and you're likely to find someone to do it for you.
Copy link to clipboard
Copied
change CornerEffects.jsx 11-42 lines to this and be happy
app.doScript('main()', ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, 'CornerEffects')
function main(){
if(app.documents.length != 0){
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll
var myObjectList = app.activeDocument.textFrames.everyItem().getElements()
if(myObjectList.length != 0){myDisplayDialog(myObjectList)}
}
}
Copy link to clipboard
Copied
Thanks a lot
Copy link to clipboard
Copied
It's your lucky day!