As far as I can tell Photoshop is not intended to and can’t be run as command-line.
But if I understand correctly it is possible to create a hotfolder setup, if this would help you may want to do Forum searches here and over at
Thanks for the replay, unfortunately, Photoshop doesn't have a command line capabilities, but I was able to automate and call an Action. I created a VB.NET window application, added the reference to "Adobe PhotoShop CC Object Library". I added this code to a button's Click Event
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim appRef As Photoshop.Application = CreateObject("Photoshop.Application")
Dim sFile As String = "C:\Temp\Images\MyPicture.psd"
appRef = Nothing
This will open up the PhotoShop Application. I open the image, apply the Action, close the image, and shutdown the application. Literally, you will see all the step on the computer, so make sure that you don't interfere with the steps. Good Luck
Yes, it is doable. It is not easy.
On windows you can open a command prompt and type 'cscript DocDuplicate.vbs'
On the mac you can use 'osascript ...' I forget the actual params.
No, you can't run Photoshop as a server or headless. It operates best if it is the only app running and the frontmost.
And, you could get dialogs popping up that would halt your workflow. We try to get rid of these but there are still some that do not obey the NO dialog setting you can put in a script.
There are tools available that can monitor for this situation. This is the hard part!
Here is the content of DocDupliate.vbs
Set app = CreateObject("Photoshop.Application")
Set d = app.Documents.Add
Set l1 = d.ArtLayers.Add
Set l2 = d.ArtLayers.Add
l2.Visible = false
Set d2 = d.Duplicate
Set d3 = d.Duplicate("foo")
Set d4 = d.Duplicate("foo", true)