Re: how to show other application in front of others?
Re: how to show other application in front of others?
- Subject: Re: how to show other application in front of others?
- From: "Tim.xgxu" <email@hidden>
- Date: Mon, 14 Mar 2005 16:11:06 +0800
how can I use "AppleScript command using NSAppleScript", we can find the
application by searching launched application. but how to let the
application show at the front. I am not familar with the AppleScript, could
you give me the information in detail.
Yes I use AEWP() to launch a tool, but the tool is not shown at the front,
so I don't know how to solve it.
Thanks for you help.
----- Original Message -----
From: "Nick Zitzmann" <email@hidden>
To: "Tim.xgxu" <email@hidden>
Cc: <email@hidden>
Sent: Monday, March 14, 2005 12:38 PM
Subject: Re: how to show other application in front of others?
On Mar 13, 2005, at 6:58 PM, Tim.xgxu wrote:
because the other application need privilege, so I use
AuthorizationExecuteWithPrivileges(...) to call the other application,
but it doesn't show in front of others. I need to click it, how can I
change to other application without clicking it?
Well, you could send it the "activate" AppleScript command using
NSAppleScript, but why are you running a GUI app using AEWP()? That
doesn't sound like a very good idea to me for security reasons. Instead of
doing what you're trying to do, if you need to perform some privileged
operation, you should use AEWP() to launch a tool instead. See Apple's
AuthorizationSample sample code for details.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden