Hi @JosephD333, I have adapted Kazuhiko Arase's QRCode.js for use with Illustrator. You can download the script files.
First you must put "QRCode.js" in the same folder as the following script, and try this:
//@include 'QRCode.js'
/**
* Draws a QRCode containing the document's URI.
* @author m1b
*/
(function () {
var doc = app.activeDocument;
// this URI might not be best for your situation
var docURI = 'file://' + encodeURI(doc.fullName.fsName);
// draw the QRCode
var qr = new QRCode({
text: docURI,
doc: doc,
left: 0, // points
top: 0, // points
width: 100, // points
});
})();
Notice for your case the variable "docURI". I have made a file URI that works for me on MacOS. You might need to construct it differently for your specific needs. You also need to set the position and width to suit your artwork. You can also pass it colors and adjust QR code settings.
- Mark