Re: Tell print/close to the frontmost app
Re: Tell print/close to the frontmost app
- Subject: Re: Tell print/close to the frontmost app
- From: Andy Wylie <email@hidden>
- Date: Thu, 19 Sep 2002 23:10:53 +1200
on Thu, 19 Sep 2002 03:22:33 -0700 Stephane ODUL wrote:
>
Hi, I want to tell to the frontmost app to close (window, document,
>
just same as command++W), and print (like command++P).
try this...
tell application "Finder"
set x to (every process whose frontmost = true) as +AKs-class psn +ALs
end tell
tell x
close the front window
end tell
_____________________________ Andy
_______________________________________________
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.