Does anyone know of a way using any of the scripting languages available to Photoshop, preferably AppleScript, to convert an embedded smart object into a linked smart object?
Use the Action Manager code as recorded by ScriptingListener.plugin.
var filePath = "/Insert/Your/Path/To/Linked/File.psd"
LinkedSmart( filePath )
function LinkedSmart( filePath )
var idplacedLayerConvertToLinked = stringIDToTypeID( "placedLayerConvertToLinked" );
var desc31 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref12 = new ActionReference();
var idLyr = charIDToTypeID( "Lyr " );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref12.putEnumerated( idLyr, idOrdn, idTrgt );
desc31.putReference( idnull, ref12 );
var idUsng = charIDToTypeID( "Usng" );
desc31.putPath( idUsng, new File( filePath ) );
executeAction( idplacedLayerConvertToLinked, desc31, DialogModes.NO );
Thanks heaps for your help c.pfaffenbichler