find list of installed applications

Discussion in 'Mac Programming' started by chidambaram, Mar 3, 2009.

  1. macrumors member

    Joined:
    Mar 9, 2008
    #1
    hi,

    I want to know the list of applications which is installed in my MAC OS using scripting language.

    Thanks in advance...
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Shell out to the command line system_profiler utility and parse the output...
     
  3. macrumors Core

    alphaod

    Joined:
    Feb 9, 2008
    Location:
    上海 (Shanghai)
    #3
    System Profiler shows that information.
     
  4. thread starter macrumors member

    Joined:
    Mar 9, 2008
    #4
    Thanks for ur reply.
    But, I want to Find those information, using Apple Script
     
  5. macrumors 68020

    ziggyonice

    Joined:
    Mar 12, 2006
    Location:
    Rural America
    #5
    AppleScript allows you to tell your computer to do different commands and such... it's really not meant for acquiring information like the list of applications and their sizes. You might be thinking of using the Terminal, which can give you all that information, although you have to know a little bit of techno-speak to do it correctly.

    Otherwise, yes -- using the System Profiler would be the easiest method. I don't think it's possible to do using AppleScript.
     
  6. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #6
    Tell AppleScript to run a shell script which can call the command line system_profiler tool
     
  7. thread starter macrumors member

    Joined:
    Mar 9, 2008
    #7
    Thanks for ur reply...

    Is it possible to call applescript from PHP?
     
  8. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #8
    I have no idea. But if you are using a shell script from AppleScript why not just call that directly from PHP?
     
  9. thread starter macrumors member

    Joined:
    Mar 9, 2008
    #9
    Find list of installed software using X-Code

    hai,

    How to find , list of softwares installed in MAC OS, using X-Code?

    Thanks in Advance..
     
  10. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #10
    It tends to lead to System Profiler. Perhaps you need to explain why you're wanting to do this so people can give you a better approach rather than leading down the same path for every thread.
     
  11. thread starter macrumors member

    Joined:
    Mar 9, 2008
    #11
    find the applications using xcode

    Hi,

    I want to find all the .app files stored in /Applications folder using xcode?

    How can i do this?

    Thanks in advance...
     
  12. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #12
    You have asked this exact question at least 5 times already. Please stop posting new threads. I could probably help you but as you have shown us no respect by constantly posting new threads I won't be helping at all.
     
  13. thread starter macrumors member

    Joined:
    Mar 9, 2008
    #13

    robbieduncan,

    I had the solution for applescript . Now i need in xcode so only i opted for new thread.
     
  14. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #14
    XCode is an IDE: an Integrated Development Environment. It is not a programming language so your question makes no sense. You can use XCode to write AppleScript. If you have an AppleScript solution that will work within an XCode project.
     
  15. thread starter macrumors member

    Joined:
    Mar 9, 2008
    #15
    I need to write in Carbon c++.
     
  16. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #16
    Then I'd still suggest my original suggestion of shelling out to the command line system_profiler and parsing the output.
     
  17. thread starter macrumors member

    Joined:
    Mar 9, 2008
    #17
    i got the list...

    Thanks for all ur reply...
     

Share This Page