Re: Need help scripting print dialogs in AppleWorks 6.2.2
Re: Need help scripting print dialogs in AppleWorks 6.2.2
- Subject: Re: Need help scripting print dialogs in AppleWorks 6.2.2
- From: T&B <email@hidden>
- Date: Tue, 26 Feb 2002 09:53:29 +1100
As a newbie to AppleScript, I'd like some advice regarding AppleWorks
scripting.
For a detailed tutorial on scripting, which happens to use AppleWorks for the exercises, see:
http://www.tandb.com.au/applescript/tutorial/
and for some prepared scripts, see:
http://www.tandb.com.au/appleworks/scripts/
I've devised a simple database for which I'd like to be able
to print individual records ("current record being browsed") without
having to go through all the print dialogs for my Epson printer. I've
only written VERY basic scripts
One way would be to Find just those records, or select them then choose the "Hide Unselected" menu item, then print them. You could print from a layout that starts a page break for each record, if you like.
Via scripting, I don't think you can choose just the "Current Record" option in the print dialog, since AppleWorks' dictionary only has the Standard Suite syntax:
print: Print the specified document, window, or file
[Application must be 'active'/at front]
print alias -- Objects to print. Can be a document, window,
file, or list of files
[print dialog boolean] -- Should the application show the print dialog?
[default: false]
So you could:
tell application "AppleWorks 6"
print front document print dialog false
end tell
but it will print all visible records. I haven't tested it.
and can't get the ScriptEditor to record
in AppleWorks (6.2.2). I'm using OS X (10.1.3).
Neither AppleWorks 6 or Mac OS X support recording. Both would need to support it for recording to work.
Tom
T&B
_______________________________________________
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.