Re: name of the front windows application
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