• 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
printing Documents from the finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

printing Documents from the finder


  • Subject: printing Documents from the finder
  • From: Mikael Byström <email@hidden>
  • Date: Tue, 27 Jan 2004 00:30:50 +0100

I'd like to print jpeg documents from the Finders folder selection as
well as the subfolders or at least send them for printing in another
application. So far I've come up with the skeleton below. But it doesn't
actually print. I suppose I need to send some parameters to an
application in order to let Finder make sense of the "print" command
(which is in its dictionary). True?
Or what am I missing?

--PrintSelection.script:
tell application "Finder"
activate --Is activate really necessary?
try
set printFolder to (folder of the front window) as alias
set theFileList to the items of printFolder
-- repeat this section of the script with all files
repeat with oneItem in theFileList
set FileEnding to name extension of oneItem
if FileEnding = "jpg" then
print oneItem --with application "??" or how to say this? Doesn't
print for now.
end if
end repeat

on error
beep
end try

end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: printing Documents from the finder
      • From: Graff <email@hidden>
  • Prev by Date: Re: UI Element Inspector
  • Next by Date: Re: Scripting Additions 'Read' has stopped reaching EOF?
  • Previous by thread: Re: Running a script in both OS 9 and 10
  • Next by thread: Re: printing Documents from the finder
  • Index(es):
    • Date
    • Thread