Skip to main content
New Participant
October 27, 2015
Question

How to visible false in photoshop cs6 trial version using vb script?

  • October 27, 2015
  • 2 replies
  • 357 views

I have to open a photoshop application using vbscript,

So its open software successfully,

when i run a script application is launch at a time.

Here i want application has not visible at run time,

Please give me suggestion.

This topic has been closed for replies.

2 replies

Chuck Uebele
Community Expert
October 27, 2015

Moving to Photoshop Scripting forum.

deepakg1988
Community Manager
Community Manager
October 27, 2015

Hi,

Type the following script into a script or text editor.

NOTE: Entering comments is optional.

Dim appRef Set appRef = CreateObject( "Photoshop.Application" )

' Remember current unit settings and then set units to

' the value expected by this script Dim originalRulerUnits

originalRulerUnits = appRef.Preferences.RulerUnits

appRef.Preferences.RulerUnits = 2

' Create a new 2x4 inch document and assign it to a variable.

Dim docRef

Dim artLayerRef

Dim textItemRef

Set docRef = appRef.Documents.Add(2, 4)

' Create a new art layer containing text

Set artLayerRef = docRef.ArtLayers.Add

artLayerRef.Kind = 2

' Set the contents of the text layer.

Set textItemRef = artLayerRef.TextItem

textItemRef.Contents = "Hello, World!"

' Restore unit setting

appRef.Preferences.RulerUnits = originalRulerUnits

2.Save file as a text file with a .vbs file name extension.

3. Double-click the file in Windows Explorer to run the script. The script opens Photoshop.

New Participant
October 28, 2015

Dim appRef

Set appRef = CreateObject( "Photoshop.Application" )

appRef.visible=false

i was writing this script but here appRef.visible=False is not working.

i expect photoshop application do not launch at the moment .

Please give any suggestion