Checking the Photoshop Version

Engaged ,
Aug 01, 2022 Aug 01, 2022

Copy link to clipboard

Copied

Hello friends.
How to check Photoshop versions with scripts
I have a script here that I could only detect the CS3 version.
My version I currently use:
Adobe Photoshop Version: 22.1.0 20201125.r.94 2020/11/25:
How do I check this version?

if (parseInt(version, 10) ==10){alert("This is Photoshop CS3")}
TOPICS
Actions and scripting

Views

51

Likes

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

Advocate , Aug 01, 2022 Aug 01, 2022

Hello @Shulipa Bernad,

 

Try this...

 

var ThisPhotoshopVersion = version
alert("Photoshop Version:\n" + ThisPhotoshopVersion);

 

Regards,

Mike

Likes

Translate

Translate
Advocate ,
Aug 01, 2022 Aug 01, 2022

Copy link to clipboard

Copied

Hello @Shulipa Bernad,

 

Try this...

 

var ThisPhotoshopVersion = version
alert("Photoshop Version:\n" + ThisPhotoshopVersion);

 

Regards,

Mike

Likes

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
Engaged ,
Aug 02, 2022 Aug 02, 2022

Copy link to clipboard

Copied

Great, perfect! And that's what I was looking for. @mikeb41294032 thanks, for the script.

Likes

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
Adobe Community Professional ,
Aug 03, 2022 Aug 03, 2022

Copy link to clipboard

Copied

LATEST

I use a conditional check:

 

// Ensure that version 2022 or later is being used
var versionNumber = app.version.split(".");
var versionCheck = parseInt(versionNumber);
if (versionCheck < 23) {
    alert("You must use Photoshop 2022 or later...");

} else {
    // Do your stuff!
}

Likes

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