App.doScript("HelloWorld.scpt","APPLESCRIPT_LANGUAGE");

Before the Extension Builder I was able to call AppleScript in the doScript() and run an AppleScript threw SwitchBoard. Has AppleScript been removed from the new SDK? It still shows up in the Docs for ScriptLanguage.

This is a package inside of a Extension Builder project for InDesign. It's just a button with that runs the run() function in this package. The problem is I can't get the project to compile because I get this error on doScript().
Implicit coercion of a value of type String to an unrelated type com.adobe.indesign:ScriptLanguage.
The HelloWorld.scpt is inside the project as a local resource. Do I need to load this an constant object and then load the path as a string?
package mkt
import com.adobe.csawlib.indesign.InDesign;
import com.adobe.indesign.*;
public class MarketingAutomationInDesign
public static function run():void
var app:Application = InDesign.app;
var document:Document = app.documents.add();
var pages:Pages = document.pages;
var firstPage:Page = pages.item(0);
var layers:Layers = document.layers;
var firstLayer:Layer = layers.item(0);
var textFrames:TextFrames = firstPage.textFrames;
var myTextFrame:TextFrame = textFrames.add(firstLayer);
myTextFrame.label = "Dude Hope this works.";
myTextFrame.geometricBounds = new Array("6p","6p","36p","36p");
myTextFrame.contents = "Hello World from a Creative Suite Extension and again";
var myItem:* = document.pageItems.itemByName("Dude Hope this works.");
app.doScript("HelloWorld.scpt","applescriptLanguage");

