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

saving to a relative location with javascript

Community Expert ,
Jul 07, 2008 Jul 07, 2008
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
591
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
Valorous Hero ,
Jul 08, 2008 Jul 08, 2008
alert(app.activeDocument.path);
alert(app.activeDocument.path.parent);
alert(app.activeDocument.path.parent + "/FolderName");
alert(app.activeDocument.path.parent.parent + "/FolderName");
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 ,
Jul 08, 2008 Jul 08, 2008
LATEST
Great, thanks for the speedy reply!
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