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: Quitting applications and applescript studio application



On Wed, 20 Apr 2005 14:54:32 -0600, "Martha I. Espinosa" <email@hidden>
said:
>Hi,
>
>I'm having problems with the following applescript:
>
>tell application "System Events"
> set RunningApps to the name of every process whose visible is true
>end tell
>
>repeat with CurrentApp from 1 to (the count of text items in RunningApps)
> set WhichApp to (text item CurrentApp of RunningApps)
> if (WhichApp is not in {"Finder"}) then
>  tell application WhichApp to quit
> end if
>end repeat
>
>This has been incorporated into an applescript studio application.
>If the user opens an application within my applescript it freaks out.
>Any ideas?

Could it be that the AppleScript Studio application is quitting itself? m.

-- 
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to 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.