how to open textedit on mac

How to Open and Edit a Text File on a Mac – dummies

Your TextEdit window opens. Press cmd+O. The Open dialog appears. Navigate to the desired text file and double-click the filename to load it. You can also open an existing text file by dragging its icon from the Finder window to the TextEdit icon. Click the insertion cursor anywhere in the file and begin typing.

How to Use TextEdit Plain Text Mode by Default in Mac OS X

To use plain text by default in TextEdit, go to TextEdit > Preferences in the menu bar. On the New Document tab, select Plain Text in the Format section. You don’t even need to close the preference window to initiate the change. As soon as you click the Plain Text button, all new TextEdit windows will open in Plain Text Mode.

How do I use TextEdit with HTML files on Mac OS X? – Ask

Fortunately, we’ll only have to do this once on your Mac. Go to TextEdit –> Preferences… and choose “Open and Save”. You’ll see: The key is the first option under “When opening a file”: you want to check Ignore rich text commands in HTML files . Check that option, then quit TextEdit.

Can I open files in TextEdit from the Terminal in Mac OS X?

(if you try it, you’ll see) To get the default UI behavior, using the Mac built-in open command, with that ‘-a TextEdit’ flag (that others mentioned) induces the Mac UI to have (any) currently running instance of TextEdit handle the call (with no inapropos ‘sudo’ needed for general case usage).

open -a TextEdit filename should do the trick.
The -a flag specifies any application you want, so it’s applicable to any number of situations, including ones where TextEdit isn’t the default editor.
Other relevant options.
-t opens in the default editor (i.e. if you use BBEdit, TextMate, etc.)
-e will open the file specifically in TextEdit.Best answer · 0
Direct, easy answer – add an alias to your ~/.bash_profile like:
alias textedit=’open -a TextEdit’.
Invoke it like:
textedit theFiletoEdit.txt.
The difference between this and the other answer, is you can easily remember it when you want it. Typing text and Tab to autocomplete it will make it instantly available.0
The open command can be used to open files (in their default apps, unless using the -a flag), URLs (in your default web browser), and directories (in Finder).
An example would be.
open /Users/Example/Desktop/example.rtf.0
For those finding this post:
The solution was to use the command sudo open -t /path/file.txt.
And the man pages for the open command also show how to do some other things like show the file in the finder.
http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/open.1.html.0
This is not a programming question. But I did a quick google and found this site:
http://ss64.com/osx/.
http://ss64.com/osx/pico.html pico: Simple text editor.
http://ss64.com/vi.html vi: Text Editor.
And this site explains how to use TextEdit from terminal.
http://www.tech-recipes.com/rx/2754/os_x_edit_file_using_textedit_as_root_superuser/.0

terminal – How do I start TextEditor from the command line
How to open a file as plain text in TextEdit?

See more results

Easy: TextEdit Open as Plain Text – Mac OS

Easy: TextEdit Open as Plain Text – Mac OS. You can force TextEdit to open as a plain text document by default. Sometimes users prefer to work and save in plain text versus rich text documents. This option is configured in preferences. Follow the steps below.

How to Enable TextEdit Dark Mode on Mac – osxdaily.com

Dec 09, 2018 · Open TextEdit Pull down the “View” menu and choose “Use Dark Background for Windows” The dark theme basically just inverse the display of colors, and it goes well with the general Dark Mode theme on the Mac.

How to Edit HTML With TextEdit on a Mac – lifewire.com

Open Preferences in TextEdit menu bar. In the New Document pane, change the first radio button to plain text. In the Open and Save pane, select the box next to Ignore rich text commands in HTML pages. It should be the first checkbox on the page. Close Preferences and reopen your HTML file. You can now see and edit the HTML code.