Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printer Setup Utility, starting a stopped printer.



Hello

To get the current printer path, you may use:

tell application "Printer Setup Utility"
set currentPrinter to (path to library folder from user domain as Unicode text) & "Printers:" & name of current printer & ".app"
set currentPrinter to (path to "impr" as Unicode text) & "Printers:" & name of current printer & ".app"
end tell


The first syntax use only official objects.
The second one use a definition given in "Folder Manager Interfaces".
I am not sure that it would be perfectly safe.

Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Printer Setup Utility, starting a stopped printer. (From: Thomas Myers <email@hidden>)
 >Re: Printer Setup Utility, starting a stopped printer. (From: Peter Baxter <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.