• 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: Set bounds of a window with NO dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set bounds of a window with NO dictionary


  • Subject: Re: Set bounds of a window with NO dictionary
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 07 Oct 2007 15:28:10 +0200

On 6/10/07 16:49, Robert Poland wrote:

Hi,

I have this script that when called by iKey will set the bounds of a window.

The problem: I want to apply this to an application which has no Applescript support.

This line works for supported apps;

    tell application (path to frontmost application as Unicode text)
        set front window's bounds to {newL, newT, wd, ht}
    end tell

Is there a way to set the bounds of unsupported apps?

Hello Robert,

Perhaps could UI elements do the trick?
For example, I just tried this one here:

tell application "System Events"
   tell process "Netscape"
       tell window 1
           set size to {640, 480}
           set position to {100, 20}
       end tell
   end tell
end tell

HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Set bounds of a window with NO dictionary
      • From: Robert Poland <email@hidden>
References: 
 >Set bounds of a window with NO dictionary (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Trouble with Remote Apple Events (eppc) and Keychain
  • Next by Date: Re: Set bounds of a window with NO dictionary
  • Previous by thread: Set bounds of a window with NO dictionary
  • Next by thread: Re: Set bounds of a window with NO dictionary
  • Index(es):
    • Date
    • Thread