I would like to be able to launch UE from the terminal windows. How do I set an alias so that I can invoke UE from a command line?
Thanks,
Rob
Thanks,
Rob
I just switched from PC to Mac. Primarily, I did so because I have become very familiar with Unix over the years, and OS X, being built on BSD, is also evolving to be more Unix-ish. (Oh, and Windows is evolving to be more LAME.)complexmath wrote:I don't understand the objection to launching UE from a terminal window. It's basically the only way I ever launch editors.
Code: Select all
alias ue='open -a UltraEdit.app '
Code: Select all
sudo ln -s /Applications/UltraEdit.app/Contents/MacOS/UltraEdit /usr/local/bin/ultraedit
There is an option in preferences in the Windows version of UE. Evidently that option has not yet been ported.spelc wrote:... Is there a way to force a single instance?
Stephen
Code: Select all
open -a /Applications/UltraEdit.app/Contents/MacOS/UltraEdit $* > /dev/null 2>&1 &
Code: Select all
sudo ln -s /Applications/UltraEdit.app/Contents/MacOS/UltraEdit /usr/local/bin/ultraedit
# then
open -a /usr/local/bin/ultraedit $* > /dev/null 2>&1 &
# or $PATH contains /usr/local/bin
open -a ultraedit $* > /dev/null 2>&1 &
Code: Select all
ue()
{
for FILE in "$@"; do
if [ ! -e "$FILE" ]; then
touch "$FILE"
fi
done
open -a "UltraEdit" "$@"
}