Adobe illustrator CS scriptsing problem.

So i dived into AppleScripting because I have a few hundred stills I ran a Live Trace Batch on. But since Bridge does not allow you to change the Art Board properties before the batch. I need to program a script that can go in and change the Art Board properties. I was hoping to use Automator with Applescript to Batch resize all my stills. So far this is what I have written for the Applescript.
tell application "Adobe Illustrator"
set properties to {width:640, height:480}
end tell
end
I thought this would be straight up easy but i got an error.
set properties to {width:640, height:480}
"Adobe Illustrator CS2 got an error: Can't set properties to {width:640, height:480}."
So it seems I can't set the properties on the art board. Any suggestions or clues or anything would be extremely helpful.
I would also like to add that I wrote a script to make a new document.
tell application "Adobe Illustrator"
if (document 1 exists) then
make document with properties {width:1920, height:1080}
end if
end tell
Which works fine. What I don't understand is why it wont change the Artboard properties of an existing document that I have opened with my first script.

Document page size and colour mode are 2 features that I have submitted a request to be changed from read only properties with adobe hopefully it may make a future release of this application. For the time being my work around has been to use some UI scripting. I don't know if this will be of any use to you but you could give these a try.
tell application "Illustrator CS"
activate
tell application "System Events"
tell process "Illustrator CS"
key down command
key down option
keystroke "p"
key up command
key up option
delay 1
keystroke tab
keystroke "300" --Your measurements in ruler units… not points as the rest of illustrator scripting
keystroke tab
keystroke "300" --Your measurements in ruler units… not points as the rest of illustrator scripting
keystroke return
end tell
end tell
end tell
tell application "Illustrator CS"
activate
set docRef to the current document
tell docRef
if color space of docRef is not CMYK then
tell application "System Events"
tell process "Illustrator CS"
tell menu bar 1
click menu item "CMYK Color" of menu "Document Color Mode" of menu item "Document Color Mode" of menu "File"
end tell
end tell
end tell
end if
end tell
end tell
--

