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

Photoshop action to call script regardless of file location

Explorer ,
Dec 29, 2022 Dec 29, 2022

I have several Photoshop actions which call a script located at:

"C:\Users\username\Documents\Scripts\myScript.jsx"

I want to backup these files to Microsoft OneDrive which once connected unfortunately changes the file path to:

"C:\Users\username\OneDrive\Documents\Scripts\myScript.jsx"

This obviously breaks my actions as PS can't find the script. 

Is there a way around this where PS can search parent directories/folders or any setting to make this work without redoing all my actions and pointing to the new file locations? This would be a huge nightmare

 

 

Thanks!

 

TOPICS
Actions and scripting
549
Translate
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 ,
Dec 29, 2022 Dec 29, 2022

If you record the script using File/Scripts/Browse... the full absolute path to the script is recorded in the action.

 

If you instead install the script into the Photoshop application folder Presets/Scripts folder, then it will be available in the File/Scripts menu and will be recorded in an action with a relative name without the absolute path.

 

Edit: You only need to re-record the single installed script step in each action, so you don't need to redo every action from scratch. Once recorded correctly in the first action it can be duplicated and dragged into other actions and sets.

Translate
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 ,
Dec 29, 2022 Dec 29, 2022

"Is there a way around this where PS can search parent directories/folders or any setting to make this work without redoing all my actions and pointing to the new file locations? This would be a huge nightmare"

 

Short answer is NO.

Translate
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
LEGEND ,
Dec 30, 2022 Dec 30, 2022

Adobe does not support cloud storage and mixing the two usually results in problems. Anything touched by Adobe should not be in a cloud folder, period.

Translate
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
Mentor ,
Jan 12, 2023 Jan 12, 2023
LATEST
Translate
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