| | | |
AppleScript: Examples (page 3) |
|
|
Here is an example script that groups all the objects on each page as a table group and then sizes and places the table group. This can give each page a consistent look when it’s exported to HTML. |
|
|
tell application "Create"
tell the front document
repeat with p from 1 to pagecount
set currentpage to p
tell page p
selectall
if (count of the selection) > 1 then
grouping using "table"
redraw
end if
tell table group 1
set width to 475
set height to 459
set x position to 133
set y position to 7
end tell
redraw
end tell
end repeat
end tell
end tell |
|
|
To see Create’s commands, objects, and object properties, use Script Editor to open Create’s dictionary. |
|