Re: printing Documents from the finder
Re: printing Documents from the finder
- Subject: Re: printing Documents from the finder
- From: Graff <email@hidden>
- Date: Mon, 26 Jan 2004 23:47:17 -0500
Well, I was having the same problems you were having when I fooled
around a bit. I got around the trouble by having the application
QuickTime Player do the printing for me. Here's how it looks:
--------
tell application "Finder"
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
tell application "QuickTime Player"
set thisMovie to open (oneItem as alias)
print thisMovie
close thisMovie
end tell
end if
end repeat
on error
beep
end try
end tell
--------
- Ken
On Jan 26, 2004, at 6:30 PM, Mikael Bystrvm wrote:
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.
_______________________________________________
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.