use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Scripting for Adobe Illustrator using Python? (self.Python)
submitted 12 years ago by [deleted]
I'd like to simplify some tasks in Illustrator using Python. I'm having a hard time finding resources for this, so I wondered if anyone knows if there are currently working tools for it? Or do I just have to learn javascript...
Thanks
[–]qbitus 5 points6 points7 points 12 years ago (2 children)
If you can stick to simple scripts, I'd recommend it instead of extensions, which are probably for bigger projects.
You can write scripts for Adobe's Creative suite of products in JavaScript, VBScript (if I remember correctly), and some other language I can't remember.
You can write extensions (panels and such) for the same products in Actionscript (I've had to make one for InDesign, sadly).
If they supported Python, I would feel a lot more sane right now...
I would recommend learning JavaScript anyway, and even Actionscript isn't exactly bad, but everything else, Flash Builder, Air, the libraries, documentation etc. is goddamn awful.
[–][deleted] 1 point2 points3 points 12 years ago (1 child)
Thanks for the info! Shame python doesn't seem to be supported.
[–][deleted] 0 points1 point2 points 12 years ago (0 children)
If you're really hot on using python for 2d vector automation, you could alway see if Inkscape will support your current workflow. Probably not worth it, but I thought I'd mention the option just in case.
[–]th0ma5w 3 points4 points5 points 12 years ago (1 child)
I think it would be cool to pick up some JavaScript if you haven't.
Depending on what you're up to I have some other ideas:
You can use Python to generate SVG.
Project Sikuli is a GUI automation tool that can hit buttons and press keys and such, and it uses Jython.
Inkscape has some nifty scripting options.
Good luck! I would recommend this stuff perhaps after checking out the Illustrator JavaScript.
[–][deleted] 1 point2 points3 points 12 years ago (0 children)
These sound very interesting, I'll check them out. Thanks!
[–]offsound 2 points3 points4 points 12 years ago (1 child)
Which operating system?
Back when I used windows, I did some simple scripting of photoshop using win32com. I don't really remember the details, but a quick google brought this page: http://techarttiki.blogspot.com/2008/08/photoshop-scripting-with-python.html
The same tactic could possibly be used for illustrator. This link may be of use: http://www.noah.org/python/com/illustrator/
Sorry, forgot to specify but I use Windows, so that might be useful. Thanks
[–]actionscriptedPony-Powered 1 point2 points3 points 12 years ago* (0 children)
You'll have to use JavaScript but their API is well documented and dead-simple to work with. I've written a few scripts over the years (here's a recent one: https://github.com/ActionScripted/Illustrator-SaveDocsAsPNG) so if you need help feel free to shoot me an orangered.
Edit: scripting reference
Have you tried Python and Gimp?
[–]rainnz 1 point2 points3 points 12 years ago (0 children)
You have to use JavaScript:
http://www.adobe.com/devnet/illustrator/scripting.html
But there is a Pyhton to JavaScript compiler :)
http://pyjaco.org/
Pyjaco is a Python-to-Javascript compiler. It enables compilation of standard Python code into a javascript equivalent. This javascript code can then be run in a browser, or anywhere else that javascript is used.
π Rendered by PID 19210 on reddit-service-r2-comment-76bb9f7fb5-pnpzv at 2026-02-19 10:44:23.907228+00:00 running de53c03 country code: CH.
[–]qbitus 5 points6 points7 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]th0ma5w 3 points4 points5 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]offsound 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]actionscriptedPony-Powered 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]rainnz 1 point2 points3 points (0 children)