Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

opening text file

 
   Mac (Home) -> Mac General RSS
Next:  Matlab R2008b crashes on Mac 10.5.5 (regardless o..  
Author Message
nakisa

External


Since: Dec 25, 2008
Posts: 1



(Msg. 1) Posted: Thu Dec 25, 2008 11:27 pm
Post subject: opening text file
Archived from groups: comp>sys>mac>misc (more info?)

hi everybody .
I am new in Mac (in linux also ) , I want to open a text file
independent of Terminal .For example I use " vi test.txt " and the
terminal open my file ,but inside the terminal .
I want to open in outside , in an editor ,so I can make some changes .
how it is possible ?
best,nakisa
Back to top
Login to vote
Michael Kallweitt

External


Since: Oct 15, 2006
Posts: 9



(Msg. 2) Posted: Fri Dec 26, 2008 4:28 pm
Post subject: Re: opening text file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

nakisa wrote:

> I am new in Mac (in linux also ) , I want to open a text file
> independent of Terminal .For example I use " vi test.txt " and the
> terminal open my file ,but inside the terminal .
> I want to open in outside , in an editor ,so I can make some changes .
> how it is possible ?
> best,nakisa

Well, vi *is* an editor. But if you wish to open a text file in OS X's GUI
editor, you type "open -a TextEdit test.txt" at the shell prompt. This has
nothing to do with Linux.
Back to top
Login to vote
Jeff Wiseman

External


Since: Sep 11, 2005
Posts: 15



(Msg. 3) Posted: Fri Dec 26, 2008 4:28 pm
Post subject: Re: opening text file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Michael Kallweitt wrote:
> nakisa wrote:
>
>> I am new in Mac (in linux also ) , I want to open a text file
>> independent of Terminal .For example I use " vi test.txt " and the
>> terminal open my file ,but inside the terminal .
>> I want to open in outside , in an editor ,so I can make some changes .
>> how it is possible ?
>> best,nakisa
>
>
> Well, vi *is* an editor. But if you wish to open a text file in OS X's
> GUI editor, you type "open -a TextEdit test.txt" at the shell prompt.
> This has nothing to do with Linux.


And if you want to initiate this from the Finder, just drag and
drop the text file onto the icon for the TextEdit application. I
like to keep TextEdit in the dock handy for just this reason as
it is useful for poking around and "exploring" in various types
of files.

--
Jeff Wiseman
to reply, just remove ALLTHESPAM
Back to top
Login to vote
Jolly Roger

External


Since: Nov 05, 2007
Posts: 1218



(Msg. 4) Posted: Fri Dec 26, 2008 4:28 pm
Post subject: Re: opening text file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <4954f826$0$14689$bc1648c9@news.kamp.net>,
Michael Kallweitt <M.Kallweitt DeleteThis @gmx.de> wrote:

> nakisa wrote:
>
> > I am new in Mac (in linux also ) , I want to open a text file
> > independent of Terminal .For example I use " vi test.txt " and the
> > terminal open my file ,but inside the terminal .
> > I want to open in outside , in an editor ,so I can make some changes .
> > how it is possible ?
> > best,nakisa
>
> Well, vi *is* an editor. But if you wish to open a text file in OS X's GUI
> editor, you type "open -a TextEdit test.txt" at the shell prompt. This has
> nothing to do with Linux.

You can also change your command-line editor by changing the value of
the $EDITOR environment variable:

<http://www.macosxhints.com/article.php?story=20050601124919803>

--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
Back to top
Login to vote
Bob Harris

External


Since: Sep 17, 2005
Posts: 225



(Msg. 5) Posted: Sat Dec 27, 2008 2:11 am
Post subject: Re: opening text file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
<23ca789d-73a5-49bc-95c2-baf4365ba5a8.RemoveThis@t39g2000prh.googlegroups.com
>,
nakisa <nakisa.nooraee.RemoveThis@gmail.com> wrote:

> hi everybody .
> I am new in Mac (in linux also ) , I want to open a text file
> independent of Terminal .For example I use " vi test.txt " and the
> terminal open my file ,but inside the terminal .
> I want to open in outside , in an editor ,so I can make some changes .
> how it is possible ?
> best,nakisa

Generally, double-clicking on a .txt file will open it in TextEdit.

You can also download text editors such as TextWrangler or
Smultron and then in the Finder select (highlight) a .txt file.
Next using Finder -> File -> Get Info (aka Command-I), and change
the "Open with:" field so it specifies the the text editor you
would prefer open your .txt files. Finally click on the "Change
all..." button. Now that text editor will open every .txt file
you double click on.

TextWrangler
<http://www.versiontracker.com/dyn/moreinfo/macosx/18529>
Smultron
<http://www.versiontracker.com/dyn/moreinfo/macosx/24012>

You can use the Get Info -> Open with .typ association if there
are other text files with some standard .typ field you like to use
AND that .typ is not normally associated with some common standard
file type (for example it would be bad to choose .jpg, or .pdf, or
..mov, etc...) and associated that .typ with your perferred GUI
text editor.

Bob Harris
Back to top
Login to vote
Kadin2048

External


Since: Aug 27, 2008
Posts: 9



(Msg. 6) Posted: Sun Dec 28, 2008 7:10 am
Post subject: Re: opening text file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-12-26, nakisa <nakisa.nooraee.DeleteThis@gmail.com> wrote:
> I want to open a text file independent of Terminal .For example I
> use " vi test.txt " and the terminal open my file ,but inside the
> terminal . I want to open in outside , in an editor ,so I can make
> some changes . how it is possible ? best,nakisa

As others have said, you can just double-click on the file from the
Finder to open it using whatever application is associated with its
type. (By default, text files will open in Apple's TextEdit.)

If you want to open them in a GUI editor *from the commandline*, that
is a bit more complex question. You can do "open filename.txt", which
mimics double-clicking on the file (opening it in the default
application), or you can explicitly specify an application with the -a
flag, for example:

$ open -a /Applications/FooEdit.app myfile.txt

Alternately, TextMate (which costs a non-trivial amount of money but
is quite worth it), comes with a shell command that lets you launch it
from the CLI and provides some more features than just using "open".
If you spend a lot of your time working in Terminal and are most
comfortable manipulating files that way, this is very nice.

There's more information about that feature (which is just one very
small part of why I like TextMate) here:
<http://manual.macromates.com/en/using_textmate_from_terminal.html>

Hope this helps.

-Kadin.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
.smil file can't find .rm file.. - I have a .smil file that calls an .rm file.. on pc no problem (IE & FF..) on the mac, on both Safari and FF, .rm file called by .smil file cannot be found, I get an alert that says .rm file cannot be found (path to .rm file in .smil file is just ...

Opening Certain Ports - I am running Mac OS X 10.4.2 and I am trying to set up a web server. I want to open up port 8080 to allow my website to be made public. I know that the admin utility only allows ports 80, 427 and 443 for this purpose, but the server I'm starting seems to...

Saving text files with Textedit - How do I save a file with textedit so I can use it in terminal. I've tried various plain text encoding options, but the files end up being either binary or, when I do 'cat' on them, the line breaks are replaced by '^M' and the file appears to be one..

Cutting from a large text document - I find it hard to scroll up or down when I am cutting more than a page in a Mac document. As soon as I get to the edge of the page, it skips real fast, but I only want a few more lines. Is there a technique I can use to scroll up those few more lines....

XML file - I have an XML file uploaded on to my employers server; in addition the mp3 file for this is also on my employers server. Though the podcast is getting a limited amount of "hits" it is not showing up in any podcast directories, nor is it show...
       Mac (Home) -> Mac General All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact