I’m using Blosxom as my weblog software, generating static webpages up to my .Mac website. I generate the site via command line which I’ve automated with applescript using the “do shell script” command, however I have a few problems. It seems the command line doesn’t alway complete it’s processing before Applescript decides to move on. Any ideas?
display dialog "Would you like to generate the entire site or only new entries?" buttons {"Entire Site", "New Entries"} default button 2
set theoption to button returned of result
display dialog "Please enter your password" default answer ""
set pwd to (text returned of result)
try
if theoption is 1 then
set ScriptToExe to "perl /Library/WebServer/CGI-Executables/blosxom.cgi -password='" & pwd & "' -all=1"
else
set ScriptToExe to "perl /Library/WebServer/CGI-Executables/blosxom.cgi -password='" & pwd & "'"
end if
set BosxomResults to do shell script ScriptToExe
display dialog BosxomResults
on error theerror
display dialog "There was an error: " & theerror
end try