mac osx finder: how to add an entry to the contextual menu of a file.

Discussion in 'Apple' started by leo, Jul 6, 2004.

  1. leo

    leo Guest

    hi there

    in the finder i can select a file and right click it to get the context
    menu. how can i add on action to this menu? (e.g for img files an entry
    which calls a little script which rotates the image, etc)

    i thought folder action would do the job, but they don't, because thay act
    om folders not on files.

    thanks for any hint, leo
     
    leo, Jul 6, 2004
    #1
    1. Advertisements

  2. leo

    Don Bruder Guest

    The bad It's a non-trivial task that requires Macintosh programming skills.

    The good It can be done.

    The better The exact module you want may have already been done by someone.
    (unfortunately, I have no clue to offer you on where to find it. Google
    probably knows, though)

    Basically, you (or someone) need to write a Contextual Menu Item add-on
    to perform the new action you want, and whatever support code it needs.
    The ones you see in the menus now are either supplied by the system
    (Help, Open, Get Info, etc), tossed into the Contextual Menu Items
    folder by utilities packages or other similar things as plug-in units
    that get loaded at startup time (StuffItCM, Snitch Contextual Menu), or
    temporarily installed by whatever program is in the foreground.

    For your case, you'll probably need to go the route of writing it as a
    plug-in for the CM Items folder, since it sounds like you're wanting to
    be able to use it globally.
     
    Don Bruder, Jul 6, 2004
    #2
    1. Advertisements

  3. Batch-rotate in GraphicConverter.
     
    George Williams, Jul 6, 2004
    #3
  4. go to:
    www.unsanity.com

    get a piece of software called "Fruitmenu"
    it allows you to setup a directory of items (scripts, application
    shortcuts, documents, folders, whatever) which you can include in all
    contextual menus. Also allows you to add it to the apple menu too.

    there are other useful functions too
    go look
    $7 shareware
     
    Fetch, Rover, Fetch, Jul 7, 2004
    #4
  5. leo

    leo Guest

    thanks, big cat is ok.

    but it puts all the entries to the scripts in a _sub_menue in side the
    context menu. would be nice to have your script straight in the context
    menue though.

    leo
     
    leo, Jul 8, 2004
    #5
  6. leo

    Matt Guest

    Matt, Jul 8, 2004
    #6
  7. leo

    wheat Guest

    If you are interested in learning how to do this, there is a nice
    article here to get you started:
    http://www.macdevcenter.com/pub/a/mac/2004/06/04/cm_pt2.html

    It includes a link to the introductory article also.
    Here is a link to macupdate.com > macosx > utilities > contextual menus:
    http://www.macupdate.com/utilities.php?sub=4

    cheers.
     
    wheat, Jul 8, 2004
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.