Re: Scripting toolbar, etc windows
Re: Scripting toolbar, etc windows
- Subject: Re: Scripting toolbar, etc windows
- From: kai <email@hidden>
- Date: Mon, 20 Mar 2006 22:24:41 +0000
On 20 Mar 2006, at 15:05, Robert Poland wrote:
I'm trying to Script toolbar, etc window positions.
This script doesn't get position. Any suggestions?
try
tell application "GraphicConverter" to activate
tell application "System Events"
tell process "GraphicConverter"
set frontmost to true
tell menu "Window" of menu bar item "Window" of menu bar 1
click menu item 3 -- "Bring All to Front"
if (get name of menu item 16) is "Show Toolbox" then click menu
item 16
end tell
set {w, x} to position of window "Toolbox"
end tell
end tell
end try
I don't think the toolbox window has a name, Bob - so we may need
some other way to identify it.
Does this work for you?
----------------
tell application "GraphicConverter" to activate
tell application "System Events" to tell process "GraphicConverter"
tell (first window whose size is {49, 434})
if not (exists) then keystroke "k" using command down
set {w, x} to position
end tell
end tell
----------------
---
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