Similar Messages

  • Var script = app.doScript(myScript, ScriptLanguage.APPLESCRIPT_LANGUAGE);

    It appears that ScriptLanguage.APPLESCRIPT_LANGUAGE is no longer supported in Extenstion Builder called from ActionScript.
    Now it does appear ExtendScript can call ScriptLanguage.APPLESCRIPT_LANGUAGE but that means you have to make a call to either eval(JavaScript)
    //JavaScript
    doScript(script,ScriptLanguage.APPLESCRIPT_LANGUAGE)
    Can someone please confirm that app.doScript(myScript, ScriptLanguage.APPLESCRIPT_LANGUAGE); is or is not supported from ActionScript?

    Yiou can call ExtendScript to call the doScript to execute the AppleScript.

  • AIS CC: how undoing the actions of a JS run via app.doScript

    Hello,
    AIS CC (9.0)
    I wrote a JavaScript, which I can properly run through app.doScript(UndoModes.fastEntireScript, etc.).
    Now, at a given time, I would like to programmatically undo the actions of my own script.
    The various resources I have got here (InDesign_ScriptingGuide_JS (CS6), InDesign_ScriptingTutorial, the ExtendScript Toolkit Object Model browser) suggest things (app.undo(), app.documents.item(0).undo(), etc.) which fail, when executed on my AIS CC.
    Any idea or tip, on how to undo actions submitted via doScript on AIS CC?
    Thanks in advance!
    Kind regards,
    GB
    Snippet:
    var main = function()
         // something
    app.doScript(
         main,
         ScriptLanguage.javascript,
         undefined,
         UndoModes.fastEntireScript
         ); // << this works perfectly: the actions in the "main" function are executed
    app.undo(); // << this will fail with "app.undo is not a function"

    Thanks for your fast reply.
    you're undoing the entire script, which is probably not what you want.
    Undoing everything embedded in my "main" function is really what I want to achieve.
    Whether it's a bunch of complex code, or nothing at all (as in my snippet, where "main" contains only a comment line ), it's what I want.
    the recommendation is to us entireScript
    I changed my "UndoModes.fastEntireScript" into "UndoModes.entireScript", as you suggested; with no avail so far: I still get the same "is not a function" error.
    Actually, I have the feeling that I do not understand/master the InDesign DOM here, and am simply trying to make a call to a method (undo) which does not exist in this class (app) - despite the Adobe Reference Manual says it does...
    It sounds an inefficient way to write a script
    My script makes some changes in an InDesign document ("main" function), then exports it to PDF (out of the "main" function).
    Then, the environment I work with (XMPie) will inject variable information in the InDesign document for the next recipient.
    At this time, I need the document to be reset to its original design.
    That's why I need to undo all the changes applied by the "main" function.

  • Encoding and app.doScript

    Hi all,
    I try to use the function app.doScript to run an applescript. This script use the terminal to look if an picture has an alpha channel.
    My function works with files who not contains special char.
    Has some one an idea to correct this bug?
    I become the following error:
    set result to do shell script "sips -g hasAlpha '/Users/bastieneichenberger/Desktop/indd_resize_script/2013-10-19_17-56-00__test.indd/Lin ks/Capture d’écran 2013-10-05 à 12.05.19.png'"
    Warning: /Users/bastieneichenberger/Desktop/indd_resize_script/2013-10-19_17-56-00__test.indd/Link s/Capture d’e<0301>cran 2013-10-05 a<0300> 12.05.19.png not a valid file - skipping
    Error 4: no file was specified
    Try 'sips --help' for help using this tool
    #target indesign
    var file_path = "/Users/bastieneichenberger/Desktop/indd_resize_script/2013-10-19_17-56-00__test.indd/Links/Capture d’écran 2013-10-05 à 12.05.19.png"
    alert(has_item_alpha_channel (file_path) );
    function has_item_alpha_channel (file_path){
        if(File.fs == "Windows"){
            throw new Error("the function has_alpha_channel works only on mac os x");
        var appleScript = "set result to do shell script \"sips -g hasAlpha '"+  file_path +"'\"";
        $.writeln(appleScript);
        var result = app.doScript(appleScript, ScriptLanguage.applescriptLanguage);
        var res = result.match("hasAlpha: yes");
        if(res != null){
            res = true;
        else{
            res = false;
        return res;

    You should post in the scripting forum. It looks like you are making things too complicated. You shouldn't need a shell script to check for alpha channels—a list of alpha channels is stored in a placed image's clipping path property.
    This AppleScript displays the count of alpha channels in a selected image (you should be able to do the same in JS):
    --x returns a list of alpha channels—will return {} if there are none
    tell application "Adobe InDesign CS6"
        set x to alpha channel path names of clipping path of selection of active document
        set c to count of x
        display dialog "There are " & c & " alpha channels in the selected image"
    end tell

  • [CS4:JS] How to run ".sh" file through Javascript

    Dear All,
    How to run the ".sh" file through Adobe InDesign Javascript, I used the below coding:
    //================== Code =============================//
    var myFile = File("xxx/xxx/xxx/Test.sh");
    var Exec = "sh" + " "+ "\""+myFile+"\"";
    File(Exec).execute();
    //================== End =========================//
    the above coding is not working, I checked before without "sh" also, It is not working.
    Please anyone can give me the solutions & suggestion, and I will appreciate.
    Thanks & Regards
    T.R.Harihara SudhaN.,

    Dear Hawkinson,
      Many thanks for this quick reply, I'm really very happy, but unfortunately the script is return the "Permission denied" value.
    I used the below code, Please kindly change if anything is wrong.
    //====================== Script Source =====================//
    var myFile ="/Applications/MacXinPro/IDMLExportparse.sh";
    shell(myFile);
    function shell(cmd) {
    var
    rv,
    call ='do shell script "'+ cmd.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"';
    try {
    rv = app.doScript(call,ScriptLanguage.APPLESCRIPT_LANGUAGE);
    } catch(e0) {
    rv = e0+"\n"+(rv?"":rv);
    return rv;
    //====================== End : Script Source =====================//
    //=========== Output ================//
    Execution finished. Result: Error: sh: /Applications/MacXinPro/IDMLExportparse.sh: Permission denied
    undefined.
    Please kindly help me...
    Thanks & Regards
    T.R.Harihara SudhaN

  • [JS] ScriptUI - URL Links in Dialogues

    HI.
    I have a left field question, is it possible to put a hyperlink to a web URL in a scriptUI window?
    I have some video tutorials that I want to be able to link to from the UI and at the moment all I can do is have a button going to a new alert/promt containing a url instructing the user to copy and paste in their browser.
    Can this link be directly placed as a hyperlink in the palette?
    Just wondering...
    Cheers
    Roy

    Hi Roy,
    Make a button and use a code like this one from Harbs
    See http://forums.adobe.com/message/4390237#4390237
    GotoLink()
    function GotoLink(url){
                url = url || "http://in-tools.com";
                if(app.version>6){
                    if(File.fs=="Macintosh"){
                        var body = 'tell application "Finder"\ropen location "'+url+'"\rend tell';
                        app.doScript(body,ScriptLanguage.APPLESCRIPT_LANGUAGE);
                    } else {
                        var body =  'dim objShell\rset objShell = CreateObject("Shell.Application")\rstr = "'+url+'"\robjShell.ShellExecute str, "", "", "open", 1 '
                        app.doScript(body,ScriptLanguage.VISUAL_BASIC);
                else {
                    linkJumper = File(Folder.temp.absoluteURI+"/link.html");
                    linkJumper.open("w");
                    var linkBody = '<html><head><META HTTP-EQUIV=Refresh CONTENT="0; URL='+url+'"></head><body> <p></body></html>'
                    linkJumper.write(linkBody);
                    linkJumper.close();
                    linkJumper.execute();
    Regards
    Trevor

  • Help, please, with a beforeQuit script

    The script uses a beforeQuit event handler to copy InDesign libraries from one folder to another. Some of the libraries are large and the process takes a while.
    I would like to display a progress bar so that users know that their PCs haven't frozen up. But it only flashes into view briefly. Then the InDesign window closes, but the file-copying is still taking place.
    Is there some way to delay the actual quit event until the beforeQuit function has finished? Or maybe what I need is a way to display the progress bar that isn't dependent on InDesign.

    Hi Robert
    You can use vb and applescript
    To display a simple alert that won't close on the application quite is quite simple.
    Note the use of the 3 quote marks.
    A progress bar is more complicated.
    myVBScript = '''MsgBox "Hello there",64,"My message Box"''';
    myAppleScript = """tell application "System Events" to display notification "Hi there!" with title "Greetings" """;
    // if the above notifcation doesn't work i.e. old o.s. then you can do the below alert
    // myAppleScript = """tell application "System Events" to display alert "Hi there!" """;
    if ($.os.match(/^W/)) app.doScript(myVBScript,ScriptLanguage.VISUAL_BASIC);
    else app.doScript(myAppleScript,ScriptLanguage.APPLESCRIPT_LANGUAGE);
    // see
    // http://www.javascriptkit.com/javatutors/vbalert.shtml
    // http://stackoverflow.com/questions/5588064/how-do-i-make-a-mac-terminal-pop-up-alert-applescript
    // https://developer.apple.com/library/mac/documentation/applescript/conceptual/applescriptlangguide/reference/aslr_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW224
    Trevor

  • Getting data from SQL database

    Hi
    I am stil trying to get some basic information stored in a database table on my SQL Server.
    I can do this by embedding an Applescript do carry out the shell command 'curl' as below:
    myFullScriptString = "do shell script \"curl -0  localhost/asset.php?asset_id="+assetID+"\"";
    myForceError = app.doScript(myFullScriptString, ScriptLanguage.APPLESCRIPT_LANGUAGE);
    return(myForceError);
    but I dont want to be limited to OSX.
    Is there a way this can be put into a native socket comment using a structure as below?
    reply = "";
    conn = new Socket();
    conn.open("192.168.91.184:8888");
    conn.write(" GET /myfile.php?" + variousVariable + " HTTP/1.0\n\n");
    reply = conn.read(999999);
    conn.close;
    Cheers
    Roy

    Sigh...
    I'm sorry, Roy, I really thought that the example in the JS Tools Guide told you how to seperate the actual response from the server's headers. But it doesn't!
    Anyhow, RFC2616 tells us:
    6 Response
       After receiving and interpreting a request message, a server responds
       with an HTTP response message.
           Response      = Status-Line               ; Section 6.1
                           *(( general-header        ; Section 4.5
                            | response-header        ; Section 6.2
                            | entity-header ) CRLF)  ; Section 7.1
                           CRLF
                           [ message-body ]          ; Section 7.2
    So, that means the message body is seperated by two CRLF pairs. Except that because of API magic each CRLF turns into a single \n. So you want to look for \n\n.
    So, you should be able to seperate it like this:
    body = reply.substr(reply.indexOf("\n\n")+2);

  • Calling shell/perl from javascript?

    Is there a way to call a shell script or a perl script from InDesign (CS3) javascript on a Mac?
    I see that the File class has an execute() method, but I would like to avoid managing multiple files, so I'd like to inline my perl code inside javascript. I was almost tempted to File.write() the script to a file, but the resulting file is not executable so FIle.execute() doesn't run it properly anyhow.
    Is there a way to do this?
    Thanks.

    Thanks, Kees, that's quite helpful. Horribly ugly, but quite helpful...
    I'm sure the quoting is a nightmare, but this is a bit more production-like for simple cases of double-quotes and backslashes. Everything else "at your own risk":
    function shell(cmd) {
        var call ='do shell script "'+
            cmd.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+
        return app.doScript(call,
        ScriptLanguage.APPLESCRIPT_LANGUAGE);
    shell('echo "Hello \\ World"');
    I don't suppose anyone knows why Adobe didn't supply something a bit better? It seems hard to justify using JavaScript over Applescript for Adobe scripts when this is the case...

  • Certification expired? @ HelloWorld-app.xml in tutorial pdf

    Hi, everyone. Im just a student passed by and interesting in Flex app (however i dont have a good fundamental about web ^^")
    I tries to follow the pdf file, devappsflex.
    Using Notepad++ as texteditor and FlexSDK in Vista sp1 64bit.
    HelloWorld.mxml is compiled to HelloWorld.swf without prob.
    I create a certificate in the project directory
    adt - certificate -cn SelfSigned 1024-RSA sampleCert.pfx samplePassword
    then compiling and signing HelloWorld-app.xml as in tutorial
    adt -package -storetype pkcs12 -keystore sampleCert.pfx HelloWorld.air HelloWorld-app.xml HelloWorld.swf
    The Problem is the certification has expired even i have just create and pack in asap.
    anyone get an idea, how to solve it?

    Thank you for your answer erthy. Your response to my post really relief me that i can trust this community to help me studying Flex ^^.
    I tried that Flex Builder. It's great but it cant solve my prob. However i get a new clue that may be the cause of this.
    Time, date, and month are correct but the year of my comp is 2009. It cant be 1957.

  • [JS][CS5] switching between CS5 apps

    Hi
    My script starts out in InDesign, but I need to trigger Photoshop at one point in the script.  Is there a way to do this other than do script to make AS launch PS and pass back to JS for me to carry on using JS in PS?
    If not, I am trying this:
    app.doScript(File("~/Desktop/triggerPS.applescript"), ScriptLanguage.APPLESCRIPT_LANGUAGE);
    which seems to work ok, but my AS script:
         tell application "Adobe Photoshop CS5"
         set myFile to ("Macintosh HD:Users:atlasdemo:Desktop:photoshop.jsx")
         do script alias myFile language javascript
         end tell
    wont even compile, saying:
    Expected end of line, etc. but found “script”.
    Can anyone let me know what I am doing wrong, or is there a better way?
    Cheers
    Roy

    Here is my version of the script -- tried to make it as simple as possible (make sure to read comments):
    #target indesign
    var myDoc = app.activeDocument;
    var myFolder = Folder.selectDialog ("Select the Output Folder for the resized images");
    SetDisplayDialogs("NO");
    OpenFiles();
    SetDisplayDialogs("ALL");
    UpdateAllOutdatedLinks();
    alert("Done");
    function OpenFiles(){
         for (var i = myDoc.links.length-1; i >= 0; i--) { // process links collection backwards since it's changing!
              var myLink = myDoc.links[i];
              if (myLink.linkType == "Photoshop"){
                   var myImage = myLink.parent;
                           var myHorScale = Math.abs(myImage.absoluteHorizontalScale);
                        var myVerScale = Math.abs(myImage.absoluteVerticalScale);
                   if (myImage.space == "CMYK") {
                        var myImagePath = myLink.filePath;
                             var myNewPath = File(myFolder + "/" + myLink.name);
                             if (myHorScale != 100 || myVerScale != 100) { // resize only images with scaling not set to 100%
                                  CreateBridgeTalkMessage(myImagePath, myNewPath, myHorScale, myVerScale, 300);
                                  SetLink100percent(myLink, myNewPath);
    function CreateBridgeTalkMessage(myImagePath, myNewPath, myHorScale, myVerScale, myResolution) {
         var bt = new BridgeTalk();
         bt.target = "photoshop";
         var myScript = ResizeInPS.toString() + "\r";
         myScript += "ResizeInPS(\"" + myImagePath + "\", \"" + myNewPath + "\", \"" +  myHorScale + "\", \"" + myVerScale + "\", \"" + myResolution + "\");";
         bt.body = myScript;
         // if something doesn't work, uncomment the following two lines -- the PS script will be written into console, copy it and dubbug it as a stand alone script in PS
    //~      $.write(myScript);
    //~      exit();
         // the following two lines are very important -- they force ID to wait until PS finishes resizing, saving and closing the image (this may take hours)
         bt.onResult = function(resObj) {}
         bt.send(100);
    function ResizeInPS(myImagePath, myNewPath, myHorScale, myVerScale, myResolution) {
         var myPsDoc = app.open(new File(myImagePath));
         var docName = myPsDoc.name;
         try {
              if (myHorScale == "undefined") {
                   var myHorScale = undefined;
              else {
                   var myHorScale = eval(new UnitValue(myHorScale, "%"));
              if (myVerScale == "undefined") {
                   var myVerScale = undefined;
              else {
                   var myVerScale = eval(new UnitValue(myVerScale, "%"));
         myPsDoc.resizeImage(myHorScale, myVerScale, eval(myResolution), ResampleMethod.BICUBIC);
         myPsDoc.saveAs(new File(myNewPath), undefined, true);
         myPsDoc.close(SaveOptions.DONOTSAVECHANGES);
         catch (err) {
              try {
                   app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
              catch (err) {}
    function SetLink100percent(myLink, myNewPath) { // relink to new file and set exactly to 100%
         var newFile = new File (myNewPath);
         if (myNewPath != undefined && newFile.exists) {
              var originalLinkFile = new File(myLink.filePath);
              myLink.relink(newFile);
              try { // for versions prior to 6.0.4
                   var myLink = myLink.update();
              catch(err) {}
              var myImage = myLink.parent;
              // set to exactly 100% if the image is not flipped
              if (myImage.absoluteHorizontalScale > 0 && myImage.absoluteVerticalScale > 0) {
                   myImage.absoluteHorizontalScale = 100;
                   myImage.absoluteVerticalScale = 100;
    function SetDisplayDialogs(Mode) { // turn on-off DialogModes in PS -- don't want to see the open file dialog while the script is running
         var bt = new BridgeTalk;
         bt.target = "photoshop";
         var myScript = "app.displayDialogs = DialogModes." + Mode + ";";
         bt.body = myScript;
         bt.send();
    function UpdateAllOutdatedLinks() {
         for (var myCounter = myDoc.links.length-1; myCounter >= 0; myCounter--) {
              var myLink = myDoc.links[myCounter];
              if (myLink.status == LinkStatus.linkOutOfDate) {
                   myLink.update();
    Notice that I write ResizeInPS as an ordinary function and convert it to string:
    var myScript = ResizeInPS.toString() + "\r";
    It's much more convenient than this myScript += "blah-blah-blah...\n"; stuff (btw, this tip was given by Harbs and Bob Stucky, thanks them for it).
    The script was written on CS3 for Windows -- can't test it on CS5 so far.
    There is an important setting for the script to work correctly: Preferences > File Handling > Preserve Image Dimensions When Relinking should be OFF in CS5. But Relink Preserves Dimensions should be ON in CS3
    On an un-related matter(ish), why in some cases are file paths shown as "xxx/xxxx/xxxx.xxx", and others as "xxxx:xxxx:xxxx.xxx"
    When I asked for a folder to be selected, the ":" was used as the delimiter, but the file path is shown with the delimiter "/"
    What are the roles around this?
    "xxxx:xxxx:xxxx.xxx" is Mac OS 9 path name
    "xxx/xxxx/xxxx.xxx" can be either Mac OS X  or URI path name
    You can read about it in the File System Access chapter of JavaScript Tools Guide.
    Hope this helps.
    Kasyan

  • Binary and app.activeScript issue

    Hi all,
    I am trying to get a script running. The syntax looks like :
    #targetengine "foo"
    var scpt="@JSXBIN@[email protected]@MyBbyBnAge...";
    app.doScript(scpt);
    I get an error and it seems to be related to the use of app.activeScript.parent in the binary script.
    //In the binary
    //Script folder
    var scriptFolder = Folder(app.activeScript.parent);
    Is it something known or me doing something bad ?
    Is there a workaround, would it be better to do drastically different ?
    TIA for any input
    Best,
    Loic

    Try something like this:
    #targetengine "foo"
    Folder.current = app.activeScript.parent;
    var scpt="@JSXBIN@[email protected]@MyBbyBnAge...";
    app.doScript(scpt);
    and in you script access Folder.current....
    Harbs

  • [JS] (CS3) eventListener & doScript

    Hello everyone,
    Is it possible to create an eventListener, like "afterOpen" that would trigger a script file?
    In CS2, I wrote a few scripts that were managed by inEventScript Plug-in. We are upgrading to CS3 and this plug-in was not transported to CS3 since "eventListener" is available.
    So if possible, what is the syntax to execute the doScript within the Event Handler Function? It would not be app.doScript. So what?
    Thank you, Alex.

    I am running into another issue now.
    It does execute the script "afterOpen", but it is displaying my alert "No document open!!!" from my test: app.documents.lenght == 0.
    So is there no Open Document altough it is an "after"???
    The goal is to be able to execute some my regular script AND have have them attached to some events ("Open, Close, Copy & Paste). Or am I stuck to modify & include them in the STARTUP script. I know I can use event.parent to access the Document opened.
    Also, are there events attached to pasting & copying (Before &/or after)?
    Here is the Startup script.
    #targetengine "session"
    main();
    function main()
    var myScriptName = app.activeScript.fsName;
    var myScriptPath = app.activeScript.path;
    // var myPath = app.filePath + "/Scripts/Scripts Panel/~InEventScript/";
    //** Number 0
    var myFile = new File (myScriptPath+"/PrePressOPEN.jsx");
    if (myFile.exists)
    app.addEventListener( "afterOpen", myFile, false );
    else
    alert ("File:\n" + myFile.fsName + "\n...has NOT been Installed!!!");

  • AppleScript via JavaScript (doScript in Photoshop)

    Hi everyone,
    I was looking for a way to execute AS from JS to bind my AS on hotkey.
    I found a thread with this code in there:
    // JavaScript
    var myscr = new File('/C/1/book/my.vbs');
    if (myscr.exists) {
    app.doScript(myscr, ScriptLanguage.visualBasic)
    do I thought that I'll create a .jsx file with this code and it'll work
    var myscr = new File('/Users/macintosh/Documents/Adobe Scripts/enter.applescript');
    if (myscr.exists) {
    app.doScript(myscr, applescriptLanguage)
    but it didn't
    I fought that the problem is that doScript is from inDesign/Illustrator and tried doAction but it seems it's only for Actions.
    Please explain me what am I doing wrong?
    Kind regards, Sergey

    Take a look at the documentation each of Adobe's apps differs in its scripted commands. ID has 'do script' in given language (the best of the bunch) Photoshop will let AppleScript & Visual Basic do JavaScript. Illustrator is like Photoshop except you can pass an arguments array to the command…
    File.execute(); did NOT work with my quick test the calling JavaScript:
    #target photoshop
    var appleScript = new File('~/Desktop/Test.app');
    if (appleScript.exists) appleScript.execute();
    The AppleScript compiled and saved as 'Application' in on run statement…
    on run
    tell application "Adobe Photoshop CS2"
    activate
    if exists document 1 then
    set Doc_Ref to current document
    tell Doc_Ref
    set Doc_Name to name
    display alert "Testing" message ¬
    Doc_Name giving up after 2
    end tell
    else
    display alert "Script Error" message ¬
    "No document is open." as warning giving up after 2
    end if
    end tell
    end run

  • Illustrator CC Flatten Transparency with doScript(action, actionSet)

    Hi Yall!
    I have the creative cloud illustrator with which I'd like to process a bunch of files.   Of course, for my processing needs, the file has to be outlined & expanded, etc, to ensure all the plugin items, text frames and strokes become just outlined shapes to mess with.  I was excited about the potential of the doScript in illustrator to play any action, so I made a simple action which selects all and flattens transparency.  This does seem to work, except for the part where it gives me this aler box of an error: "The operation cannot complete because of an unknown error: [Parm]" .
    The flattening process seems to have worked ok though, and the objects did become flattened.  The error message can be turned off using the UserInteractionLevel.DONTDISPLAYALERTS , but wacky things happen with the display, such as the edges of paths become invisible and the preview redrawing gets all wiggy.
    Does anybody have a better way to flatten the transparency, or is there something I'm missing?
    The action is this:
    /version 3
    /name [ 7
              466c617474656e
    /isOpen 1
    /actionCount 1
    /action-1 {
              /name [ 20
                        466c617474656e205472616e73706172656e6379
              /keyIndex 0
              /colorIndex 0
              /isOpen 1
              /eventCount 2
              /event-1 {
                        /useRulersIn1stQuadrant 0
                        /internalName (adobe_selectAll)
                        /localizedName [ 10
                                  53656c65637420416c6c
                        /isOpen 0
                        /isOn 1
                        /hasDialog 0
                        /parameterCount 0
              /event-2 {
                        /useRulersIn1stQuadrant 0
                        /internalName (ai_plugin_flatten_transparency)
                        /localizedName [ 20
                                  466c617474656e205472616e73706172656e6379
                        /isOpen 0
                        /isOn 1
                        /hasDialog 1
                        /showDialog 0
                        /parameterCount 5
                        /parameter-1 {
                                  /key 1920169082
                                  /showInPalette 4294967295
                                  /type (integer)
                                  /value 75
                        /parameter-2 {
                                  /key 1919253100
                                  /showInPalette 4294967295
                                  /type (unit real)
                                  /value 300.0
                                  /unit 592342629
                        /parameter-3 {
                                  /key 1869902968
                                  /showInPalette 4294967295
                                  /type (boolean)
                                  /value 1
                        /parameter-4 {
                                  /key 1869902699
                                  /showInPalette 4294967295
                                  /type (boolean)
                                  /value 1
                        /parameter-5 {
                                  /key 1667463282
                                  /showInPalette 4294967295
                                  /type (boolean)
                                  /value 1
    and the script is this:
    function test(){
         app.loadAction('File.aia of the actions described above');
         app.doScript('Flatten Transparency', 'Flatten', false);
    test();
    Thanks!

    Anyone have any input?
    Thanks!

Maybe you are looking for

  • How to get fixed field length when download a CSV  file ?

    hi all ,     I had downloaded a CSV file from an ALV list which created by myself. the current layout of the CSV file is : aaa;bbbbbbbbbb;cc;                                                                      for example . but what i want is : aaa 

  • Itunes store link not working PLEASE HELP!

    I can't connect to the itnues music store and get the following error message when I try: itunes could not connect to the Music Store. The network connection was reset. Make sure your network connection is active and try again. If anyone could give m

  • Need help in transferring data from flatfiles to SAP R/3 tables

    Hi, I need to *transfer data in the flatfiles (NON SAP SYSTEM) to SAP R/3 tables*. Can we do it with a help of program ? Please help me out Thanks and regards, Shiva shekar k

  • Text determination & Output

    Hi, We have configured txt determination in Customer master in general data  & Sales area data individually. We have assigned text procedure to the account group. I have also maintained text types, access seq and procedure for the sales document (Hea

  • CRS-0215: Could not start resource

    Hello This is my first time installing clusterware. However, i have not been too successful at it. This is my configuration: Operating System: RHES 5.3 Oracle Database 11gR1 OpenFiler used to configure shared disks After several attempts, i was able