ScriptUI iconbutton in Illustrator CS5 - easy?

Hi all

I'm doing this script very simple work in Illustrator CS5, but I get the following error:

509 error: Invalid image data

Line: 4

-> w.add ("iconbutton", the undefined, f); one

The code is:

var l is new window ('dialogue');.

w.orientation = "row";

var f = file ('ai.jpg')

w.Add ('iconbutton', the undefined, f); one

w.Show ();

I tried with .ico, .png, .jpg, all with the same error.  Have been looking around for examples and tuts and I can not find anything wrong with my code.

I apologize if this is a stupid question =)

your filepath is unvalid, isn't it?

try to put the icon on the folder on the desktop image and replace it with

var w = new Window ("dialog");
w.orientation = "row";
var f = File ("~/Desktop/ai.jpg")
w.add ("iconbutton", undefined, f );
w.show ();

Tags: Illustrator

Similar Questions

  • Hi, my illustrator CS5 freezes at startup. It was working properly until last Friday, now I can't open it. can someone help me?

    Hi, my illustrator CS5 freezes at startup. It was working properly until last Friday, now I can't open it. can someone help me?

    Leo,

    You can try the list (5) being less likely).

    The following is a general list of things, try when the question is not in a specific file, and when it is not caused by problems with opening a file from external media. You tried/made some of them already; 1 and 2) are easier for temporary strangenesses and 3) and 4) specifically preferences might be corrupt); ((5) is a list in itself and 6) is the last resort.

    If possible / there is, you must record a current work first, of course.

    (1) close Illy and open again.

    (2) restart the computer (you can make up at least 5 times);

    (3) close Illy and press Ctrl + Alt + Shift / Cmd + Option + shift during startup (easy, but irreversible);

    4) move the folder (follow the link with this name) with closed Illy (more tedious but also more thorough and reversible), for CS3 - CC you can find the file here:

    https://helpx.Adobe.com/Illustrator/KB/preference-file-location-Illustrator.html

    5 look through and try the relevant among the other options (click on the link with that name, item 7) is a list of the usual suspects among other applications which can disturb and confuse Illy, point 15) applies to the maybe CS5, CS6 and CC);

    Even worse, you can:

    (6) (check the box to delete the preferences), run the cleanup tool (if you have CS3/CS4/CS5/CS6/CC) to uninstall and reinstall.

    http://www.Adobe.com/support/contact/cscleanertool.html

  • Illustrator CS5.1 crashing on Start Up

    I have problems with Illustrator CS5.1, which seems to be crashing when starting upwards. Everything was working fine a few days ago. I did recent updates or made any changes to my mac, it just happen randomly tonight. When you open the app, I get to the screen that reads 'initializing' orange start-up. The spinning clock appears, immediately followed by the spinning beachball. Subsequently the application "unresponsive" and then I have to do a force quit. I restarted my mac several times with no luck! All of the other creative suite applications are working well. Any help would be appreciated! Thank you!

    Charlotte,

    (Try the list of 3) or 4); I think you can skip 5) in this case.

    The following is a general list of things you can try when the question is not in a specific file and when it is not caused by problems with opening a file from external media, see below. You tried/made some of them already; 1 and 2) are easier for temporary strangenesses and 3) and 4) specifically preferences might be corrupt); ((5) is a list in itself and 6) is the last resort.

    If possible / there is, you must record a current work first, of course.

    (1) close Illy and open again.

    (2) restart the computer (you can make up at least 5 times);

    (3) close Illy and press Ctrl + Alt + Shift / Cmd + Option + shift during startup (easy, but irreversible);

    4) move the folder (follow the link with this name) with closed Illy (more tedious but also more thorough and reversible), for CS3 - CC you can find the file here:

    https://helpx.Adobe.com/Illustrator/KB/preference-file-location-Illustrator.html

    5 look through and try the relevant among the other options (click on the link with that name, item 7) is a list of the usual suspects among other applications which can disturb and confuse Illy, point 15) applies to the maybe CS5, CS6 and CC);

    Even worse, you can:

    (6) (check the box to delete the preferences), run the cleanup tool (if you have CS3/CS4/CS5/CS6/CC) to uninstall and reinstall.

    http://www.Adobe.com/support/contact/cscleanertool.html

  • Illustrator cs5.5 not install correctly

    My Illustrator CS5.5 has not installed correctly when I arrived three years ago and never needed it til now. Everything has been installed otherwise ok. I uninstalled then reinstalled... again, which seems ok, but when I open it it times out and I have to force quit. I moved the card in the folder away and it opened ok, so I moved plugins one-by-one backwards and it opened ok but no tool. I think I then tried to reinstall and error loading plugins came listing Art Brush tool.aipCalligraphy Brush tool.aipcolor harmony drop shadow and another8 points. I just need to be able to load and use my illustrator. Thank you

    Andrew,

    (You can try 4) or perhaps rather 6) on the list.

    The following is a general list of things you can try when the question is not in a specific file and when it is not caused by problems with opening a file from external media, see below. You tried/made some of them already; 1 and 2) are easier for temporary strangenesses and 3) and 4) specifically preferences might be corrupt); ((5) is a list in itself and 6) is the last resort.

    If possible / there is, you must record a current work first, of course.

    (1) close Illy and open again.

    (2) restart the computer (you can make up at least 5 times);

    (3) close Illy and press Ctrl + Alt + Shift / Cmd + Option + shift during startup (easy, but irreversible);

    4) move the folder (follow the link with this name) with closed Illy (more tedious but also more thorough and reversible);

    5 look through and try the relevant among the other options (click on the link with that name, item 7) is a list of the usual suspects among other applications which can disturb and confuse Illy, point 15) applies to the maybe CS5, CS6 and CC);

    Even worse, you can:

    (6) (check the box to delete the preferences), run the cleanup tool (if you have CS3/CS4/CS5/CS6/CC) to uninstall and reinstall.

    http://www.Adobe.com/support/contact/cscleanertool.html

  • No sign of the workspace doesn't appear on my illustrator CS5

    Hello

    I have a problem with my Illustrator CS5 when I open the program, nothing appears (apart from when I open a new document and then just the paper of the document is displayed)

    no window, no signs, nothing. I tried to click on windows > on and outside Application Framework does nothing...

    I don't know whats wrong with it I can't seem to find anything anywhere on the internet I hope someone can help me?

    Its literally just a blank white page and Ive clicked on everything on the menu tab at the top to try to get the panels to rise, but nothing happens!

    (Ive Illustrator never used it before, but I know when I bought it it worked.)

    Ella,

    You can start with 3) or 4) and skip step 5), maybe end with 6) below.

    The following is a general list of things you can try when the question is not in a specific file (you tried/made some of them already). 1 and 2) are easier for temporary strangenesses and 3) and 4) specifically preferences might be corrupt); ((5) is a list in itself and 6) is the last resort.

    (1) close Illy and open again.

    (2) restart the computer (you can do that up to 3 times);

    (3) close Illy and press Ctrl + Alt + Shift / Cmd + Option + shift during startup (easy, but irreversible);

    4) move the folder (follow the link with this name) with closed Illy (more tedious but also more thorough and reversible);

    5 look through and try the relevant among the other options (click on the link with that name, item 7) is a list of the usual suspects among other applications which can disturb and confuse Illy, point 15) applies to the maybe CS5, CS6 and CC);

    Even worse, you can:

    (6) uninstall, run the vacuum cleaner tool (if you have CS3/CS4/CS5/CS6/CC), and then reinstall.

    http://www.Adobe.com/support/contact/cscleanertool.html

  • I can't update my programs of Creative Suite 5.  This error... "Adobe Illustrator CS5 15.0.2 updated there was an error downloading this update." Quit and try again later. Error code: U43M1D207 Adobe Pixel Bender Toolkit 2.5 updated... »

    I can't update my programs of Creative Suite 5.  Get these error messages...


    Adobe Illustrator CS5 15.0.2 updated

    There was an error downloading this update. Quit and try again later. Error code: U43M1D207

    Adobe Pixel Bender Toolkit 2.5 update

    There was an error downloading this update. Quit and try again later. Error code: U43M1D207

    CS5 Adobe Extension Manager 5.0 updated

    There was an error downloading this update. Quit and try again later. Error code: U43M1D207

    Just in case you are still interested in a solution, found an easy way to do it. Reset the clock to October 1, 2011 and retry updates. Works like a charm

  • VB, trying to open Illustrator CS5 Illustrator CS6 installed trial

    Greetings Illustrator scripting gurus,

    Looks like the forum script has been very busy lately with just one year ago. Congratulations to all of you who have been answering the questions. I hope to have some time soon to participate more that I have lately.

    So I do not know if I nailed the issue properly in my topic so please allow me to explain. I wrote an application in Visual Basic that interects with Illustrator CS5.1, or at least he did until I installed Illustrator CS6 trial. I'll switch to this version at some point in the future, but for now I still need to use CS5.1. Previously (before installation of the CS6 trial) I just used - CreateObject ("Illustrator.Application") - to create an instance of Illustrator. After you have installed the trial CS6, the current version kept CS6 launches. So I thought - easy enough - so my line now - reads CreateObject (my. Resources.CurrentVersionCS) - where my. Resources.CurrentVersionCS = "Illustrator.Application.CS5". But keep shooting instead of CS5 CS6.

    I gave forums to research a good 'College Try' to try to find the answer before porstiong, but came up empty. Could someone lend some meaning to this for me?

    I thank very you much in advance!

    TT

    It is such a pain... it did not work in mine either until...

    CreateObject ("Illustrator.Application.CS5.1")

    .. .that did the trick

  • Adobe Illustrator CS5 launch

    I downloaded Adobe illustrator CS5 from this link: http://downloads.phpnuke.org/en/download-item-view-y-y-b-a-n-v/ADOBE%2BILLUSTRATOR%2BCS5.htm

    But it does not start automatically. I double-clicked set - up.exe, a massage appeared saying: Installerfailed to initialize. File not found. Please download Adobe Support Advisor to detect the problem. So, I downloaded it but massage still appears. What is the problem? Please help me.

    Possible problem with the site.

    Try to download the trial version of Adobes site CS6:

    Adobe - download free trial version Adobe Illustrator CS6 | Adobe

  • Illustrator CS5 problems

    Hello! I just picked up a new work computer (it's a brand new IMac) and it works great except that it won't save my illustrator documents, which is a problem, since all my work is made of illustrator documents. I tried to uninstall and reinstall the program, but when I went to download Illustrator CS5, I get the following error message:

    'Install' is corrupted and cannot be opened. You must eject the disk image.

    'Install' is on the "DesignStandard_CS5_LS1 - 5.dmg" disk image

    Safari has downloaded this disk image today at 09:34 from trials3.adobe.com.

    My company bought Adobe Creative Suite 5 Design Standard before I started working here and has always the serial number and the drive, but my new IMac is not a hard drive.

    I am at a loss to know what to do, and I need to get back to work! I talked with Adobe support, and they me redirected here. Any help would be greatly appreciated!

    CS6 and previous programs have not been tested and will not be updated to run on Mac El Capitan

    -which means you are trying to use CS6 and earlier at YOUR risk of having problems

    -You can get CS6 and previous programs to install and run, or you can not (some do, some don't)

    -Java https://helpx.adobe.com/dreamweaver/kb/dreamweaver-java-se-6-runtime.html can help

    Install CS5 on Mac 10.11 https://forums.adobe.com/thread/2003455 can help (also for others than CS5)

    -also a TEMPORARY security change https://forums.adobe.com/thread/2039319

    -http://mac-how-to.wonderhowto.com/how-to/open-third-party-apps-from-unidentified-developer s-mac-os-x-0158095 /

    -the guardian https://support.apple.com/en-au/HT202491

  • Adobe Illustrator CS5 can run on Windows 10 laptop

    I want to buy Adobe Illustrator CS5. I have question in mind if it will work on Windows 10 or not?

    You can only buy it used (which is dangerous due to fraud)

    Illustrator CS5 is 32-bit and Windows 10 is a 64-bit OS, unstable kind of compatibility (as appropriate).

    Illustrator CS5 is not officially supported on Windows 10 and there are not too many people in this forum has been to get it to run, so you're basically on the search of your own stuff.

  • Illustrator CS5 install on Mac

    Hi, I am trying to install Adobe illustrator CS5 on my Mac with OS X El Capitan version 10.11.6, operating system but I get the following error message "'Install' is corrupted and cannot be opened. You must eject the disk image. "Can someone help me with this problem? Thank you

    CS6 and previous programs have not been tested and will not be updated to run on Mac El Capitan

    -which means you are trying to use CS6 and earlier at YOUR risk of having problems

    -You can get CS6 and previous programs to install and run, or you can not (some do, some don't)

    -Java https://helpx.adobe.com/dreamweaver/kb/dreamweaver-java-se-6-runtime.html can help

    Install CS5 on Mac 10.11 https://forums.adobe.com/thread/2003455 can help (also for others than CS5)

    -also a TEMPORARY security change https://forums.adobe.com/thread/2039319

    -http://mac-how-to.wonderhowto.com/how-to/open-third-party-apps-from-unidentified-developer s-mac-os-x-0158095 /

    -the guardian https://support.apple.com/en-au/HT202491

  • Illustrator cs5 does not work on windows 10

    Hi all!

    I just installed 10 windows on my computer (I have windows 7), but illustrator does not work, you open the charger, but does not open the program.

    Asus PC Pentium Dual core - Illustrator CS5 32-bit Pc-e

    Photoshop works rather correctly (Photoshop cs5 64-bit).

    I tried from the Panel of troubleshooting Windows compatibility with windows 7 and 8 but nothing.

    Then I tried this procedure - solved: Adobe CS5 does not work in Windows 10 Solutions for cs3, cs4, cs5, cs6 but not yet opened.

    Can someone help me? Thank you very much!

    ArGi

    Hi Argi,

    Exactly as indicated by our MVP, compatibility issues hit blindly and it is not very rare that one of your apps (PS) works in this case well and I is not. Suggest you to upgrade.

    Kind regards

    OM

  • Problems trying to uninstall InDesign CS5.5, Illustrator CS5

    Problems trying to uninstall InDesign CS5.5, Illustrator CS5, the UN-installers do not work, and the cleaning of CC tool does not list them. How can I get these uninstalled? Can I trash manually the folders containing programs?

    Please refer to the steps in

    Uninstall Adobe Creative Suite 5.5 or Creative Suite 5

    Troubleshooting General uninstallation | Adobe Creative Suite 5, Adobe Creative Suite 5.5

    Concerning

    Stéphane

  • where can I download the Middle-Eastern version of illustrator cs5? [Version under volume license]

    Hello

    I have Creative Suite 5.0 and I need to download for my new illustrator CS5 and Photoshop CS5 pc Middle Eastern version.

    I have download Download Adobe Creative Suite 5 products here but after putting my serial number is say that the series not for this product.

    Where can I find the right Version?

    Thank you.

    Hi Iditm13157922,

    I have reviewed your Adobe ID (email address) you used to post here and found you have also contacted us via Chat.

    I also found your serial number in the chat script, I double checked the serial number and it a Volume license of Adobe Illustrator CS 5, hence the link you use to download is not right.

    Volume license installers are available on the link below:

    https://licensing.Adobe.com/

    We invite you to update this discussion in the case where you need help

  • How to submit a file from Illustrator CS5?

    When you send a file Illustrator CS5 how to make sure that when they open the file all related images appear? InDesign has this ability, but I don't see that in Illustrator. More frustrated! Thanks in advance for the help.

    Hi CJ,

    The Package feature is available in Illustrator CS6 and later versions. Please check: Package in Illustrator files

    You can try third-party solutions or visit this link for other options: control in upstream/packing files in CS5

    Kind regards

    OM

Maybe you are looking for