How to create an alias for TextEdit

Joined
Jan 27, 2009
Messages
35
Reaction score
0
Points
6
Hi,

I would like to create an alias for TextEdit, so that in the command prompt of 'Terminal', I can just do , say 'te', and it will start TextEdit for me.

I have tried following the instructions here:
macosxhints.com - Terminal 101 - Handy aliases

But when I type 'alias' at the prompt, I get nothing, blank output.

Can you please tell me what is missing?

Thank you.
 

cwa107


Retired Staff
Joined
Dec 20, 2006
Messages
27,042
Reaction score
812
Points
113
Location
Lake Mary, Florida
Your Mac's Specs
14" MacBook Pro M1 Pro, 16GB RAM, 1TB SSD
Try:

Code:
alias te='open /applications/textedit.app'

Basically, that establishes an alias called 'te', which will launch textedit.app, assuming it's located in /applications (the default directory).
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
you might want to pipe that to the tail of your .profile such like

Code:
echo "alias te='open /applications/textedit.app'" >> .profile
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top