image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old March 12th, 2006, 01:21 PM
Registered User
 
Join Date: Feb 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
C19H28O2 is on a distinguished road
Opening windows via command line

Hi,

If I'm in my home directory could I open this in a finder window via the command line?

Thanks

C19
Reply With Quote
  #2  
Old March 12th, 2006, 01:32 PM
symphonix's Avatar
Scratch & Sniff Committee
 
Join Date: Jul 2001
Location: The Australian Jungles
Posts: 4,022
Thanks: 2
Thanked 2 Times in 2 Posts
symphonix is on a distinguished road
Yes. The command is "open ~"

You can open any file or directory with the "open" command. Type "man open" into the command line to see full instructions.
__________________
- iMac G5 1.8GHZ 17" | SuperDrive | 160GB | 512MB | Airport Extreme | Bluetooth Keyboard & Mouse | Wacom Intuos II
- Pentax *ist DL - JVC MiniDV Camcorder - Airport Express - iPod Nano 1gb white
Reply With Quote
  #3  
Old March 13th, 2006, 12:09 AM
tomdkat's Avatar
Registered User
 
Join Date: Aug 2005
Posts: 197
Thanks: 6
Thanked 0 Times in 0 Posts
tomdkat is on a distinguished road
Quote:
Originally Posted by symphonix
Yes. The command is "open ~"

You can open any file or directory with the "open" command. Type "man open" into the command line to see full instructions.
Neat.

Peace...
Reply With Quote
  #4  
Old March 13th, 2006, 04:53 AM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 250
Thanks: 1
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
Quote:
Originally Posted by symphonix
Yes. The command is "open ~"
To extend that into something more useful, the following command will open a Finder window in whatever directory you happen to be:

open `pwd`
Reply With Quote
  #5  
Old March 23rd, 2006, 01:32 AM
Corporal Quark
 
Join Date: Dec 2004
Location: Gothenburg, Sweden
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Xlator is on a distinguished road
open ./ does the same. Why use two commands when you only need one?
Reply With Quote
  #6  
Old March 24th, 2006, 03:38 PM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 250
Thanks: 1
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
Quote:
Originally Posted by Xlator
open ./ does the same. Why use two commands when you only need one?
Good point, although why use two characters when you only need one? : "open ."

Last edited by macbri; March 27th, 2006 at 02:45 AM.
Reply With Quote
  #7  
Old March 27th, 2006, 04:21 PM
tomdkat's Avatar
Registered User
 
Join Date: Aug 2005
Posts: 197
Thanks: 6
Thanked 0 Times in 0 Posts
tomdkat is on a distinguished road
Ok, who can reduce this command to one character?

Peace...
Reply With Quote
  #8  
Old March 27th, 2006, 04:27 PM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 250
Thanks: 1
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
Quote:
Originally Posted by tomdkat
Ok, who can reduce this command to one character?

Peace...
Aliasing 'open .' to the letter f would reduce it to 2 characters: (f and <return>)
Close but no cigar!
Reply With Quote
Reply

Thread Tools

Posting 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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can connect to ftpd via command line, but not windows app robroth Networking & Compatibility 2 April 11th, 2005 10:17 AM
Command line ftp? Mac Osxtopus Unix & X11 5 August 27th, 2002 08:55 AM
Command Line? unlearnthetruth Mac OS X System & Mac Software 4 February 20th, 2002 01:33 AM
command line->GUI? macavenger Software Programming & Web Scripting 1 January 27th, 2002 04:43 PM
Opening command line apps with GUI programs davidbrit2 Mac OS X System & Mac Software 2 June 21st, 2001 12:28 PM


All times are GMT -5. The time now is 06:37 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.