• 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
Making a command-line-called app come to the foreground
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Making a command-line-called app come to the foreground


  • Subject: Making a command-line-called app come to the foreground
  • From: Geoff Canyon <email@hidden>
  • Date: Wed, 15 Dec 2004 08:04:30 -0800

Does anyone know how to make an application called from the command line come to the foreground? I have an application that I'm calling through a shell command. The application opens in the background. At that point, this applescript does nothing:

  tell application "foo" to activate

Likewise this:

tell application "finder" to set the frontmost of application process "foo" to true

Either of these scripts will work if I simply double-click the app. It's only if I call it from the command line that it won't budge. I can even click on the app's window and drag it around, and it still won't come to the front.

regards,

Geoff Canyon
email@hidden

_______________________________________________
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


  • Prev by Date: Re: Delay x return, how reliable, fast or slow is Applescript?
  • Next by Date: Re: Frank Macleod/QNM Markham/QW1/CA is out of the office.
  • Previous by thread: Re: Insertion Point in Quark
  • Next by thread: Ed Lai's 'cast' osax lost in conversion from OS 9 to OS X - any ideas?
  • Index(es):
    • Date
    • Thread