Re: Finder Window Position Help
Re: Finder Window Position Help
- Subject: Re: Finder Window Position Help
- From: kai <email@hidden>
- Date: Mon, 1 Jan 2007 22:37:49 +0000
On 1 Jan 2007, at 21:47, Luther Fuller wrote:
On Jan 1, 2007, at 2:48 PM, revDAVE wrote:
My goal is to have this script reposition various windows and save
them as
their new position/state...
I tried the script below - which works fine for what I want - but
when I
close and reopen the window it does not retain the boundary position.
Do your windows have the toolbar visible? If you are trying to set
the bounds of a folder window without a toolbar, the new bounds
will not be remembered. (I think I remember a bug report on this,
but it's not my report, and I've forgotten the details.) The work-
around is to first make the toolbar visible; set the new bounds;
then make the toolbar invisible. Your window bounds will have to
compensate for differences in behavior compared to toolbar visible.
This is a known bug in Finder. It's actually necessary to change the
toolbar's visible status whatever it currently happens to be. This
causes the window settings to be remembered. Then, to restore the
required toolbar visible setting, toggle it once again - something
like this:
-------------------------
tell application "Finder"
activate
tell Finder window 1 to if exists then
set current view to list view
set bounds to {5, 45, 1000, 900}
set v to toolbar visible
set toolbar visible to not v
set toolbar visible to v
end if
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:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden