• 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: how to return to app ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to return to app ?


  • Subject: Re: how to return to app ?
  • From: Andy Wylie <email@hidden>
  • Date: Sat, 28 Jul 2001 10:56:58 +1200

on 28/7/01 3:34 am, Bee at email@hidden wrote:

> I have an applet in the Apple Menu which modifies the text on the
> clipboard and it works well.
>
> When I use it, the focus is changed to finder, which makes some sense,
> but I would like to be returned to the application I was using before
> running the applet.
>
> How do I do that?

You could use a compiled script to grab the name and pass it to your
applet...
---------------
set front_app to name of (info for (path to frontmost application))
run script alias ((path to "amnu") & "your_applet" as string) with
parameters {front_app}

--your_applet
on run {front_app}
display dialog front_app
tell front_app to activate
end run
_____________________________HTH Andy


References: 
 >how to return to app ? (From: Bee <email@hidden>)

  • Prev by Date: Re: Symbol table
  • Next by Date: Re: Anybody knows
  • Previous by thread: how to return to app ?
  • Next by thread: Re: how to return to app ?
  • Index(es):
    • Date
    • Thread