The Save Preview command saves a digital resource preview into a file. Optionally, a specific page number to be saved may be specified.
Save Preview digital_resource_id
Result: Boolean - always true.
The file alias, file specification, or AppleShare file path where preview will be stored. | ||
Example: Save page 2 of an extended preview and open it in Internet Explorer.
tell application "Virtual Ticket 8.0"
display dialog ¬
"Be sure that QuarkXPress file types are set up in Virtual
Ticket to be thumbnailed with an extended preview."
set fileId to item 1 of¬
(Add Files {"Jobs:000001 - Rockport Spring Cat:Brochure"})
Update Digital Resources (fileId) without changed files only
-- save page 2 of the preview into file SavedPreview.jpg and open
-- it with Internet Explorer
set savedPreview to ""
tell application "Finder" to set savedPreview to "" & (container¬
of (path to me)) & "SavedPreview.jpg"
Save Preview fileId into file savedPreview page number 2
tell application "Internet Explorer" to open {alias savedPreview}