printing Documents from the finder
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.