473,699 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

scripting illustrator

16 New Member
Hello
is anyone familiar with using javascript with adobe illustrator

i can't seem to find a way to place an image file into an Adobe illustrator file from within the javascript code

i would appreciate any help in this area

thank you
Oct 21 '07 #1
4 2228
acoder
16,027 Recognized Expert Moderator MVP
Is this JavaScript similar to the JavaScript used in browsers or is it a subset?

Post your code.
Oct 21 '07 #2
tussom
16 New Member
I don't know here's some of the code coz it's too long

Expand|Select|Wrap|Line Numbers
  1. var thisDoc = app.activeDocument;
  2. var artLayer = thisDoc.layers.add()
  3. app.defaultStroked = false;
  4. app.defaultFilled = true;
  5.  
  6. var blueRect = artLayer.pathItems.rectangle( 595, 263.741, 153.03, 339.825);
  7. var darkBlueRect = artLayer.pathItems.rectangle( 595, 372.831, 43.94, 340.156);
  8. var border = artLayer.pathItems.rectangle( 595, 190, 226.771, 340.156);
  9. var rect1 = artLayer.pathItems.rectangle( 577, 215, 201.5, 1);
  10. var ellipse1 = artLayer.pathItems.ellipse( 579.5, 211, 6, 6, false, true );
  11. var ellipse2 = artLayer.pathItems.ellipse( 568, 265, 6, 6, false, true );
  12. var ellipse3 = artLayer.pathItems.ellipse( 513, 265, 6, 6, false, true );
Oct 22 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
Have you checked the documentation?
Oct 22 '07 #4
tussom
16 New Member
yes i checked them but i couldn't find the line of code that directly inserts the image.
Oct 22 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

33
2727
by: Quest Master | last post by:
I am interested in developing an application where the user has an ample amount of power to customize the application to their needs, and I feel this would best be accomplished if a scripting language was available. However, I want to code this application in Python, and I have not yet heard of an implementation of another scripting language into Python. An example of what I mean is this (an implementation of Lua into Ruby -- which I'd...
0
1788
by: adder | last post by:
I would like to create a script that can export ai-files to jpg-files using the export function available in Adobe Illustrator. Can someone tell me how to dispatch the illustrator com-object to make this possible and possibly provide me with some tips on how to accomplish this?! Thanks in advance All
0
1573
by: fiona | last post by:
Catalyst Releases Scripting Editions of SocketTools Client and server-side development for Active Server Pages and PHP. Yucca Valley, CA, May 25, 2005 - Catalyst Development Corp (www.catalyst.com) - with over 10 years experience developing Internet components announced that Scripting and Secure Scripting Editions have been added to the SocketTools family of products. The Scripting Editions were designed specifically for client and...
0
3133
by: mgrahm | last post by:
Hi all I would like to create an image map for a website I am working on. A number of years ago I think I think I used a program called Frog-It. I have since upgraded to a new computer a few times. Don't think i have that program any more. In any event I was wondering if I could use Adobe Illustrator or Image Ready to create such an item. Please respond if you can be of help to me. Thanks
1
5626
by: andrewcw | last post by:
I have used System.Management in the past to extract and walk thru drives & check their type. I can also do it with COM's FileSystemObject. Here I am trying to just use the Management Object after using the Directory class... There seems to be a way to load the System Management Object with string path ( 8 overloads ), but every time I try a variation it crashes. Any ideas ? Thanks Scripting.FileSystemObject FSO = new
6
4231
by: prodsd | last post by:
Here is my challenge . I have a new syatem That when I save a Adobe Illustrator file to my desktop it is ok but when I try to move or delete the file I get a error key that is open ??? I never had the problem when I had XP. When I save as a EPS file no problem and I know not to save in the future as a AI file but to clen up the old files ??
2
16170
by: 770ariel | last post by:
i'd be thankfull if someone can help me with this: i get this message when i try to run adobe illustrator CS2 microsoft visual c++ runtime library runtime error! program: ...rator CS2\support files\contents\windows\illustrator.exe
0
1105
by: ch612bunn | last post by:
adobe illustrator cs3 crack
0
1662
by: Natis | last post by:
Hello :) I purchased these this icon sets with the intention to modify them, since they had the vector sources. The thing is that the sources are Flash files which I'm not very related to. I tried exporting them to Illustrator but I keep loosing quality. I don't know which version of flash are the files made in, (I have Flash CS3 and Illustrator CS2). How can I export them in order to keep the quality?
0
8617
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8914
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8884
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7751
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6534
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3057
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.