• 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: System Events (was Re: Frontmost)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System Events (was Re: Frontmost)


  • Subject: Re: System Events (was Re: Frontmost)
  • From: Daniel Jalkut <email@hidden>
  • Date: Thu, 5 May 2005 09:26:31 -0700

Ah, yes.  This is because the Script menu's method of executing scripts always switches the front-most app out before executing. So your test for "fronstmost" returns System Events instead of the app you're in.

This is a perfect example of FastScripts' superior application integration.  Your script works like a charm from FastScripts.

Daniel

On May 5, 2005, at 9:10 AM, Hudson Barton wrote:

tell application "System Events"

    set devant to (name of every process whose frontmost is true and visible is true and name is not "System Events") as string

end tell


tell application "Finder" to activate application "iCal"


tell application "System Events"

    set frontmost of process devant to true

end tell



 _______________________________________________
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: System Events (was Re: Frontmost)
      • From: Hudson Barton <email@hidden>
References: 
 >XMLRPC Apple Event --- Sending base64 data (From: Rajeev Kumar <email@hidden>)
 >Frontmost (From: Hudson Barton <email@hidden>)
 >Re: Frontmost (From: Hudson Barton <email@hidden>)
 >System Events (was Re: Frontmost) (From: Hudson Barton <email@hidden>)
 >Re: System Events (was Re: Frontmost) (From: Daniel Jalkut <email@hidden>)
 >Re: System Events (was Re: Frontmost) (From: Hudson Barton <email@hidden>)
 >Re: System Events (was Re: Frontmost) (From: Hudson Barton <email@hidden>)

  • Prev by Date: Re: Tiger: "path to me" now returns script path!
  • Next by Date: Re: New Tiger dictionary format example posted [addendum]
  • Previous by thread: Re: System Events (was Re: Frontmost)
  • Next by thread: Re: System Events (was Re: Frontmost)
  • Index(es):
    • Date
    • Thread