• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Requesting help with illustrator CS6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requesting help with illustrator CS6


  • Subject: Re: Requesting help with illustrator CS6
  • From: Stan Cleveland <email@hidden>
  • Date: Mon, 06 Jul 2015 11:40:22 -0700

On Jul 4, 2015, at 8:46 PM, Brian Christmas <email@hidden> wrote:

# This doesn’t crash, but also doesn’t work
tell document 1 to fitartboardtoselectedart {}

Hi Brian,

The Illustrator dictionary indicates that you need to add the word index to the syntax:

function syntax

set theResult to fitartboardtoselectedart document index integer 

I don't recall the details at the moment, but based on one of my own scripts, Illustrator artboards appear to be numbered starting at zero:

tell document 1 to fitartboardtoselectedart index 0

The above statement works here (running Illustrator CS6 and 10.8.5 Mountain Lion).

HTH,
Stan C.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Requesting help with illustrator CS6
      • From: Brian Christmas <email@hidden>
References: 
 >Requesting help with illustrator CS6 (From: Brian Christmas <email@hidden>)

  • Prev by Date: Requesting help with illustrator CS6
  • Next by Date: Re: Requesting help with illustrator CS6
  • Previous by thread: Requesting help with illustrator CS6
  • Next by thread: Re: Requesting help with illustrator CS6
  • Index(es):
    • Date
    • Thread