How to run an action?

Hi all
I'm new to Illustrator scripting. Is there a way to run an anction through "javascript"?.
thanks
A.Hakkim

AYS. HAKKIM wrote:
Could u suggest how to do that in vb?
From the VBScript reference, a method of the Application class:
DoScript(Action as String, From as String [, dialogs as Boolean])
Returns: Nothing
Plays an action from the Actions palette. Note:Use DoScript only if you intend to run your script from an application external to Illustrator, such as the Windows Script Host. Calling DoScript when running a script from Illustrator’s File > Scripts menu may yield unexpected results.
Set appRef = CreateObject("Illustrator.Application")
appRef.DoScript "Opacity 60 (selection)", "Default Actions"
WHILE(appRef.ActionIsRunning)
    WScript.sleep 1000
WEND
msgbox "Done"

Similar Messages

  • How to run javascript through action

    Is it possible to run the javascript file via illustrator action? How?
    Thanks,
    Prabudass

    My ultimate goal is to force a document to only use a specific color library. To do this, I have been using the Live Color options. Of course, the only thing I can do as an action is open the Live Color (recolor artwork) tool. The artist will still have choose certain settings.
    Also, there are specific layers that are locked with objects that need to conform as well. Figured I had to do that with a script. The script unlocks a layer, unlocks any objects on that layer, selects them and recolors them (With a swatch created in the script as well) then locks the object back and then locks the layer. So, the action calls the script for one part, and then the recolor artwork for the rest.
    The hope (plan) was to have this setup for the artist so all they would have to do is run the action.

  • How do I do Photoshop batch (running an action) from Lightroom?

    Images going up on the website get watermarked.  The watermark is 3D, diagonal watermark that run across the entire image and is composed of the image content so it's just slightly visible and doesn't interfere with viewing. It gets implemented via a Photoshop action.
    In Bridge, this is trivial.  Just select the images, and tell Photoshop to batch process them, running the action that does the watermarking.
    How do I do this in Lightroom?

    I followed the above instructions and found a slightly better way.
    When I made my action, I made sure to OPEN a file PS has never open before, then I ran whatever action is within my action, then I SAVED the file (which brings up the save settings dialogue), and you choose whatever settings you want and save.  Then you create the droplet per the instructions above.  The difference is if you use save as for your PS action, it will save another copy of the file and you will have to import the files into LR again, and you would have two set of files (one set from the original LR export, one set from the save as command from the PS action).  If you just use save, it will save directly over the files LR exported, which presumable is already in your LR catelog and you wouldn't have to micro your files as much.
    However, make sure you only run this over new exported files as this is destructive and saves over the exported files.  Also, when you're creating your PS action with the save command, you will save over that file as well, so make sure you have another copy of that file.

  • How to run a recorded action on a folder of images?

    The last time I used Photoshop was in 1998, and things have changed a bit. I'm sure if I had time to read all the documentation I could figure out how to do this, but I'm under an extremely tight deadline and the guy who would normally do image processing is on vacation.
    I have a folder of more than 500 images. I need to change the height, width, and resolution of all of them. I know how to record an action that I can then run manually on open images, but is there any way to run that action on a folder of images without having to open all of them? It could take years if I need to open them before running the action.

    Record that action do not put a save in it. After you have that action saved with no documents open in photoshop use menu  File>Automate>Batch... in the batch dialog point to the action set and action, point source to your folder of images. In desternation use the pull-down menu and choose Save and Close.

  • How to run two Automator actions simultaneously?

    I want to perform two actions at once in an automator applcation, specifically Speak Text and Run AppleScript. I can only figure out how to run one after another. Is there a way to have text spoken as a script is run?

    This is what it looks like:

  • How do I create an Application with Automator that will open files in Photoshop Elements 11 and run an action?

    Here's what I'd really like the Script to do when I select one main folder:
    Look through all the subfolders, find all the PNG files and convert them to TIFFs, replacing the original PNG files.
    Open the converted TIFF files in PSE 11.
    Run an action on them in PSE 11 (which I already created that adds a white fill layer below the TIFF file.)
    Save each file in their original location and Close each file.
    Import them into LR.
    Anybody?  Bueller?  Bueller?
    If that's not possible, I'd love an Automator action that can convert the PNG files to TIFFs that can be viewed in LR 4.4.  If I convert them in PSE 11, LR can view them, but if I convert them using Automator, LR cannot.
    Thanks so much for any help you can provide.
    -Jen

    LabVIEW 7 added a property to get a command line argument. For older versions see http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DA5B56A4E034080020E74861.
    I'm not sure I understand you problem with the Run button. If you set the execution mode to Run When Opened from VI Properties, it should execute once whenever it's called. I think that when building an executable, it changes the property to this if it's not already set. If the application does not have this set, it will not be running at all. I'm assuming that you are talking about the Run button on the toolbar and not a run Boolean that you've created on the front panel.
    Since you have the app builder, your other option is to create a DLL. If you can call a DLL in Matlab, then that would probably be simpler.
    Message Edited by Dennis Knutson on 11-28-2005 02:46 PM

  • How to schedule an action in Acrobat X to run at night?

    I am trying to run optimize action on a folder every night or so but i cant find a way to do it.
    Hopefully it will run without having to start Acrobat itself.
    Thanks

    Acrobat isn't designed to work that way. Actions need to be triggered by a user while.

  • Need to Run Photoshop Action on every image in Export!

    I would really save a ton of time if I could select a specific PS action to run automatically as a last step in the export process, like Image Processor script, only populated with the current set being developed.
    The process would go like this: Lightroom develops raws, then communicates with photoshop by opening it, if not already open, and then running the action(s) identified in the export settings, without any user input. For example, process raws to jpgs then run a smart sharpen action on the newly created folder of images.
    Thanks! And let me know if anyone has written a script to do this feature yet. -Dave

    Figured out how to get rid of the save as prompt. This may cause confusion with others out there, so I'll post it.
    1. You have to record a "save as" step in your action (I also recorded the "close" step), dont worry about the name here, just set the JPG setting you want in your action.
    2. Then when you create your droplet, the key is to check the override save as box.
    The combination of these two steps will get PS to sub your original filename/location recorded in your save as step in the action with the current filename (variable) the loop in the droplet passes.
    Doing only one or the other will get you a JPG prompt. Do both together. The logic here confused me. I would rather be able to specify the JPG settings in the Droplet dialog and have that written to the script without recording any save as step in my action. (like Image Processor script)

  • How can i set action on UITaBar and get event from that

    Hi All,
    I m doing one apps in which i have to add three UITabBarItem and this is UITabBarSystemItem.
    Now i cannot understand that how can i set action and get event from the?
    And how can i set various views on three tab bar item.
    I have to use UITabBar means i have to use UINavigationController+UITabBar
    My code id
    tabBar =[[UITabBar alloc] initWithFrame:CGRectMake(0,370,320,50)];
    tabBar.backgroundColor =[UIColor blackColor];
    UITabBarItem *search =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemSearch tag:0];
    UITabBarItem *recents =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemRecents tag:1];
    UITabBarItem *favorites =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorit es tag:2];
    tabBar.items =[[NSArray arrayWithObjects:search,recents,favorites, nil] retain];
    tabBar.selectedItem = search;
    [myView addSubview:tabBar];
    [tabBar release];
    I add a action:
    UITabBarItem *search =[[UITabBarItem alloc] InitWithTabBarSystemItem:UITabBarSystemItemSearch tag:0 action:@selector(select:)];
    So it error: Warning -no'InitWithTabBarSystemItem:tag:action:' method fount
    So any can help me regarding it?

    Thanks RickMaddy very much.
    I read and do with sample at the View Controller Programming Guide . But when run it only view TabBar with title but haven't got any TabBarItem on it. I searched a few example about TabBar and i did, but i want do a form with a button then press on button it view a form with 2 TabBarItem on TabBar and press each TabBarItem will show correlative form page 1, page 2.
    UITabBarController *tabBarControl = [[[UITabBarController alloc] initWithNibName:nil bundle:nil] autorelease];
    tabBarControl.title = @"Tab bar";
    ViewControl1 *view1 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl1" bundle:nil] autorelease];
    ViewControl1 *view2 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl2" bundle:nil] autorelease];
    tabBarControl.viewControllers = [NSArray arrayWithObjects:view1,view2,nil];
    [self.navigationController pushViewController:tabBarControl animated:YES];

  • How to apply multiple actions on a single file in one go to generate multiple watermarked pdfs?

    usually i need to create many watermarked datasheets for different customers using a single base pdf. currently i run individual actions for individual customers on the same file which means i have to runs 10s of individual actions every time i have  new source file. can i make a single action or a script which will take a single source file, run multiple actions(~15-20) for watermarks and save these files separately? basically what i need is instead of running many individual actions i run a single action/script to make it automatic. if yes, how to do so?

    Hi Monte,
    You can achieve this by assigning a secondary extension to another button, but this might not be what you want, so if you can elaborate a little further as to what you want exactly I can help you with putting together a solution
    Cheers,
    David Trad.
    **When you rate a persons post, you are indicating a thank you or that it helped, but at the same time you are also helping to maintain the community spirit - You don't have to rate posts and you wont be looked down upon :) **

  • How to launch photoshop action?

    I'm writing a Bridge CS3 script to generate a web gallery. The user selects some files and starts the script through a context menu item. The script iterates through the selection list a couple of times, writes files, etc.
    As the final step, I need to start Photoshop CS3 and run an action on the set of selected files--as if I had picked Tools/Photoshop/Batch... from the Bridge menus but with the action specified so the user does not have to go through the action dialog in Photoshop. After starting the action, the Bridge script is complete and can quit while Photoshop does its batch processing.
    The Photoshop action contains mostly "fit image..." and sharpening steps. It also contains some simple scripts, mostly simple "save as" types of operations.
    I'm uncertain how to do this. Is this where BridgeTalk must be used? Can anyone direct me to a sample script that does something simple like this?
    Is there any problem with having scripts within the action? Some messages I've seen suggest there is, but I'm not certain I'm interpreting them correctly, or whether they apply to CS3.
    Thanks.
    Guy

    [email protected] wrote:
    > I'm uncertain how to do this. Is this where BridgeTalk must be used?
    Yes. You would have some Bridge JS call some PS JS which would, in turn, call
    your Batch/Action.
    > Can anyone direct me to a sample script that does something simple like this?
    You might want to take a look at the Bridge SDK, if you haven't already. There
    are several examples using BridgeTalk. And also look at the code in Common
    Files/Adobe/Startup Scripts CS3 to see how Adobe implemented the Bridge
    Tools->Photoshop functionality. It's a bit difficult to follow in places but
    what you really want to look at is the photoshop10.runActionCommand function in
    photoshop-10.jsx. It's one way of calling PS actions from Bridge and it's also
    what I use in my code.
    >
    > Is there any problem with having scripts within the action?
    CS3 has apparently addressed this issue but I can't say from personal experience
    that it works. However, this was not possible at all in CS2 unless you went to
    really extreme measures.
    -X
    for photoshop scripting solutions of all sorts
    contact: [email protected]

  • How to Run servlet in Tomcat 5.5.9

    hi
    How to run servlet in tomcat 5.5.9?how to set context path in server.xml of conf folder in tomcat since there is no context tag in server.xml.
    Jiten

    Hi ! I have a similar problem, well, it's along the same line ...
    I'm using NetBeans 4.1, and i've coded a servlet. Using NetBeans to launch my servlet (with the bundled Tomcat 5.5.7) works fine, however i need to deploy my application unto a Tomcat 5.5.9 server.
    Thus, i copied the WAR file generated by NetBeans into the Tomcat 5.5.9 webapps directory, and Tomcat expands it.
    Problem is when i run my JSP pages with the form tags, they do not work on the Tomcat 5.5.9 environment. Anyone knows why?
    (These work on the NetBeans Tomcat bundle 5.5.7)
    My form action :
    <form name="index" method="get" action="PageServlet">
    My web.xml :
    <servlet>
    <servlet-name>PageServlet</servlet-name>
    <servlet-class>application.PageServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>PageServlet</servlet-name>
    <url-pattern>/PageServlet</url-pattern>
    </servlet-mapping>
    I'm really stumbed on why it doesn't work in Tomcat 5.5.9, any help is greatly appreciated, thanks in advance ^_^

  • How to run jsp file in Apache Tomcat 5.0?

    hi,
    i'm using jdk1.5,jsp1.2 & Apache Tomcat 5.0 as a web server.in my application i have 2 jsp files,1 html file & 1 javabean class.where i must place the html,jsp files and the .java file & .class file for a bean class.how to run this application.
    bean class:
    public class Userdata {
    private String username;
    private String email;
    private int age;
    public void setUsername( String value )
    username = value;
    public void setEmail( String value )
    email = value;
    public void setAge( int value )
    age = value;
    public String getUsername() { return username; }
    public String getEmail() { return email; }
    public int getAge() { return age; }
    getname.html file:
    <HTML>
    <BODY>
    <FORM METHOD=POST ACTION="Savename.jsp">
    What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
    What's your e-mail address? <INPUT TYPE=TEXT NAME=email SIZE=20><BR>
    What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4>
    <P><INPUT TYPE=SUBMIT>
    </FORM>
    </BODY>
    </HTML>
    savename.jsp file:
    <jsp:useBean id="user" class="Userdata" scope="session"/>
    <jsp:setProperty name="user" property="*"/>
    <HTML>
    <BODY>
    Continue
    </BODY>
    </HTML>
    nextpage.jsp file:
    <jsp:useBean id="user" class="Userdata" scope="session"/>
    <HTML>
    <BODY>
    You entered<BR>
    Name: <%= user.getUsername() %><BR>
    Email: <%= user.getEmail() %><BR>
    Age: <%= user.getAge() %><BR>
    </BODY>
    </HTML>
    refer these source code and plz,give the result at the earliest.
    whether i want to write a web.xml file for this jsp file.
    if yes,means plz present the web.xml file for this application.
    plz,if anybody knows give me detailed description for this application.

    create a dir under webapps dir
    place your .html and .jsp files here
    also create WEB-INF dir here
    Under WEB-INF create classes and lib dir
    under classes dir put your .class file
    You also need to put web.xml under your WEB-INF dir.
    You ca keep your java file any where u want on your computer.

  • How to run an external .exe file from an indesign pluging

    Hi,
          Suppose if I have written an separate application in C++ (.exe file) & need to run it from an indesign pluging(as if a service in windows). have you provided that facilities in your SDK? if it's please let me know how to run an external .exe file from a indesign pluging.
    Thanks,

    I'm actully writing data in PMString to a external txt file.
    another question..
    if i want to execute an action when the ok button is cliked how can i do it?
    whe i add a button(widget) i know how to handle it. please see my code.
    // Call the base class Update function so that default behavior will still occur (OK and Cancel buttons, etc.).
    CDialogObserver::Update(theChange, theSubject, protocol, changedBy);
    do
    InterfacePtr<IControlView> controlView(theSubject, UseDefaultIID());
    ASSERT(controlView);
    if(!controlView) {
    break;
    // Get the button ID from the view.
    WidgetID theSelectedWidget = controlView->GetWidgetID();
    if (theChange == kTrueStateMessage)
    //if (theSelectedWidget == kEXTCODGoButtonWidgetID
    switch(theSelectedWidget.Get())
             case kEXTCODGoButtonWidgetID:
      this->ViewOutput();
      break;
             case kEXTCODFindButtonWidgetID:
      this->SaveLog();
      break;
    // TODO: process this
    } while (kFalse);
    I do two actions "SaveLog" & "ViewOutput()" using two buttons. But i dont know how to execute an action when the ok button is clicked...

  • How to run drill down reports

    now i am using 9ids
    Before dev 2.1 was used.
    now before we had provision to run drill reports
    by putting a button on report
    and using
    srw.run_report(); procedure ,in button action trigger.
    now in 9i what i observed there is no object button in reports.
    button has changed to text item and there is no such action trigger.
    how to run the report
    as reports are run from form by using
    web.show_document
    pls suggest.

    Hi Rajendra,
    Again prasanth here, As u said, there is no more push button in 9i and 10g, ok. so u can drill down reports by using hyperliks which is only way(according to me). some may suggest to include JSP buttons. But u can simply place any text item like 'click here to run report' and in the property inspector(i.e.property pallette) set the hyper link property with the desination of your file. It may be a weblink or may be local file path.
    example
    hyperlink: www.oracle.com/..or
    c:\temp\test.rdf
    or u can write a trigger for that text item:
    1)right clik the text item
    2)goto pl/sql editor
    3)put the code
    a varchar(30);
    begin
    a:=srw_run_report('<the report link you want')
    return(a);
    but before doing this make sure that the item type of tha t text item property should be pl/sql(this can be set in property pallete of that text item)
    I think this help you,
    Thanks and Regards
    Prasanth A.S.

Maybe you are looking for

  • Can't update my macbook pro from 10.7.4 to 10.8.2

    Like in topic, i bought my macbook pro retina 15' few days ago, and now i'm trying to update OS to the lastest version but after whole download its complete and i'm going futher to rebooting and instaling there is a massasge thats telling me that com

  • Sync problems with my ipod touch

    My ipod is 2 weeks old. syncing with my PC worked fine until yesterday when I put a CD into itunes and tried to sync it with my ipod. No sync high lighted therefore it wont sync can anyone help ?

  • Understanding photo stream and Photos

    I have installed Photos and migrated my Aperture library. iCloud Photo Library is turned OFF My Photo Stream is turned ON iCloud Photo Sharing is turned ON I have photos on my iPad and iPhone. These and my desktop machine are all logged into the same

  • FrameMaker 8, webdav, and cms

    My company needs to run FrameMaker 8 via a Webdav service. Is a CMS required? If so, is there an open source CMS that works well with Frame?

  • Handling unit - Shipment

    Hi all, I would like to get the number of handling units in a shipment. I dont find VTTK or VEKP fulfils this requirement. Can you please suggest any idea ? Rgds, Seema