• 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: setting window bounds/position of folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting window bounds/position of folder


  • Subject: Re: setting window bounds/position of folder
  • From: John Delacour <email@hidden>
  • Date: Fri, 20 Jun 2003 23:40:33 +0100
  • Mac-eudora-version: 6.0a23

At 9:48 pm +0530 19/6/03, Bhanja, Sanjeeb wrote:

But it does not set the height of both the windows equally.

Please run this script to understand my problem.
Any solution or suggestion is most welcome.

tell application "Finder"
set F1 to "10.2.1:Users:ibook:Desktop:TestFolder:F:F1"
set F2 to "10.2.1:Users:ibook:Desktop:TestFolder:F:F2"
set {l, t, r, b} to (get bounds of window of folder F1)
set bounds of window of folder F2 to {l, t, r, b}
open container window of folder F1
open container window of folder F2
end tell

I think you'll have no problem if you work with open windows:


set {a, b} to {"" & (path to "desk") & "a", "" & (path to "desk") & "b"}
tell app "Finder"
activate
open {folder a, folder b}
set bounds of window of folder b to bounds of window of folder a
end

-- JD









.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >setting window bounds/position of folder (From: "Bhanja, Sanjeeb" <email@hidden>)

  • Prev by Date: Re: Why so few OSX Additions?
  • Next by Date: Re: Path To blessed items (OSX and OS9): Odd or Normal?
  • Previous by thread: setting window bounds/position of folder
  • Next by thread: Scripting a VPN connection in Jaguar...
  • Index(es):
    • Date
    • Thread