Skip to main content
Stephen Marsh
Community Expert
Community Expert
March 2, 2025
Question

Script to Check for Existing DataSets? (Variables, Data-driven Graphics)

  • March 2, 2025
  • 1 reply
  • 561 views

I have been extending the original code from the late Mike Hale here:

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/using-datasets/td-p/2665594/page/2

 

I am currently using a confirm dialog for the user to OK to run the script, which relies on them knowing that the file already has Variables/Data Sets defined.

 

Ideally, the script would check for the existence of Data Sets and terminate if none were found.

 

Unfortunately, the action manager code is beyond me, so I was wondering if anyone knew how to check for this.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
March 7, 2025

I couldn’t identify the information via AM-code so far. 

Reading the image-file itself might offer an approach (if the image has been saved since the creation of the datasets at least). 

Stephen Marsh
Community Expert
Community Expert
March 7, 2025

@c.pfaffenbichler - Thank you for your time, I appreciate that this is a rather esoteric niche for scripting.

c.pfaffenbichler
Community Expert
Community Expert
March 7, 2025

I suspect UXP Scripting might offer a better handle on the feature … but I don’t know.