• 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: Copy text to the clipboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy text to the clipboard


  • Subject: Re: Copy text to the clipboard
  • From: John M <email@hidden>
  • Date: Fri, 2 Dec 2005 21:52:08 +0000

Hi,

I'm not sure if I've missed something in this, but OMM this shows the last frontmost application (apart from the Finder) when used in the script menu, or as an application clicked in the Finder. It does involve some flickering.


tell application "System Events"
set visible of (first process whose frontmost is true) to false
tell application "Finder" to activate
set visible of first process whose name is "Finder" to false
set appName to name of (first process whose frontmost is true and visible is true)
set visible of first process whose name is "Finder" to true
end tell
activate
display dialog appName



Best wishes

John M


_______________________________________________ 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
  • Follow-Ups:
    • Re: Copy text to the clipboard
      • From: "Brett K." <email@hidden>
  • Prev by Date: Re: [OT] My life after AS: shell commands, perl?
  • Next by Date: Re: [OT] My life after AS: shell commands, perl?
  • Previous by thread: Re: Copy text to the clipboard
  • Next by thread: Re: Copy text to the clipboard
  • Index(es):
    • Date
    • Thread