• 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
Positioning a Finder window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Positioning a Finder window


  • Subject: Positioning a Finder window
  • From: Jim Brandt <email@hidden>
  • Date: Fri, 8 Jan 2010 07:18:44 -0600

I have a window positioning question.

How do I set the position of a window from a script and make it be retained?

I'll explain.

Using this script:

   tell application "Finder"
      set nm to name of front window
      set bounds of window nm to {470, 120, 1220, 500}
   end tell

I can change the position of the frontmost Finder window. Once I close
the window and then reopen it, however, it goes back to the original position.
If I position it manually(drag it to a new location), close it and reopen it, the
new position is retained. 

BTW, I also tried this, but it makes no difference:

   tell application "Finder"
      set nm to name of front window
      set bounds of Finder window nm to {470, 120, 1220, 500}
   end tell

So, how do I position a window in a script such that the position is retained
when the window is closed and then reopened?

Also, where is this kind of stuff documented? Is the only way to find out
about it by trial and error or does Apple have documentation on this?

TIA,

Jim

 _______________________________________________
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

  • Follow-Ups:
    • Re: Positioning a Finder window
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Re: Just say no ?
  • Next by Date: Re: Positioning a Finder window
  • Previous by thread: speech recognition server
  • Next by thread: Re: Positioning a Finder window
  • Index(es):
    • Date
    • Thread