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

Programmatically set linked path

Engaged ,
Nov 08, 2025 Nov 08, 2025

Hi!
I want to set linked path, to active.doc path, provably set it using jsx script
It defaults to the last used path.
or set File.openDialog(), default to active doc path ?
Any ideas how to ?
Thanks!

 

TOPICS
Scripting
61
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 ,
Nov 08, 2025 Nov 08, 2025
LATEST

try this snippet to pre-select the current active document folder in an open dialog.

Make sure the active document is saved at least once. Unsaved documents don't have a file path

 

// preselect folder, set default open folder to active document folder (saved)

var f = app.activeDocument.fullName;

var ff = f.openDlg ("select file from f parent folder", "*.*", false);
//File.openDialog()
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