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

Photoshop Script - specific network location folder

Engaged ,
Oct 15, 2019 Oct 15, 2019

Copy link to clipboard

Copied

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

Views

1.1K

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

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.

Votes

Translate

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

Copy link to clipboard

Copied

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

var theFolder = New Folder(foo);

 

Watch the forward and backslashes in Extendscript.

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

Copy link to clipboard

Copied

LATEST

sorry for the delay, but it worked, thank you

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