mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
lib - Save - DoAction - ApplyDataset - GetLayer(s) main - do actions from commandline Improved test cases!
10 lines
458 B
Plaintext
10 lines
458 B
Plaintext
set appRef = CreateObject("Photoshop.Application")
|
|
' No dialogs'
|
|
dlgMode = 3
|
|
|
|
set desc = CreateObject( "Photoshop.ActionDescriptor" )
|
|
set ref = CreateObject( "Photoshop.ActionReference" )
|
|
Call ref.PutName(appRef.CharIDToTypeID("Actn"), wScript.Arguments(1))
|
|
Call ref.PutName(appRef.CharIDToTypeID("ASet"), wScript.Arguments(0))
|
|
Call desc.PutReference(appRef.CharIDToTypeID("null"), ref)
|
|
Call appRef.ExecuteAction(appRef.CharIDToTypeID("Ply "), desc, dlgMode) |