Printing web content
Posted: Fri Jul 01, 2011 9:42 pm
Hi all.
When I want to print something in windows i can use the webgadget and then a code like this http://www.purebasic.fr/english/viewtop ... 7&p=116305
When I want ot print web content on the mac I use applescript wrapper:
COCOA_AppleScript("tell application "+Chr(34)+"Safari"+Chr(34)+Chr(13)+Chr(10)+"activate"+Chr(13)+Chr(10)+"end tell")
COCOA_AppleScript("tell application "+Chr(34)+"Safari"+Chr(34)+Chr(13)+Chr(10)+"make new document at end of documents"+Chr(13)+Chr(10)+"set url of document 1 to "+Chr(34)+universal_url+Chr(34)+Chr(13)+Chr(10)+"end tell")
and have <body onload=document.print> in the html code.
Is there any remote chance someone with a great deal of knowledge in xcode can do something to print without using applescript? It gives me popups etc that stay and my customers are printing hundreds of times per day...
Any ideas?
When I want to print something in windows i can use the webgadget and then a code like this http://www.purebasic.fr/english/viewtop ... 7&p=116305
When I want ot print web content on the mac I use applescript wrapper:
COCOA_AppleScript("tell application "+Chr(34)+"Safari"+Chr(34)+Chr(13)+Chr(10)+"activate"+Chr(13)+Chr(10)+"end tell")
COCOA_AppleScript("tell application "+Chr(34)+"Safari"+Chr(34)+Chr(13)+Chr(10)+"make new document at end of documents"+Chr(13)+Chr(10)+"set url of document 1 to "+Chr(34)+universal_url+Chr(34)+Chr(13)+Chr(10)+"end tell")
and have <body onload=document.print> in the html code.
Is there any remote chance someone with a great deal of knowledge in xcode can do something to print without using applescript? It gives me popups etc that stay and my customers are printing hundreds of times per day...
Any ideas?