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

Photoshop Script - specific network location folder

Engaged ,
Oct 15, 2019 Oct 15, 2019

Hello everyone,

I have this simple script to select a folder via dialog and assign it to variable:

 

var theFolder = Folder.selectDialog("select folder");
var fileandfolderAr = scanSubFolders(theFolder,/\.(nef|NEF)$/i);
var fileList = fileandfolderAr[0];

 

 My folder location is a network drive and the path is:

"\\Network1\testfolder"

I want to assign to theFolder the specific location instead of choosing it via dialog.

 

TOPICS
Actions and scripting
1.2K
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

correct answers 1 Correct answer

LEGEND , Oct 15, 2019 Oct 15, 2019

var foo = '//folder1/folder2/folder3';

var theFolder = New Folder(foo);

 

Watch the forward and backslashes in Extendscript.

Translate
Adobe
LEGEND ,
Oct 15, 2019 Oct 15, 2019

var foo = '//folder1/folder2/folder3';

var theFolder = New Folder(foo);

 

Watch the forward and backslashes in Extendscript.

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
Engaged ,
Dec 30, 2019 Dec 30, 2019
LATEST

sorry for the delay, but it worked, thank you

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