Bash - Open File in Application

: ' -a specifies any application you want, so its applicable to any number of situations, including ones where TextEdit isnt the default editor. -t opens in the default editor (i.e. if you use BBEdit, TextMate, etc.) -e will open the file specifically in TextEdit ' # opens the file in TextEdit open -a TextEdit ./filename.sh # opens a Terminal window and runs the script open -a Terminal ./filename.sh

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.