I can’t understand why Acrobat Pro balks at utf8 names of documents.
I tried to make a similiar script with skim.
tell application "Skim"
activate
set activeDoc to the document 1
end tell
(The document was named ærender, ører og årer, worked fine).
Skim is quite versatile with both regards to PDF Viewing and Editing (Notes, bookmarks), and as a viewer of Latex and AppleScriptIf your usage doesn’t exceed those limits, I’d recommend having a look at Skim right away. It doesn’t bite, and it is fast and pleasant to use!
I have just completed script for Acrobat which does what I want, bar the accents problem.
I have also had incompatibility issues with PDFs from time to time, where Preview will open them (for example) but Acrobat will not, throwing an error. For that reason alone, I would prefer to stay with Acrobat for best guarantee of cross platform compatibility (Wondows/Mac/Linux). Just had this experience for many many PDFs created by printing PDFs from Chrome… Preview was fine with them, but not Acrobat which would tell me that the “bbox” was wrong!!
Where do you actually need to use the name? If it’s just for saving a new version, for example, you can save using a dummy name and then rename the file.