Information Technology Reference
In-Depth Information
Applications that involve two words (like Google Chrome) need to be enclosed
in quotation marks:
OPEN -A "GOOGLE CHROME"
Alternatively, you can escape the spaces in the usual way with backslashes
(that is,
OPEN-AGOOGLE\CHROME
).
You need to enter the name of the application as it appears in the Applications
view of Finder.
To open a file with a specific application, just list it afterward. For example,
to open
TEXTFILE.TXT
in TextEdit, type the following:
OPEN -A TEXTEDIT TESTFILE.TXT
Opening a Web Address in a Browser Window
To open a web address, specify it after
OPEN
, but make sure you include the
HTTP://
prefix, or you'll see an error message:
OPEN HTTP://WWW.APPLE.COM
Other URLs will work fine too:
OPEN SSH://192.168.1.1
will open an secure shell
Creating a New Mail
Just type
OPEN -A MAIL
, and then type the filename for any attachment. For
example, to create a new mail with the file
DISNEYLAND.JPG
attached, I would type
the following:
OPEN -A MAIL DISNEYLAND.JPG
Tip 326
Quickly Turn Emails into Docs
If you use Mail, you can simply click to highlight any message within the
Inbox, hit
COMMAND
+
C
, and then hit
COMMAND
+
V
to paste the message contents
into an editor such as TextEdit (pasting into Microsoft Word doesn't work).
There's no need to manually select all the text in the message.