• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to switch the default printer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to switch the default printer?


  • Subject: Re: How to switch the default printer?
  • From: Laurent Daudelin <email@hidden>
  • Date: Thu, 15 Oct 2009 12:05:58 -0700

On Oct 15, 2009, at 11:42, Kyle Sluder wrote:

> On Thu, Oct 15, 2009 at 11:27 AM, Laurent Daudelin
> <email@hidden> 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@hidden
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to switch the default printer?
      • From: Graham Cox <email@hidden>
References: 
 >How to switch the default printer? (From: Laurent Daudelin <email@hidden>)
 >Re: How to switch the default printer? (From: Kyle Sluder <email@hidden>)
 >Re: How to switch the default printer? (From: Laurent Daudelin <email@hidden>)
 >Re: How to switch the default printer? (From: Kyle Sluder <email@hidden>)
 >Re: How to switch the default printer? (From: Laurent Daudelin <email@hidden>)
 >Re: How to switch the default printer? (From: Kyle Sluder <email@hidden>)
 >Re: How to switch the default printer? (From: Laurent Daudelin <email@hidden>)
 >Re: How to switch the default printer? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Malloc leak from ImageIO library
  • Next by Date: Re: language based scaning,
  • Previous by thread: Re: How to switch the default printer?
  • Next by thread: Re: How to switch the default printer?
  • Index(es):
    • Date
    • Thread