Click here to Skip to main content
15,900,254 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have some photoshop script that is perfectly working in photoshop
I want to attached this files to a button in VB.net so that I can execute this script through buttons in photoshop (for automation ) (I mean on click event)
I have not knowledge to link this script to button
I want to create window application. Please tell appropriate code for this.

I have added Photoshop reference to the project

To use the Photoshop object in our application, import the Photoshop namespace:

Imports photoshop

Declare the two objects we are going to work with (the Photoshop Application object and the Photoshop Document object):

Dim appRef As Photoshop.Application
Dim currentDoc As Photoshop.Document
Posted
Updated 24-Feb-15 6:17am
v6
Comments
Sergey Alexandrovich Kryukov 21-Feb-15 0:56am    
What is that "JavaScript in VB"? :-)
—SA
Member 11468068 21-Feb-15 1:56am    
execute external placed javascript file in photohsop through vb. via button
Member 11468068 22-Feb-15 23:16pm    
but how sir
Member 11468068 22-Feb-15 23:16pm    
but how
ZurdoDev 24-Feb-15 12:44pm    
Refer to the Photoshop documentation to see if it supports a way to call the JS.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900