bring app to front... without activate?
Imported from the Apple Support Forums via the Wayback Machine 🔗
is there a way to make a current running app the front app without using activate... or to tell activate to NOT open the app if its not open... or... well
heres my problem...
I'll have a few apps on my machine of different versions while testing stuff. messing with Wine apps and X11 and stuff, a lot of times things get thrown to the back, so i want to give a simple command to OSX that can bring it to the front as the active app.
using...
osascript -e "tell application "AppName" to activate"
usually makes it come up front... but the problem is occasionally if I have a different app on the computer that has the same name and preferences file, that it instead opens that app up and tries to run it, throwing the app i wanted in the background...
so basically I want a way to activate an app as the main app simply, but to find the current running app, not try to open any other apps that aren't open...
using osascript I didn't want to make it super complicated checking whats running and names and all kinds of logic just to decide what to activate. I'm thinking there has to be a simpler way to do this, with Applescript or some other way....
any help is appreciated
12 replies
Sign in or join Beachball Help to reply.
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0