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

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

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.

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

Related Discussion Topics

Nice and short text about related topics in discussion sections