• 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
Re: How can I print from this script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Changing Page Setup w/player 9.1 unreliable
  • Next by Date: Re: PhotoScripter and Curves
  • Previous by thread: How can I print from this script?
  • Next by thread: Migrating scripting additions to OS X
  • Index(es):
    • Date
    • Thread