Skip to main content
niyetkhan
Known Participant
April 4, 2020
Answered

Add files to recent files of PS

  • April 4, 2020
  • 1 reply
  • 659 views

I use the following script to open the files I need from the my specific folder:

 

var dir = Folder('F:/Photos');

var files = dir.openDlg('This is always the same folder?','',true); 

if( files !=null ){ 

     for(var f = 0;f< files.length;f++){ 

          // really should check that the file object is an image file  

          // that Photoshop can open 

          open(files[f]); 

     } 

}

 

The problem is that after opening in this way (by script above), file does not appear in the list of recent files of PS.

How can you fix this, is there a solution?

I’d appreciate any help.

This topic has been closed for replies.
Correct answer JJMack

Scripts can not add  items to that list. If photoshop does not add file open through automation  to the list it is most like by design for  automation is for repetitive processing and it would most like flush out all the file a user had opened in the past and leave behind a list if files a script or action or plug-in opened that the user was not expecting or even know by the user or what they were used for.

 

You could add code to the script to create a list of the files it opens.  Save it as a file or create  an additional new document that it adds a text layer  for each opened file the contain the file path and that is position below the previous opened file.

1 reply

JJMack
Community Expert
JJMackCommunity ExpertCorrect answer
Community Expert
April 4, 2020

Scripts can not add  items to that list. If photoshop does not add file open through automation  to the list it is most like by design for  automation is for repetitive processing and it would most like flush out all the file a user had opened in the past and leave behind a list if files a script or action or plug-in opened that the user was not expecting or even know by the user or what they were used for.

 

You could add code to the script to create a list of the files it opens.  Save it as a file or create  an additional new document that it adds a text layer  for each opened file the contain the file path and that is position below the previous opened file.

JJMack
niyetkhan
niyetkhanAuthor
Known Participant
April 5, 2020

Thank you very much.

Now I'll know.