440Forums  |  MacMusic.org  |  PcMusic.org  |  440tv  |  Zicos  |  AudioLexic
option   {key13}


Open data from a pipeline in any application

MacOsxHints

Thursday March 20, 2008. 03:30 PM
MacOsxHints

The open(1) command (man page) provides a -f option, which open's own help says "Reads input from standard input and opens with TextEdit". But, in fact, you can load the data into nearly any application. Simply combine the -f flag with the -a flag: curl 'http://example.com/encodingerror.html' | open -a 'Hex Fiend' -f curl 'http://example.com/example.html' | open -a 'TextMate' -f curl 'http://example.com/example.png' | open -a 'Preview' -f curl 'http://example.com/example.m4v' | open -a 'QuickTime Player' -f Of course, the source of the data doesn't have to be curl; it can be any command. Note that the last two examples aren't even textual data: one is an image, and the other is a video file. You aren't limited to text; any data will work. But there is a catch: open will save the file with a .txt e...
open(1) command (man page) provides option which open
Open data from a pipeline in any application Read more at MacOsxHints
feeds.macosxhints.com/~r/macosxhints/recent/~3/254947841/article.php

 

 Related News 
Inkscape 0.46.2 Open Source Vector Graphics Editor Inkscape 0.46.2 Open Source Vector Graphics Editor
 AppleLinks 04/01/08 06 AM 
Microsoft?s Open Office XML approved as international standar... Microsoft?s Open Office XML approved as international standar...
 Mac Daily News 03/31/08 05 PM 
Outspring introduces new Mail application Outspring introduces new Mail application
 Mac Megasite 03/31/08 04 PM 
Aperture 2.1 Adds Open Plug-in Architecture [Updated] Aperture 2.1 Adds Open Plug-in Architecture [Updated]
 TheMacObserver 03/28/08 03 PM 
Apple releases Aperture 2.1 with powerful image editing open ... Apple releases Aperture 2.1 with powerful image editing open ...
 Mac Daily News 03/28/08 01 PM 
Freeway 5 released to the open road Freeway 5 released to the open road
 Mac Merc 03/28/08 05 AM 
iPodObserver - Nokia Siemens Doubles EDGE Data Speed iPodObserver - Nokia Siemens Doubles EDGE Data Speed
 TheMacObserver 03/27/08 05 PM 
Nokia Siemens Networks doubles EDGE data speed Nokia Siemens Networks doubles EDGE data speed
 Mac Daily News 03/27/08 04 PM 
Nokia Siemens offers 4X EDGE data speeds Nokia Siemens offers 4X EDGE data speeds
 MacNN 03/27/08 03 PM 
Apple to Open Cherry Hill, NJ Store on Saturday Apple to Open Cherry Hill, NJ Store on Saturday
 TheMacObserver 03/27/08 02 PM 
Engadget posts scathing open letter from former Motorola insider Engadget posts scathing open letter from former Motorola insider
 Mac Daily News 03/26/08 11 PM 
Force 'new window' links to open in new tabs in Safari Force 'new window' links to open in new tabs in Safari
 MacOsxHints 03/26/08 03 PM 
Prosoft Data Rescue II and Data Backup 3 Awarded The Consumer... Prosoft Data Rescue II and Data Backup 3 Awarded The Consumer...
 AppleLinks 03/26/08 05 AM 
Open Spring ‘08 Authenticates Linux, UNIX and Mac Enter... Open Spring ‘08 Authenticates Linux, UNIX and Mac Enter...
 AppleLinks 03/26/08 05 AM 
Bento ?an astounding little database application? Bento ?an astounding little database application?
 Apple HotNews 03/25/08 08 PM 
Apple to Open Cambridge UK Store on Thursday Apple to Open Cambridge UK Store on Thursday
 TheMacObserver 03/24/08 01 PM 
OpenOffice.org 3.0 Open Source Office Productivity Suite OpenOffice.org 3.0 Open Source Office Productivity Suite
 AppleLinks 03/24/08 06 AM 
Flux 1.1 XHTML/CSS Design application for Mac OS X Now Available Flux 1.1 XHTML/CSS Design application for Mac OS X Now Available
 AppleLinks 03/24/08 06 AM 
iPodObserver - O'Reilly Intros iPhone Open Application Develo... iPodObserver - O'Reilly Intros iPhone Open Application Develo...
 TheMacObserver 03/21/08 02 PM 
Apple set to open 15th UK store Apple set to open 15th UK store
 Macworld UK 03/20/08 10 AM 
Verizon sets rules for Open Development Verizon sets rules for Open Development
 MacNN 03/19/08 06 PM 

Search

Mac Zicos
Fri December 5, 02:24 PM
option   {key13}