Path for a smart object?

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

myranalis

Path for a smart object?

Post by myranalis »

I've got a script firing on the place event - is there any way to get to the path of the file that is being placed?

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

myranalis

Path for a smart object?

Post by myranalis »

With some trial and error I got it!

Code: Select all    if (event == charIDToTypeID('Plc ')) {
      alert (desc.getPath( stringIDToTypeID( 'null' )));
    }
Mike Hale

Path for a smart object?

Post by Mike Hale »

You beat me to this. For others reading the getPath returns a file object and you can also use charIDToTypeID('null').