Re: Zoom - How to get/set in Photoshop CS?
Re: Zoom - How to get/set in Photoshop CS?
- Subject: Re: Zoom - How to get/set in Photoshop CS?
- From: kai <email@hidden>
- Date: Sat, 21 May 2005 23:57:36 +0100
On Saturday, May 21, 2005, at 02:28 pm, Michael Cytrynowicz wrote:
I've been trying this for quite some time, can't figure how to do it...
AppleScript: In ScriptDebugger, i can't see anything at all related to
zoom
in/out, or set the zoom to a certain value. Funny, because "zoom" and
"zoomed" seem to be OK words (or maybe its in some Addition?)
I also tried a PS action, the scripting listener, UI scripting with UI
Browser, javascript, nothing. Nada. From Adobe's PS scripting forum:
nothing.
I tried a few things in PS7, Mike, and came up a little short, too.
However, you might be able to get something like this working in CS:
----------------
tell application "System Events" to tell process "Adobe Photoshop 7.0"
-- change name
set frontmost to true
keystroke "0" using {command down} (* Fit on Screen *)
end tell
----------------
Within the above tell block, the keystroke statement can be modified as
required:
----------------
keystroke "+" using {command down} (* Zoom In *)
keystroke "-" using {command down} (* Zoom Out *)
keystroke "0" using {option down, command down} (* Actual Pixels *)
----------------
Using a combination of keystrokes, it should be possible to achieve
various zoom options. For example, this gives me a zoom of 25%:
----------------
tell application "System Events" to tell process "Adobe Photoshop 7.0"
set frontmost to true
keystroke "0" using {option down, command down}
keystroke "----" using {command down}
end tell
----------------
This technique allows access to the available zoom range here: 0.05%,
0.1%, 0.2%, 0.3%, 0.4%, 0.5%, 0.7%, 1%, 1.5%, 2%, 3%, 4%, 5%, 6.25%,
8.33%, 12.5%, 16.67%, 25%, 33.33%, 50%, 66.67%, 100%, 200%, 300%, 400%,
500%, 600%, 700%, 800%, 1200% & 1600%.
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden