Re: Positioning a Finder window
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