one script calls another?
one script calls another?
- Subject: one script calls another?
- From: John Swartz <email@hidden>
- Date: Thu, 21 Dec 2000 15:18:54 -0500
Good Afternoon,
I hope some one can tell me what I'm overlooking here.
I have a script called "converter" (which converts the format of some
name information)
one of the last things this script does is to call another script
using the name of a handler in that script. I'm almost sure this
used to work, but now it doesn't. I *am* sure that in another set of
scripts I have the same thing working.
Here's the pertinent part of the first script:
--nameslist has already been assigned by this time in the script, and
has a value.
--kicks off the address book generator
ignoring application responses
tell application "address book generator"
writeAddressBook(namesList)
end tell
end ignoring
"address book generator" has the following handler (some snips for brevity...)
on writeAddressBook(namesList)
set filName to "webserver1:Contact Export Folder:Current
Address Books:netscape4.ldif"
set filnamehqx to (filName & ".hqx")
--get rid of old files before writing new ones.
--snipped
open for access file filName with write permission
repeat with eachitem in namesList
--snippped boring assignment statements
writetofile(line1, filName, false, false)
--snippped boring repetitions of the above for each line.
end repeat
writetofile(return, filName, true, false)
makehqx(filName)
end writeAddressBook
Oddly enough, there is another script which is called in the same way
from "converter" which works fine... The scripts being called look
nearly identical to me. Is there a gotcha here, or am I just
overlooking some dumb syntax thing?
Thanks.
John Swartz
Deskey Associates