• 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
Getting the Front Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the Front Application


  • Subject: Getting the Front Application
  • From: Richard Fairbanks <email@hidden>
  • Date: Mon, 13 Oct 2003 00:46:18 -0700

I want to be able to call a copy/paste script with a key combination (via HotApp), but I need it to work in whatever application I'm working in.

I've tried using Extra Suites to do a "type key "c" with command", etc., but I've found it to be most unreliable--possibly because it's being called with a key combination. If I could just call the cut and paste menu items, I might have a chance at getting it to work. (OneClick was so great at this sort of thing <sigh>)

I tried Paul's FrontApp/FrontAppServer, but all it ever returns is "System Events" (I'm running 10.2.8). Is there any reliable, simple/fast way to get the front application? I've tried a host of:

----
get the name of the first process whose frontmost is true and visible is true and name is not "" and accepts high level events
----

etc., but with no luck either.

Thoughts?

Thanks!

--

Richard Fairbanks * email@hidden
Fairbanks Productions, Inc. * http://www.LotusDome.com

Home of the Lotus Dome:
Prefabricated * Modular * Portable * Self-Sustaining

http://www.thehungersite.com/ one click sends food to a hungry person
_______________________________________________
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.

  • Prev by Date: Re: good book about applescript on os x?
  • Next by Date: ASCII Character Map
  • Previous by thread: Re: How do I get the IP address of an interface via applescript?
  • Next by thread: Re: Getting the Front Application
  • Index(es):
    • Date
    • Thread