How to find existing QR Code and update new

Participant ,
Jun 03, 2021 Jun 03, 2021

Copy link to clipboard

Copied

Hi,

I need to find the existing QR code and update the new URL. Could you please guide me to proceed to go further steps? I tried the below code and can't complete it.

 

var mydoc = app.activeDocument;

var mypg = mydoc.pages;

for(var p=0; p<mypg.length; p++){

  var rect = mypg[p].rectangles;

   for(var r=0; r<rect.length; r++){

   var myeps = rect[r].epss[0]  //can't find further validation, lack from here

     if(String(myeps)=="[object EPS]"){

        myeps.createHyperlinkQRCode("https://www.[new website]")

     }

   }

}

 

Screen Shot 2021-06-03 at 6.28.38 pm.png

 

 

Thanks,

Selva

TOPICS
Scripting

Views

138

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

Adobe Community Professional , Jun 03, 2021 Jun 03, 2021
Hi @selvam214 , The same question you've already asked & it has been asnwered as well. https://community.adobe.com/t5/indesign/match-url-and-change-in-qr-code/m-p/11509139#M399586 If there is further challange with this please elaborate a little bit. Thanks Sunil

Likes

Translate

Translate
Adobe Community Professional ,
Jun 03, 2021 Jun 03, 2021

Copy link to clipboard

Copied

Hi @selvam214 ,

 

The same question you've already asked & it has been asnwered as well.

https://community.adobe.com/t5/indesign/match-url-and-change-in-qr-code/m-p/11509139#M399586

If there is further challange with this please elaborate a little bit.

 

Thanks

Sunil

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
Participant ,
Jun 03, 2021 Jun 03, 2021

Copy link to clipboard

Copied

Yes, Sunil. I forgot it. Thanks for reminding me. 

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
Adobe Community Professional ,
Jun 03, 2021 Jun 03, 2021

Copy link to clipboard

Copied

LATEST

This snippet will do the job :

var myDoc = app.documents[0];
for(var i = 0; i < myDoc.pages.length; i++){
    for(var p = 0; p < myDoc.pages[i].pageItems.length; p++){
        if(myDoc.pages[i].pageItems[p].epss.length > 0){
            myDoc.pages[i].pageItems[p].createHyperlinkQRCode("https://www.[new website]");
            }
        }
    }

Sunil

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