title: Photoshop Automation
body: <p>I want to run photoshop action through Visual basic UI. i mean if user click on button then photoshop action should run. </p>
  
  <p>can anybody give any hint on that?
  thank you</p>
  
  <pre><code>Public Class Form1
      Dim appRef
      Dim app
      Dim File
      Dim JavaScriptFile
      Dim nums(2)
      Dim argsArr()
      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")
          app.load(File("C:\Border-2.atn"))
          app.DoAction(ThisQueue.Dequeue)
      End Sub
  </code></pre>
  
  <hr>