PrimalScript with Photoshop - PrimalScript

Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 9 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
Kaprice
Posts: 3
Last visit: Thu Nov 20, 2014 2:55 pm

PrimalScript with Photoshop - PrimalScript

Post by Kaprice »

[EDITED: Solved as described, in my follow up post.]

I'm using the current version of PrimalScript.

I've searched the Help and this forum and cannot figure out how to get PrimalSense to work with Photoshop. I'm sure I'm missing something obvious.

Do I have to put in a setting (equivelent to setting a Reference in Visual Basic/VBA/Studio)?

I've opened my script with:
VBScript Code
Double-click the code block to select all.
Dim appRef
Set appRef = CreateObject( "Photoshop.Application" )
Thanks for your help.
Last edited by Kaprice on Thu Nov 20, 2014 2:54 pm, edited 2 times in total.
User avatar
Kaprice
Posts: 3
Last visit: Thu Nov 20, 2014 2:55 pm

Re: PrimalScript with Photoshop - PrimalScript

Post by Kaprice »

It does appear to be Photoshop specific.

This code also produces good PrimalSense:
VBScript Code
Double-click the code block to select all.
Dim objExcel, objWorkbook, objSheet1, objSheet2
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Add()
Set objSheet1 = objWorkbook
User avatar
Kaprice
Posts: 3
Last visit: Thu Nov 20, 2014 2:55 pm

Re: PrimalScript with Photoshop - PrimalScript

Post by Kaprice »

(sigh)

Nevermind. It looks like I failed to select a VBS template.

Doing that works for my photoshop script.

Sorry for the false alarm!
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: PrimalScript with Photoshop - PrimalScript

Post by jvierra »

Gilda! You're back. How was comedic purgatory?
This topic is 9 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked