The following example was graciously posted to this list in answer to my request for help getting started with DropScript on 10.2 I writing to the list again because after following these instructions on three different machines I've found that while it creates a droplet, when the droplet is used it launches and crashes. The Droplet icon in the dock shows 'application not responding' and generates a crash log (which I can't decipher). This leaves me wondering if I need developers tools installed(that would seem unfortunate), a certain shell command placed somewhere, or something else changed from the way in which the machines arrive off the shelf. I so enjoyed the power of MacPerl's Export as Droplet feature. I had created some real time saving droplets and would really like to get DropScript working. After trying it on three G4's running jaguar, I would be very surprised if no one else is having this problem. Any advice would, as usual, be greatly appreciated. As a side note, I do use applescript quite a bit as well, but there are some things that perl does so much faster and I've found it much easier to write string intensive scripts in perl.



Save this text in BBEdit with UNIX line breaks as


"_numbered_list.pl"
____________________

#!/usr/bin/perl
$report = 'report.txt' ;
open REPORT, ">$report" ;
for (@ARGV) {
++$i ;
print REPORT "$i. $_\n";
}
`open $report` ; # shell command


Drop the file on Dropscript and an applet named "Drop_numbered_list"
will be created. You can change the name to whatever you want.

If you now drop a handful of files on "Drop_numbered_list", a report
will open giving a numbered list of the paths to the dropped files.

Reply via email to