• 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: Solution for Mac Lion window parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Solution for Mac Lion window parameters


  • Subject: Re: Solution for Mac Lion window parameters
  • From: Christopher Stone <email@hidden>
  • Date: Thu, 19 Apr 2012 16:54:43 -0500

On Apr 19, 2012, at 06:37, Francis Nugent Dixon wrote:
I am looking for an AppleScript that can redefine all window parameters (for any existing windows), assuming that my window names give specific information concerning their values.

Am I asking too much, or is Applescript as powerful as they say ........ :)

My attempts into Applescript have been quite limited, which explains why I would not even know where to start solving this problem.
______________________________________________________________________

Hey Francis,

There used to be an app for that I think, but the only one I can find at the moment seems to be Finder-specific.

http://www.macupdate.com/app/mac/21475/finder-window-manager

The problem is that not all applications are scriptable.  You can invoke System Events for those, and probably using Shane Stanley's ASObjC Runner you can do calls to the underlying Cocoa - but the level of complexity rises.

Here are a few examples of what you can do with System Events and directly with a scriptable app (Mail).

---------------------------------------------------
tell application "System Events"
tell item 1 of (processes whose frontmost is true)
set frontAppWinProp to properties of its windows
end tell
end tell
---------------------------------------------------
tell application "System Events"
tell process "Mail"
set frontmost to true
tell window 1
set position to {528, 22}
set size to {905, 1174}
end tell
end tell
end tell
---------------------------------------------------
tell application "Mail"
set bounds of front window to {528, 22, 1433, 1196}
end tell
---------------------------------------------------

--
Best Regards,
Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Solution for Mac Lion window parameters (From: Francis Nugent Dixon <email@hidden>)

  • Prev by Date: Re: Solution for Mac Lion window parameters
  • Next by Date: Re: Run Handler-Name from Text?
  • Previous by thread: Re: Solution for Mac Lion window parameters
  • Next by thread: Re: Solution for Mac Lion window parameters
  • Index(es):
    • Date
    • Thread