• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting toolbar, etc windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Scripting toolbar, etc windows (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Fetch problem...
  • Next by Date: Re: Scripting toolbar, etc windows
  • Previous by thread: Scripting toolbar, etc windows
  • Next by thread: Re: Scripting toolbar, etc windows
  • Index(es):
    • Date
    • Thread