Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Super Stupid question

Super Stupid question
Thread Tools
Nai no Kami
Senior User
Join Date: Aug 2000
Location: Buenos Aires
Status: Offline
Reply With Quote
May 9, 2001, 04:32 PM
 
This is REALLY stupid. I warned you.
i have been playing around with the Terminal.app an I don't find a way to replace the spaces of the directory names and/or files or applications as well. If I have an app located at, say... ~/applications/The Application.app. How do I manage to invoke that app to open? I have tried "The_Application.app", "The-Application.app" and "TheApplication.app" without results. I could not found any solution by searching the man.
Man, that are the disadvantages of learning without studying...

Thanks to all (who answer).

Nai no Kami

Y no entienden nada... ¡y cómo se divierten!...
     
clarkgoble
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status: Offline
Reply With Quote
May 9, 2001, 04:40 PM
 
If you are going to be using the shell much, I'd get an good introductory tutorial on it. Someone posted a web page tutorial on the terminal/shell as well. Do a search on the forums and 90% of the time you'll find your question has already been answered.

To answer your question you simply enclose the name of the file in quotes. (This is true in Windows as well) So if you have a file named Downloads Keep then you could change to that directory with

cd "Downloads Keep"
     
clarkgoble
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status: Offline
Reply With Quote
May 9, 2001, 04:42 PM
 
If you are going to be using the shell much, I'd get an good introductory tutorial on it. Someone posted a web page tutorial on the terminal/shell as well. Do a search on the forums and 90% of the time you'll find your question has already been answered.

To answer your question you simply enclose the name of the file in quotes. (This is true in Windows as well) So if you have a file named Downloads Keep then you could change to that directory with

cd "Downloads Keep"
     
Gavin
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
May 10, 2001, 07:22 AM
 
Another trick is to drag the folder or file into the terminal, it will write the path for you.
You can take the dude out of So Cal, but you can't take the dude outta the dude, dude!
     
Octo
Junior Member
Join Date: Aug 2000
Location: Montreal, QC, Canada
Status: Offline
Reply With Quote
May 10, 2001, 07:42 AM
 
Another option is to start the name and then hit tab key. The shell will attempt to complete the name, if more than one match is found, then it will complete the name until there are no more common letters between the two or more names and then it will printout the choices, so that you may finish your path/filename. Also if you have to cd to a directory which is nested several layers deep, but each directory only has one sub directory than the tab key only has one choice each time the its hit.
     
Geobunny
Mac Elite
Join Date: Oct 2000
Location: Edinburgh, Scotland
Status: Offline
Reply With Quote
May 10, 2001, 08:09 PM
 
I'm quite surprised no-one's said this yet. What you're after is the backslash character, y'know, the daft one that windoze and dos uses to delimit directories!

"The Application" in /Applications can be got to by typing :
cd /Applications/The\ Application

Remember to put the space in after the backslash as well.

------------------
Artificial intelligence is no match for natural stupidity.

ClamXav - the free virus scanner for Mac OS X | Geobunny learns to fly
     
mumble
Dedicated MacNNer
Join Date: Nov 2000
Location: Trolling for Meader
Status: Offline
Reply With Quote
May 10, 2001, 08:59 PM
 
Originally posted by Nai no Kami:
i have been playing around with the Terminal.app an I don't find a way to replace the spaces of the directory names and/or files or applications as well. If I have an app located at, say... ~/applications/The Application.app. How do I manage to invoke that app to open? I have tried "The_Application.app", "The-Application.app" and "TheApplication.app" without results. I could not found any solution by searching the man.
open The\ Application.app
or
open 'The Application.app'

The quickest way is probably:

open ~/ap[tab]Th[tab]
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 11:08 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,