Hi All,
I am am in a somewhat desperated need of a hand, I have no AppleScript experience whatsoever, so I apologise for what may be an obvious question.
My problem is this: I have recently been forced to install Outlook 2003 running under Crossover Mac for my users, the problem is that anytime you try to print Outlook crashes. To get around this I have set up a ‘Print Folder’ that prints then deletes anything that is saved or moved into it. The idea is that the users can ‘Save As’ into the folder and the printer will then spit it out. Now, this works great when the e-mail is text only as the system defaults to a paper size of A4. However, more complicated e-mails with rich text reatures are saved as HTML and, HTML documents seem to ignore this default A4 paper size and set themselves to US Letter - which means our printers print them onto A3 size paper.
I am using the following script to set up the ‘Print Folder’.
on adding folder items to this_folder after receiving added_items
repeat with this_item in added_items
tell application "Finder"
print this_item
delete this_item
end tell
end repeat
end adding folder items to
My question is: how do I change the script to tell TextEdit (which I have set as the default application for HTML docs) to change the paper size to A4, then print (default printer is fine), without requing user input. We are running Mac OS 10.4
I have searched the forums and Apple’s AppleScript pages, but despite many similar questions, my attempts at applying these solutions to my case have been unsuccessful. My knowledge and experiance of ApplScript is currently too limited for me to figure it out.
Any help on this matter would be greatly, greatly appreciated.
Spikey