• 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: Finder Window Position Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Finder Window Position Help (From: revDAVE <email@hidden>)
 >Re: Finder Window Position Help (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Modification date of disk unreliable
  • Next by Date: Re: Irritating list reply-to policy
  • Previous by thread: Re: Finder Window Position Help
  • Next by thread: Re: Finder Window Position Help
  • Index(es):
    • Date
    • Thread