Accessing user defined functions from within an Applescript.
Accessing user defined functions from within an Applescript.
- Subject: Accessing user defined functions from within an Applescript.
- From: "Zavatone, Alex" <email@hidden>
- Date: Mon, 17 Sep 2001 11:21:53 -0700
Hi folks.
I'm in the process of creating an auto dialer for our Director app and I'm
doing it through applescript. I've got the communication from Director to
Applescript and back working but before I settle in on the final coding, I'd
like to get some guidance.
Situation:
This Applescript will be called from a Director Projector to create custom
TCP/IP and remote access configs to automatically dial into our VPN. Then
when both configs are created it will save the current TCP/IP and remote
access config names in properties and switch over to the configs that it has
just created. When this is done, it will dial the modem and on success or
error, return control to Director for a transaction to take place.
Director does its thing, the transaction is complete...
Now Director calls the Applescript again and this time, changes the configs
back to the User's prior settings, deletes the custom created configs and
quits the applescript.
Bingo. All done.
My questions are with regards to approach. I have planned on this whole
mess being one applescript with several properties to store data that should
persist. It will run from the time neeed to start the phone transation till
right after it hangs up.
Since I'm a newbie in applescript, I'm wondering how to send a message to an
applescript to execute my custom routines? Is that just a tell application
command? Also, I'm assuming that I can tell the applescript application to
quit when it is done right?
Thanks all. AS is pretty powerful stuff.
- Zav