At 18.20 -0400 1999.04.15, Michael Schuerig wrote: >> I admit a "save as Contextual Menu thingie" would be cool (this is >>not the >> technical Perl term "thingie" but a generic "thingie" :-) > >You can achieve exactly the same result with a combination of CMScript, >my CM plugin that handles AppleScripts _and_ Word Services Servers, and >Perl WS, my MacPerl extension that makes scripts into Word Services >Servers. It works nicely with applications that have the necessary >support for AppleEvents, but there are cases where it'll fail. Another solution is to save it embedded in a compiled AppleScript, and then use whatever it takes to run compiled AppleScripts under CM. With the latest version of Mac::OSA::Simple and the p2as program (perl to AppleScript :), you can save any MacPerl script as a compiled AppleScript (either by embedding the text in MacPerl, or by directing the Finder to open the script, which requires MacPerl to be set to run scripts opened from the Finder, and the script must have MacPerl as its creator). The module is on http://pudge.net/macperl/ or http://www.perl.com/CPAN/authors/id/CNANDOR. The script was posted awhile back, and you should be able to find it on the MacPerl mailing list archives. Search for "p2as". The archives are linked to from the pudge.net/macperl page. Of course, you can also just manually embed the MacPerl in the compiled AppleScript, or just write a compiled AppleScript that says: tell app "Finder" to open alias "HD:path:to:script.plx" But that can be a pain if you want to do it a lot. -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-porters-request@macperl.org