I believe I have completely searched the BBS. I am in the process of converting a script that has worked for several year’s to OS X. Basically the script uses information found in a text file to insert PDF’s, in order, to form a book. I have been able to get the script to work (Thanks to Acrobat 6!). My problem is that if one of the page code pdf’s is missing I have instructions to insert a blank page. Now the folder that contains the PDF’s has a file called §blank.pdf in it, but when the script runs, I get a dialoge error box that says “Can’t get (in black text) file”§blank.pdf", then the box contains a list of all of the files in the folder including the §blank.pdf file. Does this have anythng to do with having to access or set permissions? I have replicated this “problem” on my work and home machines, both running X.2.6 The variable listOfAllFiles is defined earlier in the script
tell application “Finder”
set listOfAllFiles to list folder (pdfFiles as alias)
end tell
–here is the If statement that occurs several lines later that checks for the correct pdf, then should insert the blank page when the correct file is not found.
if (processingFirstPageOfForm is true) then
set pdfFilename to pageCodePrefix & pageNumber & pageSubpageDivider & subpageNumber & ¬
mastheadID & formNum & “_” & subForm & reviseString & “.pdf”
set pdfPagePath to (pdfFiles as text) & pdfFilename
set processingFirstPageOfForm to false
else
set pdfFilename to pageCodePrefix & pageNumber & pageSubpageDivider & subpageNumber & reviseString & “.pdf”
set pdfPagePath to (pdfFiles as text) & pdfFilename
set blankPagePath to file “§blank.pdf” of listOfAllFiles
end if
Any one get this error message before?