RE: Setting active printer in MS Word 2004?
RE: Setting active printer in MS Word 2004?
- Subject: RE: Setting active printer in MS Word 2004?
- From: Richard Rönnbäck <email@hidden>
- Date: Fri, 26 Nov 2004 14:19:01 +0100
Title: RE: Setting active printer in MS Word 2004?
Well, I may have found the answer myself.
Trying to change the active printer using Visual Basic returns an error saying it is a read-only property on the Macintosh OS, so I assume the same goes for AS and that the dictionary is wrong.
But I hope that it is not, and that I am
--
Richard Rönnbäck
Från: Richard Rönnbäck <email@hidden>
Datum: Fri, 26 Nov 2004 08:33:22 +0100
Till: AppleScript <email@hidden>
Ämne: Setting active printer in MS Word 2004?
Has anyone succeeded in setting active printer in Word 2004?
The dictionary as well as the 2004 AS reference guide published by Microsoft says that the application class has a property "active printer" which is read/write:
active printer Unicode text -- Returns or sets the name of the active printer
But when I try
tell application "Microsoft Word"
set active printer to ("Adobe PDF" as Unicode text)
end tell
or variations thereof it doesn't work. I can however get the active printer, but whitepace characters (and maybe other characters too? ) are replaced so that
Adobe PDF = AdobePDF
Marknad HP 4000 = Marknad_HP_4000"
I have of course tried using these to set the active printer, but with equal lack of success. So, if anyone has a better suggestion I would appreciate it greatly
/ Richard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden