Adam: Sorry, I think that I didn't clearly state what I was asking. ;) My problem, not yours... Anyway, I am wondering if NSSet could deal with the fact that there wasn't an entry in one array that is in the other array.
Example: The user has open Safari, Firefox, and Mail The allowed applications array states that they can have open Safari, Firefox, and Microsoft Entourage The application ignores this fact (since the user is not using stuff that is not in the other array) The application would have run an if statement if the user was using something that was not in the "okay" list Sincerely, Pierce Freeman -- Pierce Freeman [EMAIL PROTECTED] On 11/28/08 9:28 PM, "Adam R. Maxwell" <[EMAIL PROTECTED]> wrote: > > On Nov 28, 2008, at 9:21 PM, Pierce Freeman wrote: > >> Thanks for the help, and for the link. Just wondering though, how >> could I >> tell it to run a script if they were not equal, and if the open list >> is >> lacking some of the ones in the okay list? > > How could you tell /what/ to run a script? If you want to launch > applications programmatically, look at the docs for NSWorkspace. If > you want to run a script, look at NSAppleScript or NSTask. Either > way, the documentation and list archives will help you out. > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]