On Mon, 11 Mar 2002 14:55:31 -0800, macnerd wrote: > - Is there a way to create some sort of Perlets, i.e. executable compiled programs >on the Mac? > Maybe some sort of Perl executable can be a 68K CODE resource, and read the >datafork, which > is essentially the Perl script, or on PowerPC where the datafork is the binary, >the PerlScript > can be a string resource. Just an idea...
You should check out the "droplet" option in the "save as" dialog. As far as the implementation is concerned: you've got them nailed, pretty much. If I got this correctly, it uses AppleEvents to launch MacPerl, compile the script (which is stored as text in a text resource), and run it, with any dropped files as arguments. There's also the "save as runtime" option, which includes the perl executable in the file. Gee, if only I knew where these are documented... -- Bart.