Is Applescript suitable for this?

New to the Mac (running on Tiger); Oldtime PC user/developer:
Have a question -

Have a browser-based pgm and want to integrate it with a softphone package,
so that the number in the browser “jumps over” to the softphone, for a one-button dial job.
Then have the browser-based pgm log the duration, even record the session, until hang-up.
Then the next phone number on the browser, etc.

The browser based program runs on PHP/javascript.
Is Applescript the thing I need to glue this concept together as one,
or is a macro-of-sort the thing I need,
or are both these options - one and the same?

Much obliged for any help you throw my way. Thanks.