Re: GUI scripting: Set app window attributes - size, position, bounds?
Re: GUI scripting: Set app window attributes - size, position, bounds?
- Subject: Re: GUI scripting: Set app window attributes - size, position, bounds?
- From: Laine Lee <email@hidden>
- Date: Wed, 22 Jan 2003 07:39:31 -0600
Thanks. No, I think that's fairly reliable. I was just intrigued by the
possibility of making Smartshade work on any application's window with the
new GUI scripting (something starting with tell application "System
Events"). I don't seem to have any trouble with GUI scripting per se, just
haven't been able to set any window size, bounds, or position with it.
(see
http://www.txdirect.net/users/llee/applescript/simpleshade.html).
On 1/21/03 6:23 PM, "Andrew Oliver" <email@hidden> wrote:
>
On 1/21/03 3:12 PM, "Laine Lee" <email@hidden> wrote:
>
>
> Has anybody been able to set any app's window attributes - size, position,
>
> bounds? I've only been able to get an internalscripterror message. Thanks.
>
>
>
What trouble are you having?
>
>
This seems to work fine for me:
>
>
tell application "Finder"
>
set position of window 1 to {100, 100}
>
set bounds of window 1 to {100, 100, 400, 300}
>
end tell
>
>
>
Which application are you having trouble positioning the window in?
>
_______________________________________________
>
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.
--
Laine Lee
email@hidden
http://www.txdirect.net/users/llee
_______________________________________________
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.