Skip to main content
Gotta Dance
Inspiring
January 6, 2022
Answered

Relative Droplet Scripting Reference

  • January 6, 2022
  • 2 replies
  • 614 views

Hi everybody,

 

What should be one of the cool things about all this automation with JSX scripting is that you're able to share it with your team. Well, I've got the issue with making a droplet where I'm loading a script into actions so I can turn the action into a droplet. However, the problem is it's referencing my script absolutely and not relatively. So if I move anything, it breaks. 

 

Even if I put the script in the same folder as the droplet and bundle it away, the script in the action is still being referenced from the root of my computer. If I move that droplet to a different computer or file location - breaksville. 

 

So...What can I do so that I can suitcase a droplet script and they can use it without script referencing issues?  

 

I want to go into the action, pop it open and change the script reference relative to the file being processed, but I that doesn't seem to be an option. 

What do people do to share droplets? Does that not happen?

This topic has been closed for replies.
Correct answer Stephen Marsh

You need to install the script in the app's presets/scripts directory (see link below for more), so that only the script name is used in the action/droplet. Don't browse to the script which will record the full absolute path.

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

 

You will have to distribute both the droplet and the script file and have the script file installed before the droplet can be used successfully. I don't know of any way around this dependency.

 

2 replies

Kukurykus
Legend
January 6, 2022

If you are in local web where your computers see each other, make inside their Photoshop 'Presets / Scripts' folders a hotlink to server with shared scripts.

Stephen Marsh
Community Expert
Stephen MarshCommunity ExpertCorrect answer
Community Expert
January 6, 2022

You need to install the script in the app's presets/scripts directory (see link below for more), so that only the script name is used in the action/droplet. Don't browse to the script which will record the full absolute path.

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

 

You will have to distribute both the droplet and the script file and have the script file installed before the droplet can be used successfully. I don't know of any way around this dependency.

 

Gotta Dance
Inspiring
January 6, 2022

Ah I ee, make the script internally 'official' in the PSD plugin directory. Don't browse it up homegrown-style. Gotcha, I'll give that a go. Thanks you guys!