SUMMARY: Printing w/o interaction?
SUMMARY: Printing w/o interaction?
- Subject: SUMMARY: Printing w/o interaction?
- From: Dennis Wurster <email@hidden>
- Date: Thu, 13 Feb 2003 16:22:18 -0500
The solution was to use Sandi's Additions, and the single line 'TypeText
(ascii character 3)'. This script works well with OS 9.1. I attached it to a
folder, and now anything that's dropped into the folder (as long as the
folder's window is open) will simply appear at my printer. Nice.
<
http://www.osaxen.com/sandis_additions.html>
Here's the complete script:
--begin script
on adding folder items to myFolder after receiving myNewFiles
tell application "Finder"
activate
print myNewFiles
end tell
TypeText (ASCII character 3)
end adding folder items to
--end script
Original Message:
Hi All,
I'm trying to build a simple Folder Action script.
I want to have this script print a copy of any item that's dropped into it.
So far it works pretty well, opening whatever application is needed to print
the document, but it always stops at the print dialog.
I want the script to simply print, without showing the dialog if possible.
I read the Finder Dictionary, which said:
>
print: Print the specified object(s)
>
print reference -- list of objects to print
>
[with properties record] -- optional properties to be included with the print
>
command sent to the application that prints the direct object
How can I learn what properties exist that I can include? If I'm starting
the print job from the finder, and always want to use the default settings
of the print driver (Which in this case is a generic Adobe LaserWriter
driver), which properties must I specify?
Here's what I have so far:
on adding folder items to myFolder after receiving myNewFiles
tell application "Finder"
print myNewFiles
end tell
end adding folder items to
--end script
What's the 'best' way to solve this challenge?
-=Dennis=-
_______________________________________________
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.