Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Text Variable: deleteEndPunctuation

Contributor ,
Nov 05, 2021 Nov 05, 2021

Copy link to clipboard

Copied

Hi,

How can I intract to this 'deleteEndPunctuation' checkbox?

 

Screenshot 2021-11-05 at 5.38.59 PM.png

 

var textvr = app.activeDocument.textVariables;
for(var t=0; t<textvr.length; t++){
    if(textvr[t].variableType == VariableTypes.MATCH_PARAGRAPH_STYLE_TYPE){
        var myoption = (textvr[t].variableOptions); alert(myoption)
    }
}

exit(0);

 

 

Thanks,

Selva

TOPICS
Scripting

Views

41

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

correct answers 1 Correct answer

Contributor , Nov 05, 2021 Nov 05, 2021
Got it.var textvr = app.activeDocument.textVariables; for(var t=0; t<textvr.length; t++){ if(textvr[t].variableType == VariableTypes.MATCH_PARAGRAPH_STYLE_TYPE){ try{var myoption = textvr[t].variableOptions.deleteEndPunctuation; alert(myoption)}catch(e){alert(e)} } }Thanks,Selva 

Likes

Translate

Translate
Contributor ,
Nov 05, 2021 Nov 05, 2021

Copy link to clipboard

Copied

LATEST

Got it.

var textvr = app.activeDocument.textVariables;
for(var t=0; t<textvr.length; t++){
    if(textvr[t].variableType == VariableTypes.MATCH_PARAGRAPH_STYLE_TYPE){
        try{var myoption = textvr[t].variableOptions.deleteEndPunctuation; alert(myoption)}catch(e){alert(e)} 
    }
}

Thanks,

Selva 

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