Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 15, 2008, 10:31 PM   #1
techmonkey
macrumors 6502a
 
Join Date: Jun 2007
How can I create a dock icon/shortcut for Gnucash (installed with fink)?

The terminal command to open Gnucash, which I compile/installed with Fink, is

/sw/bin/gnucash

Is there a way I can create a dock icon to run this? I tried creating an applescript, but the applescript stays open until I close gnucash.

Any suggestions?
__________________
MacBook Pro 2.2GHz SR
4GB-RAM,120GB-HDD,128MB NVIDIA 8600M GT
techmonkey is offline   0 Reply With Quote
Old May 17, 2008, 08:47 AM   #2
chocodup
macrumors member
 
Join Date: May 2008
I wanted to do exactly the same thing today.
Here is what I did :

I wrote an apple script using the script editor :
tell application "Finder"
launch application "X11"
end tell
set results to do shell script "cd ~; DISPLAY=:0.0; export DISPLAY; PATH=$PATH:/sw/bin; export PATH ; /sw/bin/gnucash"
Then, I saved it as an application.

Then, I changed the default "applescript icon" of my new application.
(I founded the icon at the following address : http://www.wallpaper-gratuit.net/ico...?image_id=2290)

Here, I had an application that launches X11 and gnucash with an appropriate icon.

Last thing to do : drag the application to the Dock.

Hope this helps...
chocodup is offline   0 Reply With Quote
Old May 17, 2008, 11:09 AM   #3
techmonkey
Thread Starter
macrumors 6502a
 
Join Date: Jun 2007
thanks cocodup. I will try this out later. Nice icon site, wish they had an english version though
__________________
MacBook Pro 2.2GHz SR
4GB-RAM,120GB-HDD,128MB NVIDIA 8600M GT
techmonkey is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Can we create our own icons for iPad video & PDF files? HobeSoundDarryl iPad Tips, Help and Troubleshooting 21 Sep 27, 2010 11:26 AM
How can I create my own icon? cedib Mac Programming 2 Jun 5, 2008 02:08 PM
How do you create a common FAT32 partition for sharing files with Vista-64? deg3D Windows, Linux & others on the Mac 2 Feb 2, 2008 10:28 AM
How can I stop new desktop icons appearing/aligning under the dock? ChrisH3677 Mac OS X 10.3 (Panther) Discussion 2 Mar 4, 2004 05:30 AM


All times are GMT -5. The time now is 12:44 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC