call a php script with applescript?

A co-worker & I are setting up a Joomla 1.5 web site for a school. We need to populate the site with ~275 course descriptions. These already exist as individual text files.

Co-worker already wrote a php script to create batches of articles containing dummy text. How hard would it be to have Applescript pass the article titles & body texts to the php script? Or is this overly complicated? I don’t know php so am at a disadvantage here …

If they already exist as text files, then it should be easy to have the php script read them.

If you want to do it in Applescript, you could pass the information using $_GET. That will be more difficult though, since you need to url encode the whole file, pass it in the url, and then decode it in php.

php scripts can be run from the unix command line… so you can run it with something like this:

do shell script "php -q " & quoted form of posix path of phpScriptPath