• 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: Brian Christmas <email@hidden>
  • Date: Tue, 07 Jul 2015 16:21:41 +1000

Thanks Shane

I’ve tried that, with the results below.

Regards

Santa


On 7 Jul 2015, at 3:33 pm, Shane Stanley <email@hidden> wrote:

On 7 Jul 2015, at 3:12 pm, Brian Christmas <email@hidden> wrote:

I’ve also had to update to the CC 2015 suite, as when opening a created-with-later-than-CS6-Illustrator-file with Illustrator CS6, you get a message asking if you want to import the document, and the message is untrappable and unaddressable with Applescript, effectively freezing my app.

Are you setting Illustrator's user interaction level property to never interact first?

No. Should I? 

What I really need to do now is cycle through any extra artboards and add barcodes to each. That’s proving difficult.

Ignore selectobjectsonactiveartboard and fitartboardtoselectedart, and do it the old way -- those commands are way too ugly...

Loop through the artboards, get the artboard rectangle of each, from that calculate where to place the barcode stuff, place it, then set the artboard's artboard rectangle to the expanded area.

I’ve been trying exactly that, but the code won’t work.

I’m using a _javascript_ to set the active dartboard on each loop

tell application "Adobe Illustrator"
tell document 1
set p to 2.01
set artBoardCount to count of artboards
end tell
repeat with eachArtBoardCounter from 1 to artBoardCount

try
  set eachArtBoard to eachArtBoardCounter - 1
set p to 2.1
my doFoo(eachArtBoard) — _javascript_ call
set p to 2.13
do shell script ("sleep 1")
set p to 2.6
set bb to artboard rectangle of artboard eachArtBoard — Fails!
etc, etc.

printIllustrator CC 2015 
Adobe Illustrator got an error: Can’t get artboard 0. (or 1)
number -1728 p = 2.6

Also tried within 'tell document 1'



on doFoo(theArtboard)
tell application "Adobe Illustrator" to tell document 1
do _javascript_ ("app.activeDocument.artboards.setActiveArtboardIndex(" & theArtboard & ")")
end tell
end doFoo

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
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: Shane Stanley <email@hidden>
    • Re: Requesting help with illustrator CS6
      • From: Shane Stanley <email@hidden>
References: 
 >Requesting help with illustrator CS6 (From: Brian Christmas <email@hidden>)
 >Re: Requesting help with illustrator CS6 (From: Stan Cleveland <email@hidden>)
 >Re: Requesting help with illustrator CS6 (From: Brian Christmas <email@hidden>)
 >Re: Requesting help with illustrator CS6 (From: Shane Stanley <email@hidden>)

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