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

Re: Positioning a Finder window


  • Subject: Re: Positioning a Finder window
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 08 Jan 2010 07:33:11 -0600

On Jan 8, 2010, at 7:18 AM, Jim Brandt wrote:

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've had a script to set folder window bounds for many years. And it seems to work correctly.
Here is how my script sets bounds ...

{hOffset, vOffset, hOffset + winWidth, vOffset + winHeight}
set bounds of window of folderRef to the result
-- where folderRef is an alias to a folder

Your script uses the window name. That may be your problem.
Try using a window reference constructed from an item alias.

 _______________________________________________
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: 
 >Positioning a Finder window (From: Jim Brandt <email@hidden>)

  • Prev by Date: Positioning a Finder window
  • Next by Date: Re: Use AS operators dinamically
  • Previous by thread: Positioning a Finder window
  • Next by thread: Re: Positioning a Finder window
  • Index(es):
    • Date
    • Thread