is there a way to find out .jsx file name?

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

tyr

is there a way to find out .jsx file name?

Post by tyr »

Hey everyone.

A bit weird question, but is there a way to find out a filename of current script?

What I am trying to do is load variables from the external txt with the same name as script so that 01.jsx would load vars from 01.txt and 02.jsx would load vars from 02.txt and so on. The code within both jsx should be the same.

Thanks!

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

tyr

is there a way to find out .jsx file name?

Post by tyr »

Ops, googling for another ten minutes got me an answer: (new File($.fileName)).name
Sorry for that
larsen67

is there a way to find out .jsx file name?

Post by larsen67 »

Opps not reading properly… sorry