• 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 to see if a .txt file exists?

Community Beginner ,
Oct 31, 2021 Oct 31, 2021

Copy link to clipboard

Copied

Hello all,

 

I am trying to create a script that looks in a specific directory to see if a file exists or not, and return a boolean value either way. I have found some threads that mention a getFile() function but I have not been able to make that work for me in PS. 

 

Any and all help is appreciated!

TOPICS
Actions and scripting , macOS , SDK

Views

624

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 31, 2021 Oct 31, 2021
File(Folder.desktop + '/.txt').exists

Votes

Translate

Translate
Adobe
LEGEND ,
Oct 31, 2021 Oct 31, 2021

Copy link to clipboard

Copied

LATEST
File(Folder.desktop + '/.txt').exists

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