Re: Finder Scripting
Re: Finder Scripting
- Subject: Re: Finder Scripting
- From: Robert Poland <email@hidden>
- Date: Sun, 21 Aug 2005 13:04:50 -0600
At 09:01 +0200 8/21/05, Emile Schwarz wrote:
I am sorry to have to report the following:
>tell application "Finder"
set bounds of front window to {0, 44, 100, 100}
return properties of front window
end tell
>
When run, the script does its job. BUT, close
the window, open it and you get the window back
to the previous location and widh/height...
A similar effect occurs when attempting to set
window bounds in Terminal.app. Setting the
bounds twice helps but making a loop that sets
bounds then checks bounds until Terminal gets it
right never fails.
--
IMHO the following script disclaims this. ???
tell application "Finder"
set x to 0
set a to 0
set b to 44
set c to 100
set d to c
activate
repeat while x b
open "iMac HD:Users:rpoland:Desktop:zz for iBook"
set bounds of front window to {a, b, c, d}
delay 0.5
-- return properties of front window
close front window
open "iMac HD:Users:rpoland:Desktop:zz for iBook"
set {w, x, y, z} to bounds of window 1
close front window
end repeat
end tell
{w, x, y, z}
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden