• 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: Tell print/close to the frontmost app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Tell print/close to the frontmost app
      • From: John Delacour <email@hidden>
    • Re: Tell print/close to the frontmost app
      • From: Mr Tea <email@hidden>
  • Prev by Date: Tell print/close to the frontmost app
  • Next by Date: Re: Tell print/close to the frontmost app
  • Previous by thread: Re: Sounding multiple beeps - a new solution!
  • Next by thread: Re: Tell print/close to the frontmost app
  • Index(es):
    • Date
    • Thread