Copy link to clipboard
Copied
Good morning
Is there a way to warn that there are more than one open document in Photoshop?
If there is only an open document, no warning is required
If there are more open documents, a warning must be issued.
At which point is the warning supposed to happen?
When you (try to) open another image or as part of some process?
if (documents.length > 1) {alert ("more than one open image")}
Copy link to clipboard
Copied
At which point is the warning supposed to happen?
When you (try to) open another image or as part of some process?
if (documents.length > 1) {alert ("more than one open image")}
Copy link to clipboard
Copied
Thank you
And what I was looking for
Now I want to put it in a ScriptingListener
Should do this job
If there is more open documents nothing happens
If the document and one part the script or action.
Copy link to clipboard
Copied
I do not understand your statement, please elaborate with the help of screenshots.
By »ScriptingListener« do you mean File > Scripts > Script Events Manager?
Copy link to clipboard
Copied
c.pfaffenbichler
I managed to run it
Thank you
Copy link to clipboard
Copied
Hi
Use the below code,
if (documents.length == 1) {
// Post your ScriptingListener code Here !!!
}
else{
alert ("There is no document to use")
}
-yajiv
geppettol66959005 wrote
Thank you
And what I was looking for
Now I want to put it in a ScriptingListener
Should do this job
If there is more open documents nothing happens
If the document and one part the script or action.
Copy link to clipboard
Copied
Thank you natrev
Just what I did
very kind