Restore Preview

Restore Preview

The Restore Preview command restores a digital resource preview from a file.

Restore Preview digital_resource_id

from file preview_file

[page number page_number]

 

Result: Boolean - always true.

 

Arguments

Type

Description

digital_resource_id

Integer

The integer digital resource ID number of the file preview to be restored.

preview_file

<Any>

The file alias, file specification, or AppleShare file path.

page_number

Integer

The page number of the preview to be restored.

Example: Replace page 4 with page 1 of a digital resource extended preview.

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
-- replace page 4 in extended preview by page 1
Save Preview fileId into file "SavedPreview"
Restore Preview fileId from file "SavedPreview" page number 4
end tell


Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.