• 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: application that was running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: application that was running


  • Subject: Re: application that was running
  • From: Rob Jorgensen <email@hidden>
  • Date: Fri, 27 Feb 2004 13:26:44 -0500

At 7:27 AM -0700 2/27/04, Robert Poland wrote:
Hi,

I have several scripts that are time controlled (via iBeeZz). I was wondering if there is a way to return to the previous application when the time triggered script is finished?

This might work.

tell application "System Events"
set fm to first application process whose frontmost is true
end tell

-- your code

tell application "System Events"
set frontmost of fm to true
end tell

-- Rob
_______________________________________________
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.


References: 
 >application that was running (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: sine and cosine functions
  • Next by Date: Re: sine and cosine functions
  • Previous by thread: application that was running
  • Next by thread: Re: sine and cosine functions
  • Index(es):
    • Date
    • Thread