Open as Smart Object

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

Moskit

Open as Smart Object

Post by Moskit »

How can i open document in photoshop as smart object ("ScriptingListenerJS.log" is not writing anything for this action)?
I can't understand how can i use Code: Select allapp.open (somedocument, asSmartObject)
help me, please

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

Mike Hale

Open as Smart Object

Post by Mike Hale »

The only image format that you can open as a smart object is camera raw. Scriptlistener does record that action.

For other formats you need to use File-Place to open the file as a smart object in an existing document. That too is recorded by scriptlistener.
Moskit

Open as Smart Object

Post by Moskit »

The only image format that you can open as a smart object is camera raw
i think, you mean with scripts, because in Photoshop i can use command "File>Open as smart object" and open any file type (as example vector *.eps)
Mike Hale

Open as Smart Object

Post by Mike Hale »

I stand corrected. However File-Open as Smart Object is also recorded by scriptlistener...

Code: Select all    var desc = new ActionDescriptor();
    desc.putPath( charIDToTypeID('null'), new File( "E:/images/n.png" ) );
    desc.putBoolean( stringIDToTypeID('smartObject'), true );
    executeAction( charIDToTypeID('Opn '), desc, DialogModes.NO );