Skip to content
This repository was archived by the owner on Oct 27, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions lib/photoshop-eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ evalInPhotoshop.getName = function(){
if (evalInPhotoshop.NAME == null) {
try {
;(function(error, Applications){
if (Applications.indexOf('Adobe Photoshop CC 2015') != -1) evalInPhotoshop.NAME = "Adobe Photoshop CC 2015";
else if (Applications.indexOf('Adobe Photoshop CC 2014') != -1) evalInPhotoshop.NAME = "Adobe Photoshop CC 2014";
else if (Applications.indexOf('Adobe Photoshop CC') != -1) evalInPhotoshop.NAME = "Adobe Photoshop CC";
else if (Applications.indexOf('Adobe Photoshop CS6') != -1) evalInPhotoshop.NAME = "Adobe Photoshop CS6";
else if (Applications.indexOf('Adobe Photoshop CS5') != -1) evalInPhotoshop.NAME = "Adobe Photoshop CS5";

for(var i = 0; i < Applications.length; i++) {
var value = Applications[i];
if(value.indexOf('Adobe Photoshop CC') != -1 || value == 'Adobe Photoshop CS6' || value == 'Adobe Photoshop CS5') {
evalInPhotoshop.NAME = value;
break;
}
}

}(null, require('fs').readdirSync('/Applications')));
} catch(e){}
}
Expand Down