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

343 views4 repliesLast post: 12/6/2007
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
#1
"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.
#2
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.
#3
Sorry but what you want to do is not possible.
#4
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.

#5