On Oct 15, 2009, at 11:42, Kyle Sluder wrote:
> On Thu, Oct 15, 2009 at 11:27 AM, Laurent Daudelin
> <[email protected]> wrote:
>> A "print" Apple Event? Can you elaborate a bit?
>
> Apple Events are the IPC mechanism underlying AppleScript and
> Automator. I won't go into a detailed explanation, but open up
> AppleScript Editor and take a look at TextEdit's scripting dictionary,
> in particular the "print" command. "Print" is a part of the standard
> suite, so almost every application supports it.
>
> --Kyle Sluder
Kyle,
I'm sorry to report that it doesn't work. Maybe it's a Word problem not reading
the print settings but the print job will always go to the default printer
(which is the last one I used in my testing), not to the CUPS-PDF one:
tell application "Microsoft Word"
set theDoc to alias "Mac OS X:Users:laurent:Desktop:To
Convert:MagazineSource Complaints.doc"
set printConfig to {copies:1, target printer:"CUPS-PDF"}
print theDoc with properties printConfig
end tell
A;as
Any other suggestion?
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin
http://nemesys.dyndns.org
Logiciels Nemesys Software
[email protected]
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]