Re: setting window bounds/position of folder
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.