Perl-like modules in AppleScript?
Perl-like modules in AppleScript?
- Subject: Perl-like modules in AppleScript?
- From: Greg Strange <email@hidden>
- Date: Wed, 14 Mar 2001 12:11:06 -0600
Howdy all,
I used to be an avid applescripter and have still been doing doing some
things on the side but my recent job has landed me square in the middle of
the UNIX world and I have been mostly using Perl. While I still find
Applescript the easiest and equally as robust as Perl in most ways, I do
have one sort of functionality that I cannot seem to figure out how to
emulate or reproduce.
Is there some way to "modularize" functions in Applescript much like in
Perl. And to be clear, I am not referring to scripting additions (though
technically the equivalent are modules). For instance, there is a module
for Perl called HTML::Template that allows you to pass certain parameters to
be inserted in an HTML Template for return to a web visitor. It does the
job of reading in the file, finding the insertion points (based on module
specific tags in the template), and replacing the insertion tags with the
values of the variables you passed to it.
What would be the like functionality in Applescript?
I look forward to the discussion.
Greg Strange
--
I think I'll go home and lie very still,
feigning terminal illness.
Then the neighbours will all troop over to stare,
my love, perhaps, among them.
How she'll smile while the specialists
snarl in their teeth!
She perfectly well knows what ails me.
-Egyptian Love Poem