Auto Print
Auto Print
- Subject: Auto Print
- From: Peter Mathiessen <email@hidden>
- Date: Wed, 10 Jan 2001 13:03:12 +0100
Hi,
I4m trying to write a script that will take a bunch of files from one
folder, open them in Tex-Edit Plus. Print them and then move them to another
folder.
I have two problems;
1. Tex-Edit Plus will not open them, instead MacOS text tool opens them (the
files are of type: TEXT and creator: ttxt).
2. The printout dialog is popping up, I want to print with no user
interaction.
The script:
tell application "Finder"
activate
set searchFolder to alias "Macintosh HD:to_print:"
set destfolder to alias "Macintosh HD:printed_files:"
set myList to list folder searchFolder without invisibles
repeat with myfilename in every item in myList
set myfile to alias ("Macintosh HD:to_print:" & myfilename)
tell application "Tex-Edit Plus"
activate
open myfile
print window 1
close window 1 saving no
move myfile to destfolder
end tell
end repeat
end tell
Any thoughts?
Peter