Similar Messages

  • Adobe Illustrator CS5 groups problem.

    I work under windows xp using Adobe Illustrator CS5, and the problem is that when I group a certain objects in an illustration and save that illustration as an *.ai file, then send it to a client that uses MAC the groups are getting jumbled up. The client even sent me a screenshots, and the groups are REALLY jumbled up.
    Some objects that i originally grouped together are not in the same group any more, some objects from a certain group that, somehow became part of some other group.
    I build my images on one layer with several sublayers.
    Can building illustrations with every single group on a separate layer solve this problem? Am I missing something? This is the first time I encounter this kind of problem. Please help.

    I don't ever recall this occurring but it sounds like a corruption to me. But I do not know if is on your end or your clients end.
    I use a mac and am will to open your file and send you screen shots so you can compare, if I open it fine then the problem is probably with your client?
    But they might not like to here this.
    You can also try sending them a pdf or a .ps file they can open the .ps file directly in AI without distilling it.

  • Adobe Illustrator 10 Installation Problem

    Ok so I now own a new Macbook and just tried to install the Adobe Illustrator 10 but it just crashes and fails when I try to install it. I know the disks are fine because I have installed it on my Quicksilver G4 with the Tiger as well, have never had a problem installing till getting this new Macbook.
    I get to the part of installing the serial key then it just crashes. As well my G4 does not have the Classic environment either and still installs perfectly.
    Any ideas as to why it will not work?
    Thanks

    You don't understand my point. If there were no Intel based chip, installation would be fine was what I am getting at. Your both actually correct though, I'm blaming the wrong company, my apologies to Microsoft, the 2 members who posted regarding Microsoft is not at fault are 100% correct. But we will definitely not see a patch from Adobe and since PS7 was a completely new cocoa app but Illustrator was merely ported over, hence the reason PS7 installs perfectly.
    But at least the migration wizard does a good job an actually installs Illustrator 10 and it works perfectly.

  • Pasting from Microsoft Word into Adobe Illustrator...problem

    Hello gang, I'm a professional comic book letterer and I recently decided to upgrade from using TextEdit to using Microsoft Word for all of my script copy pasting that I have to do.
    In TextEdit when I copy a page from a comic script it will then paste into Adobe Illustrator beautifully. Retains line breaks and formatting really well (doesn't remember bolds or italics, but oh well). However, when I paste from the Word version of the same script, all the line breaks disapear, leaving me with a big square block of text, making it hard for me to easily find dialogue to use on the page.
    Does anyone have a solution for this? Is this a known issue with Word? I can't seem to find anything about it on the net.
    I'm using Word 11 for Mac version 14.2.1 I think it is and Adobe Illustrator CS3 for Mac.
    Running Snow Leopard on a MacBook Pro for what that's worth. Verion 10.6.8
    thanks,
    -- J

    When I tried to place a 12 pages Word doc in Illustrator CS5, the same way told by John_Danek, I could see a small + sign on the bottom right corner of the text box. If you double click that text box, you can see page 2 of the doc. Similarly, you can view all the pages of your Word doc in Illie.
    OR
    If save your content in a PDF and then place the PDF in Illustrtaor. This will help you retain formatting as well as will allow you selecting page numbers of your document you want to place.

  • Adobe Illustrator CS5 Language Problem

    Hi there, I'm trying to use different  languages in Illustrator for text labels but when I paste the Korean/Arabic/other language into the text box it all just appears as a bunch of squares. Can anybody help me make the text appear as it should?

    Platform? Oh you mean Operating System, I'm using Windows 7 Professional - 64 bit. I'm able to paste the korean text in with one of the symbol fonts selected from the list but I can't seem to find any options that will accept arabic or punjabi. I tried Adobe Arabic and Traditional Arabic regular (they sound like they should work) but they didn't work and there doesn't seem to be any options written in Arabic. I've tried adding these two languages to my keyboard input through the control panel --> clock, language, and region --> region and location --> keyboards and languages --> change keyboards then adding the languages there and while I can type in those languages in open office word, notepad and online Illustrator refuses to accept the text. I thought that with this being the latest version (CS5) I wouldn't have any problems like this

  • Adobe illustrator CC error while installing

    Hi Guys
    i just downloaded Adobe illustrator CC
    the problem is while its installing it says error
    "Installation completed though some optional components failed to install correctly (6)"
    and this is the log
    Exit Code: 6
    Please see specific errors below for troubleshooting. For example, ERROR: DF045, DS003,D ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 7 error(s)
    ----------- Payload: Adobe CSXS Extensions 4_4.0.2_AdobeCSXSExtensions4-mul 4.0.2.0 {81036849-4B6D-4CB8-8D47-31222F3540E3} -----------
    ERROR: DS003: Installer package might be corrupt. Re-download the installer and try again. (Cannot extract 'C:\Program Files (x86)\Common Files\Adobe\CEPServiceManager4\\Adobe\AdobePatchFiles\{81036849-4B6D-4CB8-8D47-31222F3540 E3}.zip'. Error: Error 0 )
    ----------- Payload: Adobe CSXS Extensions 4_4.0.1_AdobeCSXSExtensions4-mul 4.0.1.0 {0F60BFC9-8764-4554-B222-2B55089F395D} -----------
    ERROR: DS003: Cannot zip 'C:\Program Files (x86)\Common Files\Adobe\CEPServiceManager4\\Adobe\AdobePatchFiles\{0F60BFC9-8764-4554-B222-2B55089F39 5D}'. Error: Error 0
    ----------- Payload: ShareOnBehance_1.0.1_ShareOnBehance1-mul 1.0.1.0 {DE9B086C-67C4-4EB7-9786-9531AD8FEAE8} -----------
    ERROR: DS003: Installer package might be corrupt. Re-download the installer and try again. (Cannot extract 'C:\Program Files (x86)\Common Files\Adobe\CEPServiceManager4\\Adobe\AdobePatchFiles\{DE9B086C-67C4-4EB7-9786-9531AD8FEA E8}.zip'. Error: Error 0 )
    ----------- Payload: ShareOnBehance_1.0.1_ShareOnBehance1-mul 1.0.1.0 {DE9B086C-67C4-4EB7-9786-9531AD8FEAE8} -----------
    ERROR: DS003: Cannot zip 'C:\Program Files (x86)\Common Files\Adobe\CEPServiceManager4\\Adobe\AdobePatchFiles\{DE9B086C-67C4-4EB7-9786-9531AD8FEA E8}'. Error: Error 183 Cannot create a file when that file already exists.
    ----------- Payload: Adobe CSXS Infrastructure 4_4.0.1_AdobeCSXSInfrastructure4-mul 4.0.1.0 {9EEE0750-879F-4EA8-89F7-329C866B572B} -----------
    ERROR: DF045: File corruption detected. Re-install the product & then apply the patch again. (Can not repair file "C:\Program Files (x86)\Common Files\Adobe\CEPServiceManager4\lib\ServiceManager-Launcher.dll")(Seq 5)
    ERROR: Failed to apply patch to file at "C:\Program Files (x86)\Common Files\Adobe\CEPServiceManager4\zlib1.dll", Patcher tool returned error: 32769(Seq 3)
    ERROR: DW063: Error rolling back command ARKPatchCommand(Seq 3)

    I tried this methods but it doesn't work
    So now I am trying to Uninstall It from Control panel then Update from creative Suite App For Windows
    Wish it work

  • Adobe Illustrator crash problems

    Hey everybody,
    Having problems with Illustrator on my MBP. Had an older version for several months (pretty sure it was version 10). Worked OK except for some random crashes every now and again. Then crashes started happening more frequently until I could no longer open the program.
    Removed version 10 and tried installing CS2 version of illustrator. Installs fine but I've never been able to open it. Crashes every time during launch. Have tried making a new user and installing it there. Same result. Deleted all Version Cue files I could find and reinstalled. Same result.
    Have all the latest updates from Apple including Quicktime 7.1.2
    Below is the first part of the crash log (not sure how much of it to copy in). Thanks for any help.
    John
    Date/Time: 2006-07-21 15:20:21.504 -0700
    OS Version: 10.4.7 (Build 8J2135)
    Report Version: 4
    Command: Adobe Illustrator
    Path: /Applications/Adobe Illustrator CS2/Adobe Illustrator.app/Contents/MacOS/Adobe Illustrator
    Parent: WindowServer [367]
    Rosetta: Yes
    Version: 12.0.0 (12.0.0)
    PID: 1523
    Thread: 0
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNPROTECTIONFAILURE (0x0002) at 0x00000007
    Thread 0 Crashed:
    0 <<00000000>> 0xb56a2f4f 0 + -1251332273
    Thread 1:
    0 com.adobe.illustrator 0xb81f326b strchr + 72
    1 com.adobe.illustrator 0xb818ebf6 pthreadcondwait + 3114
    2 com.adobe.illustrator 0xb812ae90 catchexception_raise_stateidentity + 320
    3 com.adobe.illustrator 0xb812a3ba CallPPCFunctionAtAddressInt + 175496
    4 com.adobe.illustrator 0xb812a2b1 CallPPCFunctionAtAddressInt + 175231
    5 com.adobe.illustrator 0xb812af8e catchexception_raise_stateidentity + 574
    6 com.adobe.illustrator 0xb81c438c pthread_create + 1124
    Thread 2:
    0 com.adobe.illustrator 0xb80f80af spinlockwrapper + 84855
    1 com.adobe.illustrator 0xb81232a8 CallPPCFunctionAtAddressInt + 146550
    2 com.adobe.illustrator 0xb8125d45 CallPPCFunctionAtAddressInt + 157459
    3 com.adobe.illustrator 0xb809a35e 0xb8000000 + 631646
    Thread 3:
    0 com.adobe.illustrator 0xb80f7f5e spinlockwrapper + 84518
    1 com.adobe.illustrator 0xb8111088 CallPPCFunctionAtAddressInt + 72278
    2 com.adobe.illustrator 0xb808192e 0xb8000000 + 530734
    3 com.adobe.illustrator 0xb807b116 0xb8000000 + 504086
    4 com.adobe.illustrator 0xb808f47a 0xb8000000 + 586874
    5 com.adobe.illustrator 0xb80e482c spinlockwrapper + 4852
    Thread 4:
    0 com.adobe.illustrator 0xb80f7eec spinlockwrapper + 84404
    1 com.adobe.illustrator 0xb8110eb0 CallPPCFunctionAtAddressInt + 71806
    2 com.adobe.illustrator 0xb808192e 0xb8000000 + 530734
    3 com.adobe.illustrator 0xb807b116 0xb8000000 + 504086
    4 com.adobe.illustrator 0xb808f47a 0xb8000000 + 586874
    5 com.adobe.illustrator 0xb80e482c spinlockwrapper + 4852
    Thread 5:
    0 com.adobe.illustrator 0xb80f7eec spinlockwrapper + 84404
    1 com.adobe.illustrator 0xb8110eb0 CallPPCFunctionAtAddressInt + 71806
    2 com.adobe.illustrator 0xb808192e 0xb8000000 + 530734
    3 com.adobe.illustrator 0xb807b116 0xb8000000 + 504086
    4 com.adobe.illustrator 0xb808f47a 0xb8000000 + 586874
    5 com.adobe.illustrator 0xb80e482c spinlockwrapper + 4852
    Thread 0 crashed with i386 Thread State:
    eax: 0x00000001 ebx: 0xb80e40d4 ecx:0x82001400 edx: 0xb500bbd4
    edi: 0xb827c66c esi: 0xb827c648 ebp:0x8200d380 esp: 0xb7fffabc
    ss: 0x0000002f efl: 0x00010293 eip:0xb56a2f4f cs: 0x00000027
    ds: 0x0000002f es: 0x0000002f fs:0x00000000 gs: 0x00000037
    MacBook Pro 2.0 GHz 1GB DDR2 SDRAM   Mac OS X (10.4.7)   Macintosh Color Classic

    Hi Ken,
    Thanks for the suggestion. I did as you said but could not find a process called "translated" in the activity monitor.
    Were you having the same type of problem with Illustrator (crashing on startup)?
    I should also say that I made another attempt at installing Illustrator CS2 after deleting every Adobe related file on my computer (including Photoshop CS which I had been using without issue).
    This improved things a bit in that CS2 no longer crashes immediately as it starts up but instead makes it at least part of the way through the initialization process before crashing (can get it to go all the way through "updating fonts"). But it still never makes it all of the way through start up.
    Also, since my last post I've tried opening it after Safe Booting and this doesn't work either (actually it doesn't even get as far as detailed above).
    What do you all think? I'm thinking that a clean reinstall of the OS might be the only option left.
    John
    MacBook Pro 2.0 GHz 1GB DDR2 SDRAM Mac OS X (10.4.6) Macintosh Color Classic

  • Problem with installing adobe illustrator cs6?

    I am having trouble installing adobe illustrator cs6.When it gets to 2% it says "the setup encountered an error (37) during install. Please restart the machine and try again." I tried restarting my computer but it still shows that message.
    Also at the beginning it said "Installer has detected that a machine restart may be pending.It is recommended that you quit the installer, restart and try again" and i clicked ignore and continue.
    When i installed adobe photoshop cs6 last year it was successful.

    follow these steps to clean your computer and reinstall, http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

  • Loading EMF and Conversion Problem from EMF to SVG in Adobe illustrator CC

    Hello,
    I have downloaded trial version of adobe illustrator CC.
    I am importing .emf file into adobe illustrator CC. it loads an emf file properly with its content but my emf file contains some lines(--------) also..imported emf file doesn't show any line.
    My main motive is convert this emf file into svg file. but as because my emf file is not imported properly, so as with SVG.
    Ask one more important thing, why converted svg file from emf appears to be having different fonts and margins.
    Kindly help

    The problem is once I finished with the art, I deleted the template, and there's a big art board there and it's in the way, I don't want it to affect the size and dimensions of the channel art. I just need it to be 2560px by 1440px wide, is there any way I can save it exactly like that?
    Not sure what you mean by "it's in the way."
    The size of the artboard doesn't necessarily affect the "size of the art." (There are some workflow scenarios where the artboard size is recognized and utilized, but for the most part it is simply a 'passive' boundary.)
    If your art is 2560px X 1440px, and you want the artboard to match, double-click the artboard tool and choose "Fit to Artwork Bounds" at the top of the preset menu.

  • I am facing problem with adobe illustrator cc in windows 8,it closes automatically after few secons,please help

    I am facing problem with adobe illustrator cc in windows 8,it closes automatically after few secons,please help
    [ link removed by moderator ]

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • Problem with another application after install Adobe Illustrator CC 2014

    Hello, I write you because we don't know how to fix this problem.
    We've encountered a problem after install that software in our corporative computers, for some reason the default font of Lotus Notes changes after install Adobe Illustrator.
    It changes Calibri font by The Times New Roman font. Those problems have been detected in the 100% percent of tests made. (Uninstalling Adobe and/or Lotus, installing the software in many PCs and suffer the same issue).
    There is a compatibility problem between those programs ?
    Thank you in advance for your help.

    d,
    I am afraid Illy is reluctant to recognize Calibri as a (proper high quality) font and therefore replaces it whenever she comes across it.
    Have you had the same issue with the original CC or even earlier?

  • Ps CS6 Problem: Incorrect rendering of pasted Adobe Illustrator vector objects

    Ps CS6 v13.0.1
    OS X 10.6.8
    Problem: Ps CS6 incorrectly renders vector objects pasted from Adobe Illustrator. CS5.1 does not exhibit the problem.
    Below is screenshot of artwork in Illustrator and which is copied to clipboard, followed by screenshot of "Paste as Smart Object" in Ps CS5.1 then screenshot of same paste in CS6. "Paste as Pixels" gives identical good rendering in CS5.1 and poor rendering (gray pixels which should be pure white in this example) in CS6. This is repeatable with other artwork.
    Several weeks ago there was a complaint in this forum that Photoshop CS6 poorly renders vector artwork that is pixel-aligned in Illustrator. The Adobe response was that Photoshop is correct. Strange that CS5.1 can render pasted vector artwork perfectly and only CS6 makes a mess.

    What's the explanation for the following sequence?
    1. Paste as Smart Object, at moment after pasting and before clicking the commit icon (no transform was made) in options bar. The object is rendered pixel-perfect.
    2. After the commit. The object is poorly rendered with gray pixels which should be white.
    3. Press Cmd+T for transform mode. The object is rendered pixel-perfect again.
    4. After canceling transform mode, the object is poorly rendered again.

  • Is anybody having problems with Adobe Illustrator CS-5

    Using Adobe Illustrator CS-5 the print option under the FILE window is no longer available.

    Hi there, yes this is unusual. I have illustrator CS5 aswell however there is a print option on mine. What happens if you try using the print short cut? (Command 'p').
    Is this a new problem or have you updated etc?

  • Many problems with my Mac since I downloaded Adobe Illustrator.

    Hi,
    I have had my MacBook Pro for almost two years.  And have never experienced these problems.  Here are the specs in case you would like to know.
    - Mac OS X Version 10.7.5
    - Processor 2.3 GHz Intel COre i5
    - Memory 4 GB 1333 MHz ddR3
    - I also use an external monitor (HdTV via HdMI cable)
    - I have USB powered wireless speakers, and a USB Logitech mic attached as well via a 4 input USB hub (I keep all of these attached all the time because the cords drop below my desk and it is easier to leave them pluggled in.
    - Also I have a wireless Apple Blutooth keyboard that I have setup an use
    Here are all the idfferent problems I have been experiencing:
    For some reason, ever since I downloaded and installed Adobe Illustrator CS6, my computer has been having the following problems.
    Beeping constantly when I am in the program "finder"
    When I leave my browser (chrome), my mac continuously types the letter "d".  (Which I have experienced multiple times while typing this) [however it seems to work fine if I am typing while inside "chrome"
    Cursor continues to flash no matter what program I am in
    When I pull down a menu bar tab (regardless of what program), it highlights different buttons and flashes rapidly between them. (BUT I can still click the desired option without a problem)
    When a type the letter "d" in a word, the letter seems to not register as quickly as other letters.  For instance, when I type the word "idscussion" <-- that happens.  But if I type it more slowly like this --> discussion: it works absolutely fine.  Obviously this would be a problem because it is not my edsired typing s...p...e...e...d.
    When I right click, a menu will show up but then go away immediately (in other words it will flash)
    And I have checked for any crumbs under my keys but there is absolutely nothing because I have a keyboard cover that protects from things like that.
    I'm not sure if Illustrator has anything to od with this problem.  But the problem started the second after it was installed.  Maybe it's just coincidential.
    An dthank you so much!  I know this is a lot so I am very grateful to anyone who can tackle this problem. 
    I have also googled for other people with a similair problem but all the solutions that were given have not worked.  ie. unplugging my wireless mouse dongle.
    Thanks so much!
    Ben

    *…when I try to update it times out and won't update my software.*
    I assume you mean when running Software Update. If so, then you have network connection issues, and I recommend that you manually download the items SU lists from the Downloads link above and install them yourself.

  • Drag and drop to Adobe Illustrator CS4 problem

    Hi! It's about one week that I've got a problem with drag & drop images (and also other files) in Illustrator.
    The problem is persistent for every kind of file and also when i drga&drop from Adobe Bridge i've got the same problem.
    Please, someone has an idea about "why"?
    There's in Illustrator an option or a setting that I can verify to solve this question?
    Thank you in advance!

    Ok, thank you:
    - SO: Windows Vista (last Service pack / update)
    - Ai CS4 rel. 14.0.0
    - all file types... i.e. : if I drag&drop a .jpg file from desktop to AI... nothing! Also when I D&D an image from Bridge... All others programs work perfectly.
    That's all... I've also verified parameters & C. and search on the web for a solution, but I've found nothing of relevant...

Maybe you are looking for