Printing from Applescript

Cliff Nowack cliff at thenowacks.com
Thu Jan 10 15:36:13 CST 2008


I have come across a strange problem with Creator 8.01.

I have a script that does a bunch of stuff and then prints. It works  
fine on Creator 7.0.5, but fails in Creator 8.0.1.

I simplified it to

tell applications "MultiAd Creator Pro"
print document 1 without interaction
end tell

I get "An unexpected error has occurred. (20202)".

I have tried this running both Tiger and Leopard with the same results  
under both systems.

The strange this is, if I print manually (command-P) and then run the  
script, it works. But if I close the ad and reopen it, run the script  
and it errors.

Has anyone had a similar issue or know what might be causing this?

Thanks, Cliff


More information about the Creator mailing list