Making an app out of a map

Discussion in 'Mac Programming' started by Metalmorphed, Apr 10, 2011.

  1. macrumors member

    Joined:
    Mar 14, 2010
    #1
    Hi,

    I have a map with some files in it. One of the files launches a program (which uses the other files in the map).
    Is it possible to make an app out of the map, and when I double click the app the file to launch the app is launched automatically ?
    (I just don't like to look at the other files, it's just ugly :p)

    Thanks !
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    When you say map what, exactly, do you mean? A folder (or in Unix terms a directory)?
     
  3. thread starter macrumors member

    Joined:
    Mar 14, 2010
    #3
    yea, a folder :p
    [​IMG] <- that ;)
     
  4. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    OK so now we are using normal, standard terminology :)

    A Mac app is actually a folder with a special structure. It may be possible to do what you want. The general structure of a normal Mac app is as follows:

    Code:
    MyApp.app
     └Contents
         └Info.plist
         └MacOS
           └MyApp
    
    It might be possible to get what you want (do this with a copy obviously) to create the required outer folders around the one you have now, rename the file that starts the app to MyApp (replace MyApp with the correct name in all cases) and provide a correct Info.plist file. Unfortunately what you would need in the Info.plist I can't say as this is an abnormal usage. You might also have to "bless" the outer folder as a package...
     
  5. thread starter macrumors member

    Joined:
    Mar 14, 2010
    #5
    @robbieduncan

    Thanks :D
    Though I still have no idea how to do it xD Played around with it but I always get a damaged app :(
    Ahh well :p
     
  6. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #6
    A simpler solution would be to move the folder somewhere (or even hide it) and make an alias to the file that starts the app.
     
  7. thread starter macrumors member

    Joined:
    Mar 14, 2010
    #7
    That's not a bad idea actually, yet it would be cool to be able to give the app to other people easely, but ahh well, it'll have to do :D
     

Share This Page