Re: How can I print from this script?
Re: How can I print from this script?
- Subject: Re: How can I print from this script?
- From: JJ <email@hidden>
- Date: Thu, 28 Jun 2001 15:46:51 +0200
>
Okay, here is what I am working with!
>
>
Only one prob, when I run the script, it prompts me to hit the print
>
button, then it asks me if I want to save the file. I tried to add
>
close aFile saving no, and it did not work. I would like to have the
>
script run and not have to hit any buttons after I start the script. Can
>
anyone help? Thanks in advance!
>
>
>
tell application "Finder"
>
set fList to (files in folder "Macintosh HD:cberry:quark files") as
>
alias list
>
repeat with aFile in fList
>
open aFile
>
print aFile
>
close aFile
>
end repeat
>
end tell
"automate alerts", from Akua Sweets:
(You don't need open-print-close), because "print" is a Finder command, too.
tell application "Finder"
automate alerts after 0 -- don't show alerts
set fList to (files in folder "Macintosh HD: cberry: quark files:") -
as alias list
print fList
automate alerts after -1 -- restore alerts
end tell
end