• 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: GUI scripting: Set app window attributes - size, position, bounds?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: GUI scripting: Set app window attributes - size, position, bounds? (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Re: SE2b GUI comments
  • Next by Date: Shell Script Progress
  • Previous by thread: Re: GUI scripting: Set app window attributes - size, position, bounds?
  • Next by thread: my first script
  • Index(es):
    • Date
    • Thread