Drawing Suite
364
Use inline picture index, where index is the index number of the picture, to return a single inline
picture object.
The following example adds a new picture to
myDoc
. The inserted picture is linked to the file from
which it was created and is saved with the document.
set myDoc to active document
make new inline picture at myDoc with properties ¬
{file name:"Users:Shared:clipart:music.gif", link to file:true ¬
save with document:true}
This example sets the lock aspect ratio property of the picture to true, allowing the picture to retain
its original proportions when it is resized.
set lock aspect ratio of inline picture 1 of active document to true
Properties
<Inheritance> inline shape
Inherits the properties and elements of the inline shape class.
file name
Returns the file name of the picture used for the inline picture. Read-only.
link to file
True if the inline picture is linked to the file. Read-only.
picture format
Returns a
picture format
object that contains picture formatting properties for the specified
inline picture object. Read-only.
save with document
True if the picture is saved with the document. Read-only.
Class: inline picture bullet
Plural
inline picture bullets
Represents a picture bullet based on an image file in the text layer of a document. The inline picture
bullet class inherits all the properties of the
inline shape
class, which includes all the inline shapes
in the main story of a document or in all the headers and footers of a document.
Use inline picture bullet index, where index is the index number of the picture, to return a single
inline picture bullet object.
This example adds a picture bullet to each paragraph in the selected text using a file named
"RedBullet.gif."
repeat with aPara in (get paragraphs of selection)
make new inline picture bullet at the beginning of the text object of ¬
aPara with properties {file name:"MacintoshHD:Pics:RedBullet.gif"}
end repeat