Hi, I just noticed that when opening in InDesign CS 5.5 a document that was created with an earlier version, you cannot get file path anymore:
tell application “Adobe InDesign CS5.5”
activate
tell document 1
get file path
end tell
end tell
Result:
error “Adobe InDesign CS5.5 got an error: Unsaved documents have no path.” number 90937
I was wondering if there was any workaround other than save the converted document first
If you got the script to open the document as well you can get the file path of the original. The script I post here saves it as well but you wouldn’t have to.
tell application "Adobe InDesign CS5.5"
activate
set fileToConvert to choose file with prompt "Choose your old InDesign file to upgrade."
open fileToConvert
save document 1 to fileToConvert
end tell
Browser: Safari 533.19.4
Operating System: Mac OS X (10.6)
Will give it a try, thank you.