Aakash Sharma
Aakash Sharma

Reputation: 1

Is it possible to execute .jsx file through button in photoshop

I have several action script files (.jsx) I want to create button to execute this script in Photoshop I have tried to make this button in vb.net I have tried this code...and add Photoshop object library as reference but there is something wrong. Please tell what is wrong with this code:

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
        System.diagnostics.Process.Start("C:\Super Soft.jsx")
    End Sub

Upvotes: 0

Views: 386

Answers (1)

user707407
user707407

Reputation: 25

Yes you can using do JavaScript function in Photoshop document object:

  Dim app As New Photoshop.Application
  app.Dojavascript("C:\Super Soft.jsx")

Upvotes: 1

Related Questions