Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AB: launch app in background?



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.

References: 
 >AB: launch app in background? (From: Matt Zollinhofer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.