% % bring up composite % _Customer.Xact !Xact "Main.psd" ofxact dup exists { % % the main composite of this image exists, check for backup exists % dup "2.psd" reextend dup exists { % % have a current backup to the main composite, proceed % pop } { % % no backup image, back up the main composite image % dup2nd copyfile } ifelse % % stack: src-file % % create the js for photoshop, start with open file intro js % *phocpreh % % insert the main composite psd into js % exch tojsquo & % % add the suffix of js for file open % *phocpsth } { % % nothing to edit in this xact % pop } ifelse