Re: AB: launch app in background?
Re: AB: launch app in background?
- Subject: Re: AB: launch app in background?
- From: Matt Zollinhofer <email@hidden>
- Date: Thu, 8 Jan 2004 18:01:12 -0500
ok, so launch launches apps in the background. I seem to have a little
problem. I'm using applescript from an odd location. I'm making the
applescript call from a widget in Konfabulator (if you don't know what
it is, it's a cool little thing that I can't really explain, any
desktop tool you could want, www.konfabulator.com). Anyway, I'm not
sure in what capacity the Konfabulator environment is running, but it
is not a typical application (it doesn't show up on the dock). So when
I run the applescript from my widget, it is still brought to the front.
Is there a way to specifically tell the application to launch as the
backmost program?
thanks,
matt
On Dec 29, 2003, at 11:22 AM, Paul Berkowitz wrote:
On 12/29/03 7:59 AM, "Matt Zollinhofer" <email@hidden> wrote:
short: how do I launch an application in the background?
eg:
tell app "Address Book"
activate in the background
end tell
long:
I want to get access to the data in the Address Book, and to be honest
I'd rather not have the AB open. But it seems at this point I either
have to write an Obj C program, which I am not really ready to do, or
use AS to control AB. So I figure my best bet is to be able to
launch it in the background, is that do able?
short: launch
long:
tell application "whatever"
launch
-- do other stuff
end tell
If the application is already open, 'launch' does nothing. If it's not
open,
'launch' opens it in the background.
--
Paul Berkowitz
_______________________________________________
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.
_______________________________________________
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.