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

Re: [MacPerl] passing MacPerl file names into an AppleScriptscript



At 15.08 -0500 2000.03.21, Paul N. Schatz wrote:
>	I have an AppleScript script (droplet) upon which a folder may be
>dropped.  The script, among other things assigns paths such as:
>
>set myFolder to "7500HD:Desktop Folder:newtest_folder:"
>set myFilename to "blogs"
>
>	But of course these paths are not assigned until the droplet is used.
>
>	I then call a MacPerl subroutine using a 'Do Script' command.  The
>MacPerl subroutine requires the path names above as arguments.
>
>	Although it must be easy, I have tried any number of things, but I
>can't seem to correctly pass the AppleScript path names into the MacPerl
>subroutine under these circumstances.  Could someone point the way?

I think your subject is misleading, so I am not entirely sure what you
mean.  You want to pass file names from AppleScript into MacPerl, not
MacPerl to AppleScript, right?

If so, call DoScript with a list:

  set myFolder to "7500HD:Desktop Folder:newtest_folder:"
  set myFilename to "blogs"

  tell application "MacPerl"
    Do Script ["MacPerl::Reply(join '|', @ARGV)", myFolder, myFilename]
  end tell

-- 
Chris Nandor       |     pudge@pobox.com      |     http://pudge.net/
Andover.Net        | chris.nandor@andover.net | http://slashcode.com/
                                -=-
  The face of a child can say it all, especially the mouth part of the
  face.
                --Jack Handey

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org