Skip to main content
rcraighead
Legend
October 25, 2017
Answered

How to tell how many files are open without counting them?

  • October 25, 2017
  • 2 replies
  • 2085 views

I'd like to know how many files I have open in PS (lots). I see the list in "Window" menu, but it continues past the bottom of the screen. Is there a location PS keeps track of the number of files open?

This topic has been closed for replies.
Correct answer JJMack

I was wrong the scriop would not need to add 1

With a Photoshop script that would be the length of the Photoshop's documents array.

if (!documents.length) alert("No Open documents");

else alert(documents.length);

2 replies

Randy Hufford
Community Expert
Community Expert
October 25, 2017

you are correct i do not think their is a way to see how many opened files. Any body else have any ideas?

JJMack
Community Expert
Community Expert
October 25, 2017

With a Photoshop script that would be the length of the Photoshop's document array.  You may need to add 1 for we count from 0 not 1 so if the length is 9 the are 10 document in Photoshop. 0 1 2 3 4 5 6 7 8 9

JJMack
Randy Hufford
Community Expert
Community Expert
October 25, 2017

how do you do this?

JJMack
Community Expert
JJMackCommunity ExpertCorrect answer
Community Expert
October 25, 2017

I was wrong the scriop would not need to add 1

With a Photoshop script that would be the length of the Photoshop's documents array.

if (!documents.length) alert("No Open documents");

else alert(documents.length);

JJMack