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

What is the location of Scripts folder on a Mac ?

Explorer ,
Oct 16, 2020 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 ?

TOPICS
Actions and scripting

Views

4.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

Explorer , Oct 16, 2020 Oct 16, 2020

Got it using Javascript 

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

 

Votes

Translate

Translate
Adobe
Explorer ,
Oct 16, 2020 Oct 16, 2020

Copy link to clipboard

Copied

Got it using Javascript 

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

 

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 ,
Oct 18, 2020 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'

 

 

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
Explorer ,
Oct 19, 2020 Oct 19, 2020

Copy link to clipboard

Copied

LATEST

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

 

 

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