I have defined some variables and a data set, is it possible to apply it when I open the PSD file? Or apply the data set with action on startup of PSD file?
You mean metadata? Bridge can do what it sounds like you want:
Learn about Extensible Metadata Platform (XMP) standard and working with metadata in Adobe Bridge
Yes, you can set up an action to apply a data set.
Retrieving data ...