• 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: name of the front windows application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: name of the front windows application


  • Subject: Re: name of the front windows application
  • From: kai <email@hidden>
  • Date: Mon, 8 Aug 2005 23:40:54 +0100


On 8 Aug 2005, at 18:30, Robert Poland wrote:

I am having trouble getting the name of the front windows application.

...

set wd to (word 3 of (do shell script "defaults read /Library/ Preferences/com.apple.windowserver | grep -w " & "Width")) as number
set ht to (word 3 of (do shell script "defaults read /Library/ Preferences/com.apple.windowserver | grep -w " & "Height")) as number


    set newT to 22
    if wd > 800 then
        set newL to 145
    else
        set newL to 0
    end if

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

---
kai


_______________________________________________ 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
References: 
 >name of the front windows application (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Quitting from an idle handler
  • Next by Date: Re: wake screen from sleep
  • Previous by thread: name of the front windows application
  • Next by thread: Missing property in PowerPoint dictionary!?
  • Index(es):
    • Date
    • Thread