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

load preset from Photoshop system folder

Explorer ,
Sep 28, 2016 Sep 28, 2016

Copy link to clipboard

Copied

For my panel I have to load tool presets , which have been installed with the Panel. These are folders in Photoshop. mine is

H: \ Program Files \ Adobe Photoshop CC 2015.5 \ Presets \ Tools \ Hiller

is there a option as I can this appeal by script without indicating

H: \ Program Files \ Adobe Photoshop CC 2015.5 \

TOPICS
Actions and scripting

Views

816

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 Expert ,
Sep 28, 2016 Sep 28, 2016

Copy link to clipboard

Copied

You may not even be  able to use "H: \ Program Files \ Adobe Photoshop CC 2015.5 \".  if you plan on distributing your panel.    Do you want to support users other than yourself.  Do you only want to only support CC 2015.5.  How will your extension be installed.  Are you packaging it to be installed by Adobe AddOn installer in the Adobe Creative Cloud Desktop application?  It would be best to locate where the folder is your extension is running from and use the correct path.

There is also a pitfall selecting Presets with a Photoshop script.  Which preset  can be selected may/will depend on what the current Photoshop is. If the User Preset panel UI is set the way Adobe default it.  To display current tools presets only. When the user's UI is set that way  Photoshop can only select preset for the current tool.  If a script select a preset name for another tool  it has loaded into Photoshop the select will fail because it is not for the current tool.   The script needs to make sure the preset is for the current tool. The script may need to change the current to before selecting the tool preset.

JJMack

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 ,
Sep 28, 2016 Sep 28, 2016

Copy link to clipboard

Copied

Over the ZXPSignCmd I could the tool preset in the folder install

H: \ Program Files \ Adobe Photoshop CC 2015.5 \ Presets \ Tools \ Hiller

in mxi file I could specify the path token $tools

This is from the mxi file

<file   source="TOOLS/"

  destination="$tools/Hiller/"

  file-type="ordinary"

  products="Photoshop,Photoshop32,Photoshop64" />

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 ,
Sep 28, 2016 Sep 28, 2016

Copy link to clipboard

Copied

I do not develop extensions or package  my scripts to be installed by Adobe's installer.

The Only point I was trying to make. While you may have installed your Photoshop CC 2015.5 version on your H: most users install Photoshop in the default location. On the C: disk.  That you should not hard coder H: or if you want to support CC 2014, CC 2015 and CC 2015.5 you should not hard code CC 2015.5 folder name.  You would need to locate where your extension was installed and what version of Photoshop it  is running in.  You need to find where your extension is currently executing form and use that path.

In your XML file U see no Diive letter or Photoshop Version coded. They may vary depending on where and what versions of Photoshop your extension is installed into.

JJMack

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 ,
Sep 28, 2016 Sep 28, 2016

Copy link to clipboard

Copied

ok thanks, I only know the way over the ZXP Installer

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
Advocate ,
Sep 29, 2016 Sep 29, 2016

Copy link to clipboard

Copied

The only folder token that might be used is "Folder.appPackage", but it's Mac only.

See more tokens on the JavaScript Tools Guide, page 56.

Davide

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 ,
Sep 29, 2016 Sep 29, 2016

Copy link to clipboard

Copied

This works on a PC

Let's see if it works on all systems

var path = Folder(decodeURI(Folder.appPackage) + "/Presets/Tools/Hiller/Hiller-DB-Werkzeugvorgaben.tpl")

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 03, 2016 Oct 03, 2016

Copy link to clipboard

Copied

LATEST

Hi Davide,

My problem is now, it works on the PC butnot on the MAC. Is there a possibility like it works there

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