Inky Phil Posted May 8, 2006 Posted May 8, 2006 Is there any way of checking within a script if the default printer is available or not? TIA Phil
John Mark Osborne Posted May 8, 2006 Posted May 8, 2006 The Get(PrinterName) function returns the name of the default printer. However, it doesn't tell you if the default printer is currently available or not. I tested this on a Macintosh and there was difference about what was returned if the printer was on or off. All that matters is what your default is set to. I then looked at errors by creating a script that prints and displaying the error in a dialog. Neither a 600 or 603 error is returned from the Print script step when the default printer is not the default. It looks like you may need to consider VB or some other scripting langugae to communicate with the OS.
Inky Phil Posted May 8, 2006 Author Posted May 8, 2006 Thank you for having a look at this for me. Just one moe question if you don't mind. If I have error capture on and I issue a print (no dialogue) step and a printer is NOT available the script seems to hang and just stay there with the egg timer running. is there a time out feature running in the background and what would it default to if there is. (I realise that is two more questons actually - sorry!) Phil
Recommended Posts
This topic is 6765 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now