• 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
Bring Unix Process Window to Front
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bring Unix Process Window to Front


  • Subject: Bring Unix Process Window to Front
  • From: Mark <email@hidden>
  • Date: Sat, 17 Jan 2009 13:34:39 -0500

Hi, I'm a newbie here. I've installed a native Quartz (i.e. doesn't use X11) version of GnuCash, and I wrote a one-line script application to open it from the Dock:

    do shell script "source /sw/bin/init.sh ; /opt/local/bin/gnucash >& /dev/null &"

This works fine, but it opens GnuCash (process name: gnucash-bin) as the last process -- i.e. in order to give GnuCash focus after it launches I have to press cmd-shift-tab.

How can I bring the GnuCash window to the front upon launch? "Tell application "gnucash-bin" to activate" doesn't seem to work. I don't even know how to simulate pressing cmd-shift-tab, which I would live with. TIA for helping a rank beginner.

- Mark
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Using Applescript Droplet as Default Application? (10.4.11)
  • Next by Date: [Fwd: Bring Unix Process Window to Front]
  • Previous by thread: Re: Using Applescript Droplet as Default Application? (10.4.11)
  • Next by thread: [Fwd: Bring Unix Process Window to Front]
  • Index(es):
    • Date
    • Thread