[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Looking up definitions for perl funcs




Here's an alternative to Angus McIntyre's Shuck Contextual Menu Plugin:

<http://www.uni-bonn.de/~uzs90z/CMScript.hqx>

It's a CM plugin that executes AppleScripts that match the context. In this
case the desired context is specified with "TEXT" (no quotes!) in the first
line of the script's description. The actual script looks like this:

on open (theSelection)
    try
        tell application "Shuck" to Show theSelection
    on error errMsg
        display dialog errMsg buttons {"OK"} default button 1
    end try
end open

Save it as a compiled script in "...:Contextual Menu Items:Contextual Menu
Scripts:Alpha Scripts" or whatever your favorite editor is. Aliases are
okay, too.

Two notes:

- Internet Explorer has some kind of trouble downloading files from my
server. You'll have to drag the URL to its Download Manager window or
download through its pop-up menu.

- When I tried CMScript the first time in Alpha after turning on the CM
from its Help menu it crashed Alpha. The workaround (in Alpha and
presumably other apps) is to start the app, turn on the CM, quit and launch
the app again.
The crash reproducibly happens in a StdCLib function (called through
PLStringFuncs.c; hello Matthias!). I have no idea why it happens, but I
guess it's caused by some of the magic the CM enabler does.

Michael



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch