AS and AI
AS and AI
- Subject: AS and AI
- From: Hagimeno <email@hidden>
- Date: Mon, 8 Mar 2010 02:10:43 -0800 (PST)
Hi, I have a tons of EPS clipart that I would like to convert to Adobe Illustrator .ai file format because saving as AI take less space and is a more "modern" format.
I would like to, when I open these files, enlarge the visible window to max area or my monitor.
And this is the problem. Seems to be that the command is not scriptable, nor using AI action.
Second, i would like to adapt the artboard area to the max visible bounds of illustration.
This because file saved as EPS (even if illustration is outside the artboard) is displayed correctly and entirely using Bridge. But when you save it as AI, if illustration for any reason is outside the artboard, Bridge show only portion of illustration inside the artboard area.
The middle part works (Adapt artboard to illustration) works good
My problems is only how to reset the view window to max area and how to set rulers units of each document to millimeters (seems that ruler unit properties is only read only)
Thanks in advance.
Alex
try
tell application "System Events"
tell process "Adobe Illustrator"
activate
tell menu bar 1
tell menu bar item "Window"
tell menu "Window"
tell menu item "Arrange"
tell menu "Arrange"
click menu item "Tile"
end tell
end tell
end tell
end tell
end tell
end tell
end tell
on error msg number errnum
display dialog msg
end try
-- Adapt artboard to illustration + 10 points of extra space.
tell application "Adobe Illustrator"
activate
tell current document
set maxBoundingBox to visible bounds
set x1 to item 1 of maxBoundingBox
set x2 to item 3 of maxBoundingBox
set y1 to item 2 of maxBoundingBox
set y2 to item 4 of maxBoundingBox
set artboard rectangle of artboard 1 to {x1 - 10, y1 + 10, x2 + 10, y2 - 10}
end tell
end tell
tell application "System Events"
tell process "Adobe Illustrator"
click menu item "Fit Artboard in Window" of menu "View" of menu bar 1
end tell
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden