|
|
10.3: Use the Finder to launch Unix apps
Another solution is to make a shell script and put it inside the same directory structure that Apple uses.
Create a directory "SomeProg.app". Inside this create a directory "Contents". Inside "Contents" create a directory "MacOS". This is where you put the executable shell script. If you want SomeProg.app to have a proper icon that can be done as well but gets a little complicated. Inside "Contents" create another directory "Resources" This is where you put the icon you want to use. I was using this for a bookmarks sync script so I just grabbed the Mozilla icon from Mozilla.app. You will need to add a couple of files into SomeProg.app/Contents. Info.plist - which tells the finder the details about the program, like its version and its icon. PkgInfo - which again tells the finder that it is an application and should be run rather than opened. Heres my Info.plist:
My PkgInfo (8bytes only):
This setup is enough to completely fool the finder into thinking that its a full application, it also lets you run your own scripts from the Dock as well. If you get lost at all, use the terminal to look around the insides of some apps, thats what I did. Some of the keys in Info.plist may not be needed but it works none the less. Hope this helps. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.07 seconds |
|