Changeset 309 for trunk


Ignore:
Timestamp:
10/30/06 11:06:21 (17 years ago)
Author:
Nicholas Riley
Message:

VERSION: Updated for 1.1.

main.c: Disabled -o since it doesn't work.

launch.1: Updated for 1.1. Added description of -a which had been
missing (oops).

README: Updated for 1.1. Turned out the Resorcerer example is still
fine (though rather out of date contextually, oh well.)

Location:
trunk/launch/launch
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/launch/launch/README

    r308 r309  
    1 launch 1.1d2 [unreleased]
    2 ============
     1launch 1.1 [30 October 2006]
     2==========
    33
    44A command-line launcher for Mac OS X in the spirit of open(1).
     
    105105    e() {
    106106      ( emacsclient -n $@ >&/dev/null && \
    107         appswitch -a Emacs ) || \
     107        appswitch -a Emacs ) || \
    108108      ( launch -ba Emacs && \
    109109        until { emacsclient -n $@ >&/dev/null } do sleep 1; done;
     
    223223---------------
    224224
    225 1.1 - unreleased
     2251.1 - 30 October 2006
    226226 - -L: send "launch" (ascr/noop) event to app, bypasses automatic
    227227   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)
    229230 - display content type ID (UTI)   
    230231 - display architecture of Mach-O files
  • trunk/launch/launch/VERSION

    r305 r309  
    1 1.1b1
     11.1
  • trunk/launch/launch/launch.1

    r166 r309  
    1 .Dd Sun Apr 3 2005       \" DATE
     1.Dd Mon Oct 30 2006      \" DATE
    22.Dt LAUNCH 1 LOCAL       \" Program name and manual section number
    3 .Os launch 1.0.1
     3.Os launch 1.1
    44.Sh NAME
    55.Nm launch
     
    77.Sh SYNOPSIS
    88.Nm launch
    9 .Op Fl npswbmhCXU        \" [-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 -                    \" [-]
    1616.Nm
    17 .Op Fl npflswbmhCXU
     17.Op Fl npflswbmhCXLU
    1818.Ar item ...
    1919.Sh DESCRIPTION
     
    2424command and opens a file (or a folder/directory or URL), as if you had
    2525double-clicked its icon in the Finder. If no application is specified,
    26 the default application determined by LaunchServices is used to open
     26the default application determined by Launch Services is used to open
    2727items.
    2828.Pp
     
    6666.Ar URL
    6767(which must be a file:// URL).
     68.It Fl a Ar name | Ar path
     69Match application named
     70.Ar name
     71or at the path
     72.Ar path .
    6873.El
    6974.Pp
     
    99104Don't start the Classic environment for this Classic application if
    100105Classic isn't running.
     106.It Fl L
     107Suppress the normal opening behavior of the application; for example,
     108opening an untitled document.  (This works by sending a "launch", or
     109ascr/noop, Apple event to the application.)
    101110.It Fl U
    102111Interpret items as URLs, even if files with the same names as the URLs
     
    112121.Xr open 1
    113122.Sh BUGS              \" Document known, unremedied bugs
    114 Launching may be very slow on Mac OS X 10.2.8 and earlier; this is an
    115 acknowledged Mac OS X bug with no known workaround, and may affect
    116 Apple's
    117 .Xr open 1
    118 command as well in certain cases.  It is fixed in Mac OS X 10.3.
    119 .Pp
    120 The
    121 .Fl m
    122 option may not work well (or at all) before Mac OS X 10.3 because of
    123 Mac OS X bugs.
    124 .Pp
    125123The
    126124.Fl h
     
    129127option to be used as well, or Cocoa applications will not hide on
    130128startup.  This is a Mac OS X bug which is still unfixed as of Mac OS X
    131 10.3.
     12910.4.8.
    132130.Sh AUTHOR
    133131.An "Nicholas Riley" Aq launchsw@sabi.net
    134132.Pp
    135 This page written in part by
     133Original man page written by
    136134.An "Hisashi T Fujinaka" Aq htodd@twofifty.com .
    137135.\" .Sh HISTORY           \" Document history if command behaves in a unique manner
  • trunk/launch/launch/main.c

    r308 r309  
    1717
    1818#define BROKEN_AUTHORIZATION 1
     19#define BROKEN_ARGUMENTS 1
    1920#define kComponentSignatureString "launch"
    2021
     
    3637const char *APP_NAME;
    3738
    38 #define VERSION "1.1b1"
     39#define VERSION "1.1"
    3940
    4041#define STRBUF_LEN 1024
     
    9596
    9697void 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);
    99104    fprintf(stderr,
    100105        "  -n            print matching paths/URLs instead of opening them\n"
     
    117122        "  -u URL        open application at file:// URL (NOT RECOMMENDED for scripts)\n"
    118123        "  -a name|path  match application by name/path (NOT RECOMMENDED, very fragile)\n"
     124#ifndef BROKEN_ARGUMENTS
    119125        "  -o argument   pass argument to application (may be specified more than once)\n"
     126#endif
    120127        "'document' may be a file, folder, or disk - whatever the application can open.\n"
    121128        "'item' may be a file, folder, disk, or URL.\n\n");
     
    416423            appSpecified = true;
    417424            break;
     425#ifndef BROKEN_ARGUMENTS
    418426        case 'o':
    419427            if (LPARAMS.argv == NULL)
     
    422430                               CFStringCreateWithCString(NULL, optarg, kCFStringEncodingUTF8));
    423431            break;
     432#endif
    424433        default: usage();
    425434        }
Note: See TracChangeset for help on using the changeset viewer.