Taken from scriptlistner..
DIM objApp
SET objApp = CreateObject("Photoshop.Application")
REM Use dialog mode 3 for show no dialogs
DIM dialogMode
dialogMode = 3
DIM idMk
idMk = objApp.CharIDToTypeID( "Mk " )
DIM desc5
SET desc5 = CreateObject( "Photoshop.ActionDescriptor" )
DIM idNw
idNw = objApp.CharIDToTypeID( "Nw " )
DIM desc6
SET desc6 = CreateObject( "Photoshop.ActionDescriptor" )
DIM idpreset
idpreset = objApp.StringIDToTypeID( "preset" )
Call desc6.PutString( idpreset, "Clipboard" )
DIM idDcmn
idDcmn = objApp.CharIDToTypeID( "Dcmn" )
Call desc5.PutObject( idNw, idDcmn, desc6 )
Call objApp.ExecuteAction( idMk, desc5, dialogMode )
DIM idpast
idpast = objApp.CharIDToTypeID( "past" )
DIM desc3
SET desc3 = CreateObject( "Photoshop.ActionDescriptor" )
DIM idAntA
idAntA = objApp.CharIDToTypeID( "AntA" )
DIM idAnnt
idAnnt = objApp.CharIDToTypeID( "Annt" )
DIM idAnno
idAnno = objApp.CharIDToTypeID( "Anno" )
Call desc3.PutEnumerated( idAntA, idAnnt, idAnno )
Call objApp.ExecuteAction( idpast, desc3, dialogMode )