• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Memory leaks when running an apple event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Using an NSMatrix subclass for a board game view
  • Next by Date: RE: Memory leaks when running an apple event
  • Previous by thread: Re: Memory leaks when running an apple event
  • Next by thread: RE: Memory leaks when running an apple event
  • Index(es):
    • Date
    • Thread