Extendscript to detect is current document standalone document or smart object in editing mode.
Hi people,
Is any working approach to make detection mentioned in title?
I've tried:
if (doc.path != "" && doc.saved)
{ isStandalone = true;
---------------------------------------------
try { // Check if document has a parent property (indicating it's a Smart Object being edited) if (doc.hasOwnProperty('parent') && doc.parent !== null) {
------------------------------------------------------------------------
No results at the moment.
