Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

42

Likes

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

Adobe Community Professional , Oct 31, 2021 Oct 31, 2021
File(Folder.desktop + '/.txt').exists

Likes

Translate

Translate
Adobe Community Professional ,
Oct 31, 2021 Oct 31, 2021

Copy link to clipboard

Copied

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

Likes

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