export single page PDFs from multi-artboards in Ai-CS4

I’m not exactly sure where my new problem lies. I’m trying to save out single page PDFs from an Illustrator CS4 document with multiple artboards. Each artboard should become a PDF. I can get a multi page PDF, but when it saves single page files, I get white PDFs with error messages on them (I think it is saving .ai files with a .pdf extension).

this is where I am now (simplified, of course):



tell application "Adobe Illustrator"
set docName to name of current document

set itemNumber to 1
tell application "Finder" to set fileLoc to path to desktop as string

set pageCount to (count artboards in document docName)

tell current document
set allPlacedItems to placed items
repeat with h from 1 to (count of allPlacedItems)
set thisPlacedItem to item h of allPlacedItems
tell thisPlacedItem to embed
end repeat

set allTextItems to text frames
repeat with j from 1 to (count of allTextItems)
set thisTextItem to item j of allTextItems
tell thisTextItem to convert to paths
end repeat
end tell

repeat with i from 1 to pageCount

set pdfSaveOptions to {class:PDF save options, pdfXstandard:PDFX None, compatibility:Acrobat 6, preserve editability:false, generate thumbnails:false, optimization:false, acrobat layers:false, artboard range:i, view pdf:false, color downsampling:0, color resample:nodownsample, color compression:none, grayscale downsampling:0, grayscale resample:nodownsample, grayscale compression:none, monochrome downsampling:0, monochrome resample:nodownsample, monochrome compression:none, compress art:false, trim marks:false, registration marks:false, color bars:false, page info:false, page marks style:Roman, trim mark weight:trimmarkweight025, offset:6.0, bleed link:true, bleed offset:{0, 0, 0, 0}, color conversion id:none, color destination id:none, color profile id:include all profiles, trapped:false, font subset threshold:50.0}

set pdfName to docName & "TEST" & itemNumber & ".pdf"
set destFile to (fileLoc & pdfName) as string

save document 1 in file destFile as pdf with options pdfSaveOptions

set itemNumber to (itemNumber + 1)
end repeat
close current document without saving
end tell