Mark Nutter wrote: > > >I can't get the desired result when calling this script from > >AppleScript, although it works fine when run from MacPerl 5.06 itself: > > Just to rush in where angels fear to tread, let me try this shot in the dark: > > >#!/usr/local/bin/perl > > > >dbmopen(%my_array,"my_arrayfile",0644) || die "Ooops" ; > relative path ^^^^^^^^^^^^ > > When you run from MacPerl, the default directory is the same as the one > your arrayfile is in, but when you run the AppleScript, you're coming from > AppleScript's default directory rather than MacPerl's, so my_arrayfile is > not found. Unfortunately, die() doesn't return an AppleEvent reply, so you > get back an empty result string rather than an error message. Yes, that's it. Thought I had tried that one myself, but apparently I was just staring blankly at my monitor instead. Thank you.