• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Script to text content on spreads

Community Beginner ,
Apr 14, 2020 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

 

TOPICS
Scripting

Views

842

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
community guidelines

correct answers 1 Correct answer

Participant , Apr 15, 2020 Apr 15, 2020

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

 

Votes

Translate

Translate
Community Expert ,
Apr 15, 2020 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.

Votes

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
community guidelines
Participant ,
Apr 15, 2020 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)}
	}
}

 

Votes

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
community guidelines
Community Beginner ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

Thanks a lot 

Votes

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
community guidelines
Community Expert ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

LATEST

It's your lucky day!

Votes

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
community guidelines