Skip to main content
Known Participant
January 16, 2025
Question

How to find and edit QR Codes using scripting

  • January 16, 2025
  • 4 replies
  • 4056 views

There appears to be several methods available in order to create QR Codes within the Scripting API. What we need is a way to find each QR Code and examine/edit the URL. There apprears to be nothing listed for this within the API documentation. Is there any way to step through the Graphics in each doucment, determine whether or not they are QR Codes, and if they are, to then check/edit the URL? 

4 replies

M S V
Inspiring
January 31, 2025

hi 

looking in the properties of the links in an Indesign document

I've seen then QRCodes generated in Indesign have

the name starting with "QR Codexxxxx" and the status link embedded

so you can make an array of all links and test name and status to find every QR Code

Robert at ID-Tasker
Legend
January 31, 2025
m1b
Community Expert
Community Expert
January 17, 2025

Hi @Ken Webster, do you create all the QR Codes in-house? Or are they existing QR Codes that come from other sources? It's a strange question, but I'm asking because I can think of possible solutions to this but it only works going forward with newly-created QR Codes that you've made in-house. This is probably a deal-breaker, but you can let me know.

- Mark

Robert at ID-Tasker
Legend
January 17, 2025

Make them as external files and link? Instead of generating in the InDesign? Of course InDesign can be used to generate them. 

 

Which would be the only sensible solution - till Adobe adds option to re-generate them through scripting. 

 

Robert at ID-Tasker
Legend
January 16, 2025

 

Robert at ID-Tasker
Legend
January 16, 2025

Can't check right now - but i think QR codes are stored as Embedded EPS files. 

 

Known Participant
January 16, 2025

Yes they are.. But we still need a way to determine if the embedded EPS file is a QR Code, and then read the URL string.

Robert at ID-Tasker
Legend
January 16, 2025

I don't think there is a way to read it back - from a script?