How do you access the tools and menu commands in PS scripts?

KT
Posted By
Kaz Tanaka
Nov 28, 2007
Views
343
Replies
4
Status
Closed
There are some reference PDFs that come with Photoshop on script writing, but I need to figure out how to access the tools and the commands in the menus using Javascript or Applescript…

Does anyone know?

I want to make a dialog box pop up right where my cursor is, so that I can click on buttons to change tools and issue commands.

Thanks,
Kaz

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

P
pico
Nov 28, 2007
"Kaz Tanaka" wrote in message
There are some reference PDFs that come with Photoshop on script writing, but I need to figure out how to access the tools and the commands in the menus using Javascript or Applescript…

Do you have the scripting enviroment for CS3? It comes with the suite.
KT
Kaz Tanaka
Nov 30, 2007
I have CS2. It came with some reference PDFs on scripting, but I can’t seem to find what I’m looking for.

Specifically, I need the commands that simulate key presses. It seems like I may be able to do that through AppleScript, but does anyone know where there some documentation on simulating key presses?

Thanks,
Kaz

"pico" <pico.pico.pico> wrote in message
"Kaz Tanaka" wrote in message
There are some reference PDFs that come with Photoshop on script writing, but I need to figure out how to access the tools and the commands in the menus using Javascript or Applescript…

Do you have the scripting enviroment for CS3? It comes with the suite.
P
Paul
Dec 2, 2007
Sorry but what you want to do is not possible.
KT
Kaz Tanaka
Dec 6, 2007
It’s possible. I’m all set now.

You can do it using AppleScript:
First tell the Photoshop application to "activate" bringing it to focus. Then you tell System Events to do things like "keystroke "b" using {command down, shift down}".

So the script ended up being nothing specific to Photoshop…just AppleScript commands that work within the Mac OS.

Kaz

"Paul" wrote in message
Sorry but what you want to do is not possible.

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

Related Discussion Topics

Nice and short text about related topics in discussion sections