• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Close photoshop JSX script

Community Beginner ,
Jun 26, 2021 Jun 26, 2021

Copy link to clipboard

Copied

Hello,

 

I want to close photshop, already tested app.quit(); but not working, i dont find any information on the web to close photoshop (not document).

 

Thanks you!

TOPICS
Actions and scripting

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 26, 2021 Jun 26, 2021

Hi,

quit() does not exists for Photoshop.

Try following

 

executeAction(app.charIDToTypeID('quit'), undefined, DialogModes.NO);

 

 

Votes

Translate

Translate
Adobe
Community Expert ,
Jun 26, 2021 Jun 26, 2021

Copy link to clipboard

Copied

Hi,

quit() does not exists for Photoshop.

Try following

 

executeAction(app.charIDToTypeID('quit'), undefined, DialogModes.NO);

 

 

Best regards

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 26, 2021 Jun 26, 2021

Copy link to clipboard

Copied

I heard it does not work for everyone, maybe on Mac? Anyway it's DOM equivalant of AM 'quit' and it's initiated during launching Photoshop from:

 

'C:\Program Files (x86)\Common Files\Adobe\Startup Scripts CC\Adobe Photoshop\photoshop.jsx'

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 27, 2021 Jun 27, 2021

Copy link to clipboard

Copied

I tried on mac. And it works. Not sure about Windows. Will give it a try on Windows as well.

Best regards

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 27, 2021 Jun 27, 2021

Copy link to clipboard

Copied

LATEST

On Windows it works, but not for users who deleted StartupScriptsCC folder for some reason.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 26, 2021 Jun 26, 2021

Copy link to clipboard

Copied

If you want to avoid saving preferences use:

 

system('start "" taskkill /f /im photoshop.exe')

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines