Adobe 26001360 Scripting Guide - Page 258
duplicate, Notes, Example 87.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 258 highlights
258 AppleScript Reference duplicate Duplicates an object(s). Returns reference(s) to newly created object(s). Table 4.121 duplicate - Parameters Parameters What it is Objects supported object reference or list (of object references) [to location reference] The object(s) to duplicate The new location for the object(s) all objects except: • application • mesh item • plugin items Returns object reference or list (of object references) [with properties record] The new values for the properties of the duplicated object(s) Notes It is permissible to duplicate page items from one document to another. This avoids having to set the selection, perform a cut or copy, bring another document to the front, and then paste. However, when duplicating objects from one document to another, it is required that the location reference is fully specified. Example 87.1 -- Duplicate the first page item in document 1 to document 2 tell application "Illustrator CS" set pageItemRef to duplicate page item 1 of document 1 to beginning of document 2 end tell 12 Aug 03