Hey guys,
Whats the easiest way to print a document via apple script?
I have a script that will get info about a mac and save it as a .txt file.
How would i tell it to print? The mac only has one printer added to it.
cheers
Hey guys,
Whats the easiest way to print a document via apple script?
I have a script that will get info about a mac and save it as a .txt file.
How would i tell it to print? The mac only has one printer added to it.
cheers
Tell some application to do it:
tell application "TextWrangler" to print alias ((path to desktop as text) & "aFileToPrint")
-- or
tell application "TextEdit" to print alias ((path to desktop as text) & "aFileToPrint")
And BTW, it doesn’t matter how many printers you have - it will print to the default printer set in the Printer Setup Utility (which is scriptable).