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.
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: 14706
Last visit: Sat Feb 27, 2021 5:46 am
Answers: 9
Has voted: 2 times
Been upvoted: 6 times

Re: PrimalScript with Photoshop - PrimalScript

Post by jvierra »

Gilda! You're back. How was comedic purgatory?

Locked