Copy link to clipboard
Copied
In my script, I have some alerts and confirms (e.g. if I detect a problem, I may use a confirm to ask the user if they want to proceed). Now, often this works well, but sometimes the confirm dialogs remains open after I click "yes" or "no". I suppose this is similar to my other problem. I tried to place a app.refresh() after some of those dialogs, but the issue still happens.
Do you know how to definitively solve this issue?
Copy link to clipboard
Copied
I forgot to mention (and there doesn't seem to be a way to edit the posts).
I'm using ExtendScript.
I'm on a MacOS Sequoia and using Photoshop 26.9.0.
Copy link to clipboard
Copied
You need to provide code.
Copy link to clipboard
Copied
The code is always the same
if(!confirm("some message")) {
throw new Error();
}
// Otherwise proceed
Copy link to clipboard
Copied
Without context, it's hard to comment on the snippet. The dialog closes for me using your snippet.
Your other topic uses scriptUI, which is more complicated than native system prompts/alerts/confirms.
https://theiviaxx.github.io/photoshop-docs/ScriptUI/Window.html
Copy link to clipboard
Copied
Post.Your.Scripts. We can't help without seeing the code.
Copy link to clipboard
Copied
Yes, I know that in theory the confirm window should close. That's why I'm asking this question. If it happened to anyone else.
I will not post my scripts obviously. If I wanted to post them, I'd already.
Copy link to clipboard
Copied
You are doing something wrong.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now