Re: Memory leaks when running an apple event
Re: Memory leaks when running an apple event
- Subject: Re: Memory leaks when running an apple event
- From: has <email@hidden>
- Date: Fri, 12 Oct 2007 17:34:11 +0100
Alex Bumbu wrote:
I'm trying to create an simple application using Apple Events to
see if
a specified application is running (iTunes in my case).
General question: why do you want to use AppleScript for this? Just
call [[NSWorkspace sharedWorkspace] launchedApplications] and look
for the desired process in the resulting NSArray, or you could use
the Carbon Process Manager (GetNextProcess + GetProcessBundleLocation/
GetProcessInformationCopyDictionary) if you prefer.
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden