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

saving to a relative location with javascript

Community Expert ,
Jul 07, 2008 Jul 07, 2008

Copy link to clipboard

Copied

Some time ago somebody, XBytor I think, generously told me how to get the file-location and save a copy into the same folder as the original file.
But at the company I work at many people have the individual job-folders set up to contain a folder for the layered psd-files and a Links-folder containing the separated and flattened files for placing in Indesign.
Now is there a way to go a step up in the document path and then save the copy into the neighboring folder (provided that it is always named the same of course) with Javascript?

Any suggestions or a simple confirmation regarding the possibility appreciated.
TOPICS
Actions and scripting

Views

508

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
Valorous Hero ,
Jul 08, 2008 Jul 08, 2008

Copy link to clipboard

Copied

alert(app.activeDocument.path);
alert(app.activeDocument.path.parent);
alert(app.activeDocument.path.parent + "/FolderName");
alert(app.activeDocument.path.parent.parent + "/FolderName");

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 ,
Jul 08, 2008 Jul 08, 2008

Copy link to clipboard

Copied

LATEST
Great, thanks for the speedy reply!

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