• 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: scripting for Adobe Illustrator error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scripting for Adobe Illustrator error


  • Subject: Re: scripting for Adobe Illustrator error
  • From: RJay Hansen <email@hidden>
  • Date: Thu, 13 Oct 2016 14:02:01 -0500

I can’t help you with the Illustrator specific problem as I haven’t done any scripting with it. However I have several scripts I’ve written for InDesign. I have four versions of InDesign on my machine (CS6 thru CC 2015) and I have no problems with my scripts knowing which version of InDesign to use.

I use:

tell application “Adobe InDesign CC 2015”
scripting stuff here
end tell

I wonder if addressing the Illustrator version directly like that might solve your problem with it being finicky if multiple versions are installed on a machine.

RJay


On Oct 12, 2016, at 3:55 PM, Jake Rowlands <email@hidden> wrote:

Here is a snippet of the script that appears to have the error:
--say "window"


tell application "System Events"
tell process "Adobe Illustrator"
--beep
set frontmost to true
my do_submenu("Adobe Illustrator", "Window", "Tools", "Default")
set Sizes1 to size of every window
my do_submenu("Adobe Illustrator", "Window", "Tools", "Default")
set Sizes2 to size of every window
--beep
if length of Sizes1 is greater than length of Sizes2 then
set TheSize to item 1 of my RemoveComonList(Sizes1, Sizes2)
else
set TheSize to item 1 of my RemoveComonList(Sizes2, Sizes1)
end if
--beep
set TOOLS to every window whose size is TheSize
if TOOLS is {} then
my do_submenu("Adobe Illustrator", "Window", "Tools", "Default")
set TOOLS to every window whose size is TheSize
end if
--beep
tell item 1 of TOOLS
set WindowPosition to position
set item 1 of WindowPosition to (item 1 of WindowPosition) + (item 1 of clicker)
set item 2 of WindowPosition to (item 2 of WindowPosition) + (item 2 of clicker)
get WindowPosition


end tell


It is erring on item 1.

On Wed, Oct 12, 2016 at 3:27 PM, Jake Rowlands <email@hidden> wrote:

I am using Adobe Illustrator v2014.0.0 with the script below to auto update proof slug information. The script was originally written using AI CC 2013. It does get finicky if more than one version of Illustrator is on the machine as well. Once I removed AI CC 2013, the script worked in the newer version.

I have a user that has Adobe Illustrator 2015.3 with the following error when running the script. "Can't get item 1 of {}. Script Editor got an error: Can't get item 1 of {}. (-1728)"

What is the best way to share the script without exceeding the email size limit?




Thank you,
Jake Rowlands

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: scripting for Adobe Illustrator error
      • From: Jake Rowlands <email@hidden>
References: 
 >scripting for Adobe Illustrator error (From: Jake Rowlands <email@hidden>)
 >Re: scripting for Adobe Illustrator error (From: Jake Rowlands <email@hidden>)

  • Prev by Date: Re: scripting for Adobe Illustrator error
  • Next by Date: Re: scripting for Adobe Illustrator error
  • Previous by thread: Re: scripting for Adobe Illustrator error
  • Next by thread: Re: scripting for Adobe Illustrator error
  • Index(es):
    • Date
    • Thread