Save Preview

Save Preview

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

into file preview_file

[page number page_number]

 

Result: Boolean - always true.

 

Arguments

Type

Description

digital_resource_id

Integer

The digital resource id of the file preview to be saved.

preview_file

<Any>

The file alias, file specification, or AppleShare file path where preview will be stored.

page_number

Integer

The page number of the preview to be saved.

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}

end tell

 


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