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

Required help to run script based on open documents file type...Please help

Guest
Apr 30, 2017 Apr 30, 2017

Copy link to clipboard

Copied

I have three different action, one for jpeg file,one for psd file & one for png file. I want to create one single script which identify the file type of opened document in photoshop and run action based on file type. Please help..Thanks in advance

TOPICS
Actions and scripting

Views

168

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
Adobe
Advocate ,
May 01, 2017 May 01, 2017

Copy link to clipboard

Copied

LATEST

One possibility is to rely on the file name extensions, and evaluating the name or path property of the document.

Another possibility would look at the info and/or xmpMetaData properties. The latter should provide you the information even with incorrect file name extension.

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