On or near 12/22/00 5:08 AM, George Clark at [EMAIL PROTECTED] observed:
> On 12/22/00 06:14, chris stearns wrote:
>
>> if "Microsoft Entourage" is in currProcs then
>> tell application "Microsoft Entourage" to quit
>> end if
>
> Try adding 'activate':
>
> if "Microsoft Entourage" is in currProcs then
> tell application "Microsoft Entourage"
> activate
> quit
> end tell
> end if
>
> Most apps will respond to a quit command better if they're the currently
> active process.
Better yet, try making the first part of the script into this:
tell application "Finder"
set currProcs to name of processes
end tell
Otherwise you're getting a list like this:
{process "Control Strip Extension" of application "Finder", process "EPSON
Launcher" of application "Finder", process "FBC Indexing Scheduler" of
application "Finder", ...}
The string "Microsoft Entourage" is <never> in that list so your IF
statement always fails. If you change it from "processes" to "name of
processes" it will work.
>
>
> George
--
Peace,
Allen Watson <[EMAIL PROTECTED]> XNS name: =Allen Watson
A Mac family since 1984 <http://home.earthlink.net/~allenwatson/>
Applescripts for Outlook Express and Entourage:
<http://homepage.mac.com/allenwatson/>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>