Highlighted

What is the location of Scripts folder on a Mac ?

Community Beginner ,
Oct 16, 2020

Copy link to clipboard

Copied

In a previous post, was trying to put a Javascript file into the scripts Menu.

 

I was looking for a Scripts folder at `~/Library/Application Support/Adobe/Adobe Photoshop 2020/Presets`, but couldn't find it. Though the File > Scripts menu has scripts listed under it.

 

Photoshop Scripting support PDF does not give any hints about its location in Photoshop 2020 it only mentions about its location in `Photoshop CS5` 🤪

 

ps.scripting.support.png

 

So where is this folder located in a Mac ?

Correct answer by user620 | Community Beginner

Got it using Javascript 

Folder.appPackage.parent.toString() + "/Scripts/"

 

TOPICS
Actions and scripting, How to

Views

55

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

What is the location of Scripts folder on a Mac ?

Community Beginner ,
Oct 16, 2020

Copy link to clipboard

Copied

In a previous post, was trying to put a Javascript file into the scripts Menu.

 

I was looking for a Scripts folder at `~/Library/Application Support/Adobe/Adobe Photoshop 2020/Presets`, but couldn't find it. Though the File > Scripts menu has scripts listed under it.

 

Photoshop Scripting support PDF does not give any hints about its location in Photoshop 2020 it only mentions about its location in `Photoshop CS5` 🤪

 

ps.scripting.support.png

 

So where is this folder located in a Mac ?

Correct answer by user620 | Community Beginner

Got it using Javascript 

Folder.appPackage.parent.toString() + "/Scripts/"

 

TOPICS
Actions and scripting, How to

Views

56

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
Oct 16, 2020 0
Community Beginner ,
Oct 16, 2020

Copy link to clipboard

Copied

Got it using Javascript 

Folder.appPackage.parent.toString() + "/Scripts/"

 

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
Reply
Loading...
Oct 16, 2020 0
Adobe Community Professional ,
Oct 18, 2020

Copy link to clipboard

Copied

I didn't know about the code you used, so I personally would have used something like:

 

 

app.path + '/Presets/Scripts'

 

 

However one then has to deal with the %20 characters for word spaces:

 

 

app.path.toString().replace(/%20/g, ' ') + '/Presets/Scripts'

 

 

So the following would be better:

 

 

app.path.fsName + '/Presets/Scripts'

 

 

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
Reply
Loading...
Oct 18, 2020 0
user620 LATEST
Community Beginner ,
Oct 19, 2020

Copy link to clipboard

Copied

I think '%20' happens if you concatenate a '\r' character instead of a '\n' for the Unix based OSes

 

 

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
Reply
Loading...
Oct 19, 2020 0