• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Auto Print
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: And now... (From: John W Baxter <email@hidden>)

  • Prev by Date: Re: applescript-users digest, Vol 2 #207 - 11 msgs
  • Next by Date: Re: Highlights of AppleScript in Mac OS 9.1
  • Previous by thread: Re: And now...
  • Next by thread: Ohhh, that's hurts!
  • Index(es):
    • Date
    • Thread