Highlighted

Script to text content on spreads

New Here ,
Apr 14, 2020

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!

Screenshot 2020-04-15 at 08.28.02.png

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)}
	}
}

 

TOPICS
Scripting

Views

609

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Script to text content on spreads

New Here ,
Apr 14, 2020

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!

Screenshot 2020-04-15 at 08.28.02.png

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)}
	}
}

 

TOPICS
Scripting

Views

610

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 14, 2020 0
Adobe Community Professional ,
Apr 15, 2020

Copy link to clipboard

Copied

Offer to pay a fee and you're likely to find someone to do it for you.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 15, 2020 1
Participant ,
Apr 15, 2020

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)}
	}
}

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 15, 2020 1
New Here ,
Apr 15, 2020

Copy link to clipboard

Copied

Thanks a lot 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 15, 2020 0
Adobe Community Professional ,
Apr 15, 2020

Copy link to clipboard

Copied

It's your lucky day!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 15, 2020 0