• 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: Lion broke scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lion broke scripts


  • Subject: Re: Lion broke scripts
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 16 Oct 2011 09:53:03 -0500

On Oct 16, 2011, at 1:29 AM, Christopher Stone wrote:

On Oct 15, 2011, at 11:16, Robert Poland wrote:
Is there a simple cure?
______________________________________________________________________

Hey Bob,

Is there a need to UI-Script that?

tell application "System Events"
name of first application process whose frontmost is true
end tell

I've been using this variation on that theme for some time ...

tell application "System Events" to set frontAppl to (name of (some process whose frontmost is true)) as text

It works in 10.5, 10.6 and 10.7.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Lion broke scripts (From: Robert Poland <email@hidden>)
 >Re: Lion broke scripts (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Lion broke scripts
  • Next by Date: Add custom sdef to AppleScript applet?
  • Previous by thread: Re: Lion broke scripts
  • Next by thread: Major bug saving email with attachments as RTFD in Lion
  • Index(es):
    • Date
    • Thread