Skip to main content
JHanna-NtstF0
Participant
September 25, 2015
Question

Windows UAC safe location to save scripts?

  • September 25, 2015
  • 6 replies
  • 1072 views

Is there any Photoshop support for storing scripts in a location that is not under c:\program files (or c:\program files (x86))? I was hoping c:\users\<username>\appdata\roaming\adobe\presets\ would work but making a \scripts folder in there and storing scripts doesn't result in those scripts being loaded/parsed by Photoshop. I've searched online and in the scripting docs. Maybe I've missed it, but I haven't found any documentation stating how you can integrate Photoshop into a pipeline w/ custom scripts on a machine that will have UAC enabled and may not have administrator privileges. Any help people can provide in how to do this would be appreciated.

This topic has been closed for replies.

6 replies

SuperMerlin
Inspiring
September 28, 2015

You could create a script folder off the Deco folder as Adobe has removed UAC from that folder.

Chuck Uebele
Community Expert
Community Expert
September 28, 2015

You could create a script folder off the Deco folder as Adobe has removed UAC from that folder.

Putting regular Extend script off the Deco folder will not make them show up in the file menu in the scripts folder. It will make the script show up in the list for the Deco fill script, but those scripts use a different API and will throw an error if run from that menu. Plus, that folder is still in the program file tree structure which Windows limits user access.

SuperMerlin
Inspiring
September 28, 2015

You need to try it then! JSX files do show up in Photoshop, I tried it with a folder called Scripts. The Deco folder is open to Everyone!

matias.kiviniemi
Legend
September 28, 2015

Also Plug-ins\Generator is an issue.

The %appdata%-option is also better because you can make a zxp that provisions multiple folders under %appdata%. But you can't make a zxp that provisions multiple photoshop versions because the $photoshopappfolder-token will always resolve to latest version.

JJMack
Community Expert
Community Expert
September 25, 2015

I keep all my scripts in my own Scripts tree.   In each version of Photoshop I have installed on my machine I place a link to my Scripts tree into Photoshop Presets\Scripts Folder. All versions of Photoshop use the same copy of my scripts and Scripts installed in my Scripts tree are listed in Photoshop's menu File>Scripts>My Script Name.  Except those that are Plug-in scripts I have them listed in menu File>Automate>My Plug-in Script Name.

JJMack
Inspiring
September 26, 2015

One technique that I use is to create an Action Set that contains actions for all of my commonly used scripts. That complete avoids the UAC problem.

Chuck Uebele
Community Expert
Community Expert
September 26, 2015

That would work.

matias.kiviniemi
Legend
September 25, 2015

This is probably the best "specification".. If they built an ZXP parser for it, you can probably get software to load stuff from there. Rest is trial and error

Path tokens

Chuck Uebele
Community Expert
Community Expert
September 25, 2015

I'd like to know also.

matias.kiviniemi
Legend
September 25, 2015

It goes both ways, for example panels load from ...\roaming\Adobe\CEP\extensions but Generator Plugins just from PHOTOSHOPFOLDER\Plug-ins\Generator. Unfortunately if you found nothing, probably that's the case. It's the old stuff and it's only lately that Microsoft implemented special permissions on Program Files. It's not enough make a .cmd that copies files have user right click and "run as administrator", script still has insufficient permissions.

One option is to package your scripts as a HTML panel (e.g. just buttons that run scripts) and that you can provision in the above place. Another options is package the scripts as an ZXP and use "$photoshopappfolder/where/you/need/to/put/them" as file destination.

As might have noticed, it's a bit of a bazaar that's built over a few decades and takes some trial and error