I have an applescript started that appears to pass syntax checks, but when I run it, I get error window that says InDesign can't complete the package. It doesn't tell me why it can't complete.
package to exportPackage ignore preflight errors preflight_errors with copying fonts, copying profiles and copying linked graphics
exportPackage is a variable that contains the path to a server location. I've tried changing it to the desktop, but get the same error.
I can complete the package process manually.
I assume this is within a "tell document 1" or similar block. Try making exportPackage refer to a folder you'd like it to make, rather than one that already exists.
This is what I found with CS4
When I tried to package a document using the original code I would get a "missing required parameter" error
Full line needed to read (for my purposes) :
package to exportPackage with copying fonts, ignore preflight errors, copying profiles, updating graphics, including hidden layers, copying linked graphics and creating report