I want to run photoshop action through Visual basic UI. i mean if user click on button then photoshop action should run.
can anybody give any hint on that?
Public Class Form1
Dim photoshopApp As Photoshop.Application
Dim photoshopDoc As Photoshop.Document
Dim curLayer As Photoshop.ArtLayer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
appRef = CreateObject("Photoshop.Application")
You have to load your Actions or Actionsets within Photoshop first! You can't load or invoke Actions as you've tried it. "App.load (File (..." refers to load images.
Private Sub PhotoshopDoAction(ByVal action As String, ByVal actionSet As String)
Dim PS As Photoshop.Application
PS = New Photoshop.Application
If PS.Application.Documents.Count > 0 Then
Asked in February 2016Viewed 1,404 timesVoted 5Answered 1 times