Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Am I missing something...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Am I missing something...
Authored by: littlebilly on Nov 12, '01 01:36:01PM

The long name of the script is just to reduce confusion when I want to edit, remove or replace a script. As for your second point... not having to type the full path name.. Your right. I have already quit using this script. Is this new to 10.1? Before upgrading I am pretty sure I had to type the full path.. hence the script. Thanks for pointing that out, I would have gone on using my "limited features" script.



[ Reply to This | # ]
New to 10.1?
Authored by: serversurfer on Nov 12, '01 07:16:21PM
I'm pretty sure that it has always been this way. I don't recall ever typing a path myself. I reread the man page just now (still dated Mar. 24, 2001) and it states
You can specify one or more file names (or pathnames), which are interpreted relative to the shell or Terminal window's current working directory.
Perhaps this line caused your confusion. At first glance, it seems to be telling you to specify any needed pathnames, but I think this line only refers to the file argument not the application arg. Since it uses the "default" app automatically if unspecified, this means it already had some ability to search on its own. It is possible that open 10.0.x only searched '/Applications' (where 98% of my apps reside) and not the other appdirs, like '~/Applications', but I kind of doubt it, since all four appdirs have always been considered part of the Application tree. See Inside Mac OS X: System Overview pages 166 and 242.
I have been meaning to install X on my parent's iMac. Whenever I finally get around to it, I'll test this before I upgrade them to 10.1 as post back here. Unless someone out there is still running 10.0.x and can beat me to the punch. (What's wrong with you anyway? X.1 rules! ;-) )

P.S. You can even use a directory as the file arg and open will open a new Finder window in that directory.

open ~

If the specified directory is already the focus of a Finder window, Finder will bring that window to the front rather than open a new one.

[ Reply to This | # ]
New to 10.1?
Authored by: littlebilly on Nov 19, '01 03:21:04PM

I figured out why I had to type the whole path-- I wasn't using the -a option! so i was using
open /Applications/TextEdit.app to open from the terminal.
I have 10.04 installed on another drive and it is the same.
A couple of seconds spent looking at the man page would have saved me some trouble.



[ Reply to This | # ]