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

How to find existing QR Code and update new

Contributor ,
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

695

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

Advocate , 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

Votes

Translate

Translate
Advocate ,
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

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

Copy link to clipboard

Copied

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

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
Advocate ,
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

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