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

Explore folder from photoshop using javascript

Engaged ,
Sep 05, 2022 Sep 05, 2022

I created PS script which read some data from xml which is placed on local server. Problem occcures every time i turn off/restart my computer, then i lost connection with that folder and script is not usefull until i manualy explore the mentioned folder. Is it posible to explore that folder as a part of scipt if i know full path of that xml?

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

Community Expert , Sep 06, 2022 Sep 06, 2022

@milevic wrote:

its a MAC OS


 

Then you can go to System Prefs > Users & Groups > Login Items and add the mounted volume.

Translate
Adobe
Advisor ,
Sep 05, 2022 Sep 05, 2022
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 ,
Sep 05, 2022 Sep 05, 2022

Like the answer in Mike's like, I always used the forward slash when referencing a path on my computer or on a server. I also made sure I mapped the network drive with a drive letter. Never had an issue with it, and I had some scripts that referred to XML files on the network.

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 ,
Sep 05, 2022 Sep 05, 2022

It is already forward slash :'-( maybe it is something with network permissions, i just want to share experience and to exclude human mistake. If someone have some more idea, its welcome

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 ,
Sep 05, 2022 Sep 05, 2022

If Windows OS (you didn't say), map the server to a local drive letter as suggested by Chuck, ensuring that you tick "reconnect at login" when mapping the drive so that it automatically mounts each time.

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 ,
Sep 06, 2022 Sep 06, 2022

its a MAC OS

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
LEGEND ,
Sep 06, 2022 Sep 06, 2022

A remote drive must be mounted and available to access in any app. Make sure it is available before you run your script.

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 ,
Sep 06, 2022 Sep 06, 2022

@milevic wrote:

its a MAC OS


 

Then you can go to System Prefs > Users & Groups > Login Items and add the mounted volume.

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 ,
Sep 07, 2022 Sep 07, 2022
LATEST

This is a good hint

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