Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Pass command line arguments to GUI apps by default' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Pass command line arguments to GUI apps by default
Authored by: jaysoffian on Aug 12, '08 04:53:09PM
You need to quote the $@ to properly handle any arguments which contain whitespace:

#!/bin/sh
exec /Applications/Emacs.app/Contents/MacOS/emacs-bin -geometry 177x47 "$@"
Combining this with the suggestion to allow the application bundle to be moved:

#!/bin/bash 
exec "${0%/*}/emacs-bin" -geometry 177x47 "$@"


[ Reply to This | # ]