Skip to main content
Participant
December 23, 2009
Question

Placing a file in an Action, pathing issues

  • December 23, 2009
  • 1 reply
  • 2471 views

I have created an action that will Place several local files into a Photoshop Document. I have them stored in the Presets/Actions folder for Photoshop CS3.

Here is the example path: Macintosh HD:Applications:Adobe Photoshop CS3:Presets:Actions:BROWSERS:firefox:botBar.png

This works fine for me (of course), however I want others to be able to use the Action without relinking. Is it possible to edit the path to be relative to the .atn file (and does it even work like that?)

Theory:

So I have my browsers.atn file in the roof of Adobe Photoshop CS3/Presets/Actions and my graphics in Adobe Photoshop CS3/Presets/Actions/Browsers/firefox/file.png. Would I be able to link to it like: Browsers/firefox/file.png?

Sorry if this is confusing. If this won't work, do I have any other options?

This topic has been closed for replies.

1 reply

Inspiring
December 23, 2009

As I understand it paths in action can't be relative.

But Xbytor has code that can be used as in install script that will place the image files where you want them, edit the paths in the action to those new paths, then load the action. The code is part of xtools http://sourceforge.net/projects/ps-scripts/files/xtools/

Participant
December 23, 2009

This either won't work or is above my skill level. I thought I was close at several points but I couldn't get it to do what I wanted. I also tried converting it to XML and editing the path that way, that didn't work either. Thank you for your feedback and help.

Inspiring
December 28, 2009

Thanks for the help. I have set the above install script up, set the Options.name but it is hanging up on the "My Pictures" aspect.

Error: "My Pictures" folder not found...

I assume that the script looks for the "My Pictures" folder and if the computer dosen't have one, it creates it.

Is there any additional customizing I need to do to the file? I looked and fooled around with it but to be honest I don't have a lot of scripting experience.

I would love for the img files to be stored in the Actions folder in the Photoshop folder for the sake of keeping everything nice and tidy, but I won't have a problem with the "My Pictures" folder (if I can get the darn thing to work).

Sorry for being a pest.

edit: Looking at the log files, it says they are undefined. Then I see this, how would I define them in a way that would be platform independent?

Options.myPicturesFolder = undefined;      // created in checkConfig

Options.filesFolder = undefined;                // created in checkConfig

Options.xtoolsFolder = undefined;             // created in checkConfig

Options.atnScript = undefined;                 // created in checkConfig


Error: "My Pictures" folder not found...

What OS are you using? The "My Pictures" folder is a folder found in either 'Documents' on the Mac or 'My Documents' on Windows. That folder is installed by the OS, unless the newer version of Windows have a different location for 'My Pictures'.

edit: Looking at the log files, it says they are undefined. Then I see this, how would I define them in a way that would be platform independent?

Options.myPicturesFolder = undefined;      // created in checkConfig

Options.filesFolder = undefined;                // created in checkConfig

Options.xtoolsFolder = undefined;             // created in checkConfig

Options.atnScript = undefined;                 // created in checkConfig

You don't define those. The script does at runtime relative to where the script is located.