Path for a smart object?
Path for a smart object?
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?
Path for a smart object?
With some trial and error I got it!
Code: Select all if (event == charIDToTypeID('Plc ')) {
alert (desc.getPath( stringIDToTypeID( 'null' )));
}
Code: Select all if (event == charIDToTypeID('Plc ')) {
alert (desc.getPath( stringIDToTypeID( 'null' )));
}
Path for a smart object?
You beat me to this. For others reading the getPath returns a file object and you can also use charIDToTypeID('null').