Quantcast
Channel: Adobe Community : Discussion List - Illustrator Scripting
Viewing all articles
Browse latest Browse all 3671

Get geometric bounds for selection

$
0
0

Hi everyone!

 

When i am paste an image into illustrator document, To get the geometric bounds of selection using applescript.

But, not exactly to get values.

Screen Shot 2016-03-07 at 5.12.48 PM.png

 

Because, the above image having hiding text frames in document.

Screen Shot 2016-03-07 at 5.13.09 PM.png

  

This is my code,

 

  tell application "Adobe Illustrator"

          tell document 1

                set vb to visible bounds of item 1 of selection   ------  here wrongly to get value

                set artboard rectangle of first artboard to vb

          end tell

     end tell

 

 

Please any idea to fix this.

 

Thanks,

John Peter.


Viewing all articles
Browse latest Browse all 3671