Applescript "open without dialogs" no longer works
I have an Applescript that has the statement
open (thePDFName as alias) without dialogs
In Adobe Illustrator 2019, it works. In Adobe Illustrator 2020, it gives me an "unable to open file" error. When I comment out "without dialogs", it opens the file, but then naturally pops open a dialog (not helpful when you are opening dozens of files!)
MacOS 10.13.6, not sure what other information would be needed.
This issue is reproducible with HFS paths.
Workaround: Use the POSIX path for opening files
set myFilePath to POSIX path of theAIFile
open file myFilePath without dialogs
Same issue for me – doesn't work with POSIX path either. I get this:
"Adobe Illustrator got an error: Parameter error." number -50"
I'm running into the same issue and the workaround didn't work for me, any other idea?
Aaron Priven commented
Yes, that workaround works for me. Thanks.