The following script will not export my records if I use a progress indicator. If I remove any use of the progress indicator, it works as expected. Odd!
using terms from application "DEVONthink Pro"
tell application "DEVONthink Pro"
try
set theRecord to get record at "/Writings"
show progress indicator "Exporting Writings" steps 2
step progress indicator "Clear existing Writings"
tell application "Path Finder"
delete "Users:johnw:Sites:johnw:Writings"
end tell
step progress indicator "Export Writings"
export record theRecord to "/Users/johnw/Sites/johnw"
step progress indicator "Upload Website"
do shell script "/sw/bin/sitecopy -u johnwiegley"
step progress indicator "Synchronize Website"
tell application "Safari"
activate
make new document at beginning of documents
set URL of document 1 to "http://johnwiegley.com/Synchronize.aspx"
end tell
hide progress indicator
on error error_message number error_number
if the error_number is not -128 then
try
display alert "DEVONthink Pro" message error_message as warning
on error number error_number
if error_number is -1708 then display dialog error_message buttons {"OK"} default button 1
end try
end if
end try
end tell
end using terms from