- Timestamp:
- 10/30/06 11:06:21 (18 years ago)
- Location:
- trunk/launch/launch
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/launch/launch/README
r308 r309 1 launch 1.1 d2 [unreleased]2 ========== ==1 launch 1.1 [30 October 2006] 2 ========== 3 3 4 4 A command-line launcher for Mac OS X in the spirit of open(1). … … 105 105 e() { 106 106 ( emacsclient -n $@ >&/dev/null && \ 107 107 appswitch -a Emacs ) || \ 108 108 ( launch -ba Emacs && \ 109 109 until { emacsclient -n $@ >&/dev/null } do sleep 1; done; … … 223 223 --------------- 224 224 225 1.1 - unreleased225 1.1 - 30 October 2006 226 226 - -L: send "launch" (ascr/noop) event to app, bypasses automatic 227 227 opening of untitled document, etc. 228 - -o: pass command-line arguments (broken, r. 4474993) 228 - -o: pass command-line arguments (undocumented while still broken, 229 r. 4474993) 229 230 - display content type ID (UTI) 230 231 - display architecture of Mach-O files -
trunk/launch/launch/VERSION
r305 r309 1 1.1 b11 1.1 -
trunk/launch/launch/launch.1
r166 r309 1 .Dd Sun Apr 3 2005\" DATE1 .Dd Mon Oct 30 2006 \" DATE 2 2 .Dt LAUNCH 1 LOCAL \" Program name and manual section number 3 .Os launch 1. 0.13 .Os launch 1.1 4 4 .Sh NAME 5 5 .Nm launch … … 7 7 .Sh SYNOPSIS 8 8 .Nm launch 9 .Op Fl npswbmhCX U \" [-npswbmhCXU]10 .Op Fl c Ar creator \" [-c creator]11 .Op Fl i Ar bundleID \" [-i bundleID]12 .Op Fl u Ar URL \" [-u URL]13 .Op Fl a Ar name \" [-a name]14 .Op Ar item ... \" [item ...]15 .Op Ar - \" [-]9 .Op Fl npswbmhCXLU \" [-npswbmhCXLU] 10 .Op Fl c Ar creator \" [-c creator] 11 .Op Fl i Ar bundleID \" [-i bundleID] 12 .Op Fl u Ar URL \" [-u URL] 13 .Op Fl a Ar name | Ar path \" [-a name|path] 14 .Op Ar item ... \" [item ...] 15 .Op Ar - \" [-] 16 16 .Nm 17 .Op Fl npflswbmhCX U17 .Op Fl npflswbmhCXLU 18 18 .Ar item ... 19 19 .Sh DESCRIPTION … … 24 24 command and opens a file (or a folder/directory or URL), as if you had 25 25 double-clicked its icon in the Finder. If no application is specified, 26 the default application determined by Launch Services is used to open26 the default application determined by Launch Services is used to open 27 27 items. 28 28 .Pp … … 66 66 .Ar URL 67 67 (which must be a file:// URL). 68 .It Fl a Ar name | Ar path 69 Match application named 70 .Ar name 71 or at the path 72 .Ar path . 68 73 .El 69 74 .Pp … … 99 104 Don't start the Classic environment for this Classic application if 100 105 Classic isn't running. 106 .It Fl L 107 Suppress the normal opening behavior of the application; for example, 108 opening an untitled document. (This works by sending a "launch", or 109 ascr/noop, Apple event to the application.) 101 110 .It Fl U 102 111 Interpret items as URLs, even if files with the same names as the URLs … … 112 121 .Xr open 1 113 122 .Sh BUGS \" Document known, unremedied bugs 114 Launching may be very slow on Mac OS X 10.2.8 and earlier; this is an115 acknowledged Mac OS X bug with no known workaround, and may affect116 Apple's117 .Xr open 1118 command as well in certain cases. It is fixed in Mac OS X 10.3.119 .Pp120 The121 .Fl m122 option may not work well (or at all) before Mac OS X 10.3 because of123 Mac OS X bugs.124 .Pp125 123 The 126 124 .Fl h … … 129 127 option to be used as well, or Cocoa applications will not hide on 130 128 startup. This is a Mac OS X bug which is still unfixed as of Mac OS X 131 10. 3.129 10.4.8. 132 130 .Sh AUTHOR 133 131 .An "Nicholas Riley" Aq launchsw@sabi.net 134 132 .Pp 135 This page written in partby133 Original man page written by 136 134 .An "Hisashi T Fujinaka" Aq htodd@twofifty.com . 137 135 .\" .Sh HISTORY \" Document history if command behaves in a unique manner -
trunk/launch/launch/main.c
r308 r309 17 17 18 18 #define BROKEN_AUTHORIZATION 1 19 #define BROKEN_ARGUMENTS 1 19 20 #define kComponentSignatureString "launch" 20 21 … … 36 37 const char *APP_NAME; 37 38 38 #define VERSION "1.1 b1"39 #define VERSION "1.1" 39 40 40 41 #define STRBUF_LEN 1024 … … 95 96 96 97 void usage() { 97 fprintf(stderr, "usage: %s [-npswbmhCXLU] [-c creator] [-i bundleID] [-u URL] [-a name] [-o argument] [item ...] [-]\n" 98 " or: %s [-npflswbmhCXLU] [-o argument] item ...\n", APP_NAME, APP_NAME); 98 fprintf(stderr, "usage: %s [-npswbmhCXLU] [-c creator] [-i bundleID] [-u URL] [-a name|path] [-o argument] [item ...] [-]\n" 99 " or: %s [-npflswbmhCXLU] " 100 #ifndef BROKEN_ARGUMENTS 101 "[-o argument] " 102 #endif 103 "item ...\n", APP_NAME, APP_NAME); 99 104 fprintf(stderr, 100 105 " -n print matching paths/URLs instead of opening them\n" … … 117 122 " -u URL open application at file:// URL (NOT RECOMMENDED for scripts)\n" 118 123 " -a name|path match application by name/path (NOT RECOMMENDED, very fragile)\n" 124 #ifndef BROKEN_ARGUMENTS 119 125 " -o argument pass argument to application (may be specified more than once)\n" 126 #endif 120 127 "'document' may be a file, folder, or disk - whatever the application can open.\n" 121 128 "'item' may be a file, folder, disk, or URL.\n\n"); … … 416 423 appSpecified = true; 417 424 break; 425 #ifndef BROKEN_ARGUMENTS 418 426 case 'o': 419 427 if (LPARAMS.argv == NULL) … … 422 430 CFStringCreateWithCString(NULL, optarg, kCFStringEncodingUTF8)); 423 431 break; 432 #endif 424 433 default: usage(); 425 434 }
Note:
See TracChangeset
for help on using the changeset viewer.