• 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: Insert text and paste command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Insert text and paste command


  • Subject: Re: Insert text and paste command
  • From: Martin Orpen <email@hidden>
  • Date: Thu, 14 Apr 2005 17:02:09 +0100

on 14/4/05 16:27, Andrea -XFox- Govoni at email@hidden wrote:

> I found that the frontmost application when I launch a script from the
> Script Menu is always System Events, so I tried to set the frontmost
> property of System Events to false, hoping that this would make the
> former frontmost application (that is the application where I want that
> the script operates) the new frontmost application... but I found that
> the Finder always became the new frontmost application. :-\

If I were you, I'd use a tool like "On My Command" to run your scripts from
the contextual menu.

Alternatively, you could duplicate your script for the most commonly used
applications and then drop them in:

    /Library/Scripts/Applications/[app name]/[script name]

So that the correct script always appears at the bottom of the script menu.
A bit of a kludge, but much quicker than all this mucking about trying to
work out what the last but one active app process was :-)

Regards

--
Martin Orpen


 _______________________________________________
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

References: 
 >Re: Insert text and paste command (From: Andrea -XFox- Govoni <email@hidden>)

  • Prev by Date: RE: Display Dialog
  • Next by Date: Check to see if folder contains items?
  • Previous by thread: Re: Insert text and paste command
  • Next by thread: Re: Insert text and paste command
  • Index(es):
    • Date
    • Thread