How do I end the JSX script

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

meiyunyou
Posts: 20
Joined: Tue May 26, 2020 9:11 am

How do I end the JSX script

Post by meiyunyou »

How to use the script ends JSX script

For example, a lot of scripts are opened

For example, I double-clicked 10 JSX scripts on my desktop

Because sometimes opening scripts doesn't respond,
User avatar
Kukurykus
Posts: 528
Joined: Mon Jul 25, 2016 12:36 pm

Re: How do I end the JSX script

Post by Kukurykus »

I can't understand what you exactly mean, but you don't have to end the script, it ends usually itself with last line of its code.

I don't know what you are trying to do in Photoshop and what your script contains so I can't say why it sometimes doesn't work.
User avatar
txuku
Posts: 136
Joined: Thu Jan 01, 1970 12:00 am

Re: How do I end the JSX script

Post by txuku »

Bonjour

maybe you want to talk about droplets?

Or endless loops: Ctrl Alt Supp and close Photoshop!
:)
meiyunyou
Posts: 20
Joined: Tue May 26, 2020 9:11 am

Re: How do I end the JSX script

Post by meiyunyou »

Kukurykus wrote: Thu May 28, 2020 3:51 pm I can't understand what you exactly mean, but you don't have to end the script, it ends usually itself with last line of its code.

I don't know what you are trying to do in Photoshop and what your script contains so I can't say why it sometimes doesn't work.
How do you tell if there's a constituency

If there is no selection,Exit with a pop-up warning
User avatar
Kukurykus
Posts: 528
Joined: Mon Jul 25, 2016 12:36 pm

Re: How do I end the JSX script

Post by Kukurykus »

The words you use don't reflect Photoshop features. Please post images (screenshots) to show what you want, unless you ask for this:

Code: Select all

sTT = stringIDToTypeID;  if (documents.length) {
	(ref = new ActionReference()).putProperty(sTT('property'), sTT('selection'))
	ref.putEnumerated(sTT('document'), sTT('ordinal'), sTT('targetEnum'))
	if (!executeActionGet(ref).hasKey(sTT('selection'))) alert('No selection!')
}
meiyunyou
Posts: 20
Joined: Tue May 26, 2020 9:11 am

Re: How do I end the JSX script

Post by meiyunyou »

Kukurykus wrote: Sat May 30, 2020 11:03 am The words you use don't reflect Photoshop features. Please post images (screenshots) to show what you want, unless you ask for this:

Code: Select all

sTT = stringIDToTypeID;  if (documents.length) {
	(ref = new ActionReference()).putProperty(sTT('property'), sTT('selection'))
	ref.putEnumerated(sTT('document'), sTT('ordinal'), sTT('targetEnum'))
	if (!executeActionGet(ref).hasKey(sTT('selection'))) alert('No selection!')
}
Can you please do me a favor
I don't know where is wrong
Please help me modify the
Thank you very much
Attachments
xx.zip
Beg you to modify
(12.18 KiB) Downloaded 229 times
User avatar
Kukurykus
Posts: 528
Joined: Mon Jul 25, 2016 12:36 pm

Re: How do I end the JSX script

Post by Kukurykus »

What about code I wrote so far. You didn't say does it help?

Regarding code you want me to fix, I'm sorry, I'm not going to do it. I can help you in little tasks.

btw it's better to say where from you got the code that does not work, and what this script does?
meiyunyou
Posts: 20
Joined: Tue May 26, 2020 9:11 am

Re: How do I end the JSX script

Post by meiyunyou »

Kukurykus wrote: Sun May 31, 2020 10:27 am What about code I wrote so far. You didn't say does it help?

Regarding code you want me to fix, I'm sorry, I'm not going to do it. I can help you in little tasks.
I'm sorry. Thank you for your help