Why does my trace script give an application error?

Hi All
I have written a simple script to to trace a raster image using Illustrator.
The image can be traced using >Object > Image trace in Illustrator without any problems.
However, when I run my script I get the following error:  Application error 12321(some long number) 'MARC'.
Does anyone have any advice on how I could solve this problem?
Thank you!
Also, my code is below.
var jpgFilePath = new File ("/Users/Ellipse8.jpg")
createRasterItem(jpgFilePath)
function createRasterItem(jpgFilePath) {
var rasterFile = File(jpgFilePath);
var myDoc = app.documents.add();
var myPlacedItem = myDoc.placedItems.add();
myPlacedItem.file = rasterFile;
myPlacedItem.position = Array( 0, myDoc.height );
myPlacedItem.embed();
var thisImage = myPlacedItem.trace();
thisImage.tracing.tracingOptions.ignoreWhite = true;
thisImage.tracing.expandTracing();
redraw();

you don't need to embed your image after you place it, remove or comment the line and it should work
//myPlacedItem.embed();

Similar Messages

  • Why does the Summary function give a datatype error when opening a data model for editing?

    I have two datasets (G1 and G2) within a data model; i've used a field in G2 and placed it into G1 as a Summary Function of G2. The datatype of this field in G2 is Integer, however if you set the Summary field in G1 to the same datatype - Integer, an error appears.

    Oracle have provided a patch.
    We are running OBIEE  at patchset  11.1.1.7.140715, Oracle have provided us with a  patch p17563277  backported to the 140715 patchset.
    This fix will presumably be incorporated in later releases.

  • Why does my iPhone 5 give random chimes?  I have all notifications, etc., turned off.  Seems to be on reason for this.

    Why does my iPhone 5 give random chimes?  I have all notifications, location services, etc., turned off. 

    I had the exact same problem with my iPhone 4. I would select the song I was wanting to play and it would load for a second, then simply shuffle to the next. It did this with almost my entire iPod. So, I synced it with my computer and it's copy of my music, and presto, my music played perfectly. So, I would reccomend trying that. Hope this helped!!

  • Why does ichat video not connect?  The error message says we did not respond.

    Why does ichat video not connect?  The error message says we did not respond.

    Hi,
    iChat uses several port as they are called over the internet to do different things
    Text Chats and Video Chats are on different Ports.
    You probably don't have the port open.
    Use UPnP in your router if it has it.
    8:59 PM      Sunday; August 12, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Why does my "recent items" show recent applications in duplicate?

    Why does this happen?
    Just applications show up in duplicate, not recent documents. All I can do is to clear the recent items list. I'm not sure when this development began, and I can't bring it on at will either.

    I was revisiting this situation again and explored into one of the Links that "Limnos"
    posted, namely, "X Lab Resetting Launch Services".
    Thanks-Limnos.
    It suggested:
    1. Use a third-party utility, such as Cocktail or Yasu, to rebuild or reset, respectively, the Launch Services database. Be sure to employ a version of the utility that is compatible with the version of Mac OS X you are using.
    OR
    2. Reset Launch Services manually: follow the steps in the order specified for the version of Mac OS X you are using.
    I tried the easy way out.
    I have had "Cocktail" for a long time (v. 4.4-current for Tiger 10.4.11) and let it rebuild the Launch Services database.
    Then after a restart The problem seemed to be cured.
    Cleaned it all up nicely
    So far so good.
    No duplicates at all.
    I was afraid I would have to re-associate everything in my system all over again, but no, it seems to be behaving nicely.
    I'll re-post if the problem re-occures , thanks.
    TTabby

  • Why does my WRT54g sometimes give me a 169.254 address???

    I have a WRT54G with firmware v1.01.0, Sep. 14, 2006. I've got an Apple G5 attached to it through one of the hardwired ethernet ports, connecting via DHCP. Once in a while, I'll get an address like 169.254.236.186 and can't connect. I have another Mac attached through a linksys wireless to ethernet bridge, and that one gets this kind of address all the time, needing to "renew DHCP lease" every couple of hours, to get a normal 192.168 address back. Can someone tell me how to fix this? Why does it give out such weird addresses? Mike Levin

    When the computer fails or face the problem to get the IP from router automatically, then it will assign 169.254.x.x IP. Check the DHCP setting on wireless router and ensure you assigned big enough DHCP IP range. Also you can take a look on this wireless router configuration help..

  • Why does download of PhotoShop require an "Application" and which one should I use?

    In attempting to download a Trial verson of PhotoShop, apparently it requires an Application.  I have no idea why or what would be an appropriate application.  No clue is provided on the screen.  Does this mean I have to pay for something for a Free Trial?

    What you are talking about is called "The Creative Cloud" application. It is the "control" program that Adobe uses to manage your Adobe applications.
    Don't worry - the creative cloud application is free and it will allow you to download Trial versions of the different Adobe packages.
    Cheers
    John

  • Why does ST03n appear to give conflicting stats?

    Ok, so I'm looking at the month of May in ST03n
    Workload Overview for the month says:
    average % DB time is 61.6%,
    average % Roll wait time is 14.1%
    If I look at Time Profile and work out the averages manually for the same month
    average % DB time is 57.92%
    average % Roll wait time is 16.91%
    More of a rhetorical question really but why does different areas of ST03n report the same thing differently?
    Which is accurate? Which is correct?

    When you put it like that, that makes sense!
    Ok so for instance (just to make sure I'm understanding correctly!) if I take the top 100 transactions in terms of number of dialog steps and calculate the average response times for those transactions - is that a more accurate representation of actual response time vs the average response time given under Workload Overview?
    Because for yesterday they're very different (Work.Over.  0.427 secs vs Trans,Pro.  0.974 secs)
    I appreciate your time on this.  thank you.

  • Why do Chatropolis entry pages give "403 Forbidden" error on all browsers?

    I've been running Mac OS 10.4.11 successfully since it's release, and I normally have the following browsers installed & working: Safari 3.1.1 (my default/first choice), Safari 2.0.4, Firefox 2.0.0.14, and the PC version of Internet Explorer (6.0.2) which I can run in Windows 2000 under Virtual PC 7.0.2 emulation.
    Suddenly, 2 days ago, for no reason at all, the ability of my Mac to access any of the chatroom entry pages on the chatropolis.com website stopped working. (Please be warned - BEFORE you visit chatropolis.com - that it primarily hosts ADULT chatrooms!). This is after many years of problem-free access to these pages, using my current Mac, and previous Macs.
    I can still access the home page, the user list pages, etc., but trying to access the room entry pages for any chatroom at all gives a simple black page with white text, which reads:
    403 Forbidden
    You are not authorized to access this resource.
    The entry pages all take the form http://csX.chatropolis.com/enter/roomname
    where "X" is the server number that the particular room is hosted on (normally "7" or "10") and "roomname" is the name of the chatroom that I'm trying to enter. For example, the URL of the room entry page for the room "Current Events" is http://cs10.chatropolis.com/enter/currentevents
    I can access any page on the Chatropolis site that DOESN'T start http://csX.chatropolis.com/enter/....... but none of the pages that DO start this way!
    This occurs whichever browser I use, and even occurs using the PC version of Internet Explorer 6.0.2 running under Virtual PC emulation!
    I've tried all of the following to solve the problem, but nothing works:
    I've tried deleting both Safari 3.1.1 & Safari 2.0.4, and then reinstalling Safari 3.1.1.
    I've purged all the caches, cookies, browsing histories, etc. of all my browsers, both within the browsers themselves, and by using Intego Washing Machine 1.1 (which comes free with Intego NetBarrier 5). I do this purging regularly anyway.
    I've restarted the Mac several times.
    Using Disk Utility, I've repaired permissions on the boot HD several times. I've verified the boot HD, and no problems were found.
    I've rebooted the Mac from my Alsoft DiskWarrior 4.0 CD and successfully run "Repair Disk Permissions" and "Check All Files & Folders" on all my hard drives, including the boot disk, and I've successfully rebuilt & replaced the directories on all the drives.
    I've successfully accessed the pages in question using a friends Mac, who lives very nearby, and uses the same product (2 MB cable broadband internet connection) from the same ISP as me.
    I've searched for all files on my Mac that have a modification date of 2 days ago, and deleted any that are in any way relevant to web browsers.
    I've emailed the owner of Chatropolis (Michael Ludwick) and asked for his help. He thought that maybe I'd installed some software prior to the problem arising, but this isn't the case. He also dismissed my theory that my ISP might be blocking access for some reason. On the day I first emailed him (Sunday), he told me that there had been over 700,000 successful logins, and that I was the only person to contact technical support that day saying that I couldn't gain access. He tells me that "The error page actually resides on your machine so the src isn't important" even though the colour scheme of the error page matches every other error page on Chatropolis!
    I now suspect that the problem lies in the part of the Mac OS which is activated when certain types of pages on the internet are accessed, whichever browser makes the call - some deep part of the OS that is normally invisible to the user, and has to function normally for certain types of internet access to take place.
    All non-entry pages on Chatropolis work perfectly, as do all other websites, as does sending & receiving email.
    Everything is bang up-to-date with Software Update. Nothing was installed or removed prior to the problem occurring.
    If anyone has any suggestions, I'd be very grateful. I'm no UNIX geek, but I've been using the Mac OS since the System 6 days, and I know my way around it pretty well. I'd rather venture into the dark abyss that is Terminal and perform some sort of command line fix than have to reinstall the entire OS!
    I've read many times over the years that Mac OS X performs housekeeping/janatorial tasks "overnight" from time to time, but I never leave my Mac on overnight. It's shutdown & restarted at least once a day. Is there perhaps one of these "housekeeping" tasks that has never been performed, and that should be, that might solve the problem? If so, how do I force these tasks to be performed immediately, to see if that helps?
    Many thanks in advance for any constructive input!

    Diamond Dave wrote:
    Reinstalling Safari 3.1.1 appears to have recreated a fresh copy of the WebKit.framework folder and all it's contents, in the correct place. Needless to say, as ever, this hasn't solved the problem...
    Hmm. Wish I'd seen your posts earlier, I could have saved you some trouble. It's nothing on your machine. It's a problem at Chatropolis. I am able access a page on one of the two machines, the one at cs10.chatropolis.com. But the one at cs7.chatropolis.com, while the server is there, and can be pinged, sends back a "404 - not found" response.
    No matter what the owner says, these errors are server errors on his end, and have nothing to do with any settings on your computer. He's simply mistaken when he says they are coming off your computer. It's possible that he's confused by how Internet Explorer on Windows can be set up so that it will give you an error page that looks a lot like the same error page you'll get from a Windows IIS server. Or he simply doesn't know the technical details.
    But it doesn't look like he's running a Windows IIS server, either. According to the headers on his servers, they're running something called "IFCS", which a little digging shows to be something owned by his company.
    charlie

  • I'm wondering..why does the outermost exception always catch the error?

    hi
    why do sometimes (or everytime) i create a code which looks something like this..
    try{
        try{
              //some error here
        } catch (Exception e){
               System.out.println("got it here: " + e.getMessage();
    }catch (Exception e){
          System.out.println("got it here instead: " + e.getMessage();
    }it's always the outermost catch block caughts the error. In this example the line got it here instead: some error messageis displayed.
    I really thought for sure the inner exception is the one who should catch the error first, right? Furthermore they both catch the same thing (Exception).
    Any information is greatly appreciated. thanks

    No, you're wrong.I'm relieved to hear that. But why does my code always does what I mentioned above? here's my code (it's a partial code, actually. it takes too many lines to put all the codes here):
    void generatePIN(String Date){
              char currentCodeChar;
              int seeder=0, serialNumber=0000000;
              int currentNumberInt=0, nextNumber=0, currentCodeInt=0;
              String voucherSerial=null, PINnumber=null, currentNumber=null, currentCode=null, nextCode=null, currentSerial=null, nextSerial=null;
              int PIN1=0,PIN2=0;
              String query=null;
              PreparedStatement ps=null;
              ResultSet rs=null;
              try{
                   //this portion here is used for proper seeding random number
                   SecureRandom sr1 = SecureRandom.getInstance("SHA1PRNG");
                   seeder=sr1.nextInt();
                   if (seeder<0){
                        seeder=seeder*-1;
              }catch (Exception e){
                   System.out.println(e.getMessage());
                   System.exit(1);
              random = new Random(seeder);
              PIN1 = random.nextInt(89999999)+10000000;
              PIN2 = random.nextInt(89999999)+10000000;
              PINnumber = "" + PIN1 + PIN2;
              System.out.println("PIN number: " + PINnumber);
              //check serial number first before storing the pin & serial number in database
              //if serial number exist, regenerate the serial number
              try{
                   try{
                   query = "select * from data1";
                   ps = con.prepareStatement(query);     
                   rs = ps.executeQuery();
                             while (rs.next()){
                             currentSerial = rs.getString("SerialNo");
                   }catch (SQLException ex){
                        System.out.println("error here?" + ex.getMessage());
                   while (currentNumberInt<=9999999){
                        currentNumberInt++;                    
              }catch (Exception e){
                   JOptionPane.showMessageDialog(null,"Database error 1: " + e.getMessage());
                   return;
         }the database is empty. hence it returns an error when i tried getting some data from it. but i expected the error message should be:
    error here? some error message..instead of the
    Database error 1: some error message pop-up being displayed.
    Did i make any mistake in my code? I've spent hours on this..
    thanks for helping

  • Why is my startup script getting a timeout error in FrameMaker?

    Using FM 11
    ExtendScript
    Windows 7
    I'm running an ExtendScript from the FM Startup directory, by starting FM from a batch file. The Extendscript opens multiple book files (one at a time) and does a save as pdf for each one. FrameMaker terminates the script with a timeout error at random points in the script after only one or two saves. The Extendscript runs fine when I run it from the FM Scripting window. It only times out when I run it as a startup script. Is there some workaround for this? Sadly, I find no documentation about this.

    Thanks, Rick. Here is the body of the Extendscript that is in the FM Startup directory. The batch file starts FM and then this script gets kicked off.
    main();
    function main() {
        log("Starting the script.");
        var controlFile = File("G:\\fmToPdf\\fmToPdf.control");
        var controlContent = null;
        if(controlFile.exists === true) {
            // Open the file.
            controlFile.open("r"); // r means read only.
            // Read the file contents into a variable.
            controlContent = controlFile.read();
            // Close the file.
            controlFile.close();
        var bookRegEx = /^book="(.*)"/;
        var targetRegEx = /^target="(.*)"/;
        var pathRegEx = /([^\\]+)$/;
        var lines = controlContent.split("\n");
        for (i = 0; i < lines.length; i++) {
            var line = lines[i];
            if (bookRegEx.test(line) === true) {
                var result = line.match(bookRegEx);
                var inBook = result[1];
                var pathComponents = pathRegEx.exec(inBook);
                var fileName = pathComponents[1].replace("book", "pdf");
                for (i = i + 1; i < lines.length; i++) {
                    line = lines[i];
                    if (targetRegEx.test(line)===true) {
                        result = line.match(targetRegEx);
                        var outBook = result[1] + fileName;
                        log("Starting to generate: " + outBook);
                        fileId = openBook(inBook);
                        saveBook(fileId,outBook);
                        closeBook(fileId);
                        log("Finished with: " + outBook);
                    } else {
                        break;
        // close FrameMaker
        Constants.FF_CLOSE_MODIFIED = 1;
        app.Close (Constants.FF_CLOSE_MODIFIED);
        log("We're done.");
        return;   
    function openBook(filename)
        var openProp = GetOpenDefaultParams();
        var retParm = new PropVals();
        var BookOpen=Open(filename,openProp,retParm);
        return BookOpen
    // save as pdf
    function saveBook(file, pdfName)
        var saveProp = GetSaveDefaultParams();
        var i = GetPropIndex(saveProp, Constants.FS_FileType);
        saveProp[i].propVal.ival = Constants.FV_SaveFmtPdf;
        //i = GetPropIndex (saveProp, Constants.FS_DontNotifyAPIClients)
        //saveProp[i].propVal.ival = true;
        var retParmspdf = new PropVals();
        // pdf settings
        file.PDFBookmark = true;
        file.PDFBookmarksOpenLevel = Constants.FV_PDFBookmarksOpenDefaultLevel;
        file.PDFConvertCMYKtoRGB = true;
        file.PDFDistillerAbsent = 0;
        file.PDFJobOption = "High Quality Print";
        file.PDFSeparateFiles = false;
        file.DocIsViewOnly = 1;
        file.Save(pdfName, saveProp, retParmspdf);
        return
    // close file
    function closeBook(filename)
        filename.Close (Constants.FF_CLOSE_MODIFIED);
    function log(message, reset)
        var logfile = File("G:\\fmToPdf\\fmToPdf.log");
        var openMode = (reset === undefined) ? "a" : "w";
        logfile.open(openMode);
        logfile.writeln(getTimeStamp() + " " + message);
        logfile.close();
    function getTimeStamp(){
        var d = new Date();
        var timestamp = d.getFullYear() + "." +
                        zeroFill ((d.getMonth() + 1), 2) + "." +
                        zeroFill (d.getDate(), 2) + " " +
                        zeroFill (d.getHours(), 2) + ":" +
                        zeroFill (d.getMinutes(), 2) + ":" +
                        zeroFill (d.getSeconds(), 2);
        return timestamp;
    function zeroFill( number, width )
      width -= number.toString().length;
      if ( width > 0 )
        return new Array( width + (/\./.test( number ) ? 2 : 1) ).join( '0' ) + number;
      return number + ""; // always return a string

  • Why does my Mac keep freezing and applications not responding?!?

    Hello everyone, I have a mid 2009 MacBook Pro, 500gb HD, 4gb ram. The problem is that it keeps freezing. I am writing this on my iPhone because my laptop would probably just freeze up if I even attempted to open an application. The problem is that my laptop won't stop freezing up. As soon as I have any application open, it will stop being responsive, give me the beach ball spinning wheel thing, and I'll use command-option-escape to open the force quit menu (because at this point the mouse usually can me moved around the screen but just makes the system get worse) to force quit what ever applications I have open. Then finder will stop responding, and then nothing will work until I do a forced shut down (hold the power button down) and turn it back on again, where the same thing happens within a minute. I tried repairing permissions and doing a P RAM reset, but have had no success with either. Please help, this is ridiculous, I can barely use my laptop and I need it for school. Thanks,
    -Dylan

    Your issue sounds like the hard drive is failing or it was bumped or moved while it was operating and corrupted the data on the drive.
    Hard to tell for sure, run through this list of fixes
    Step by Step to fix your Mac
    Note your signature says it's a 2009 model, that's almost 4 years old and near it's end of life stage of apx 4.5-5 years, a new drive might fix the machine, but clogged dust vents could be killing it too..
    Out of AppleCare and warranty, looks like you might be doing it yourself.
    Create a data recovery/undelete external boot drive
    My computer is not working, is my personal data lost?
    Install/upgrade RAM or storage drive in Mac's
    How to erase and install Snow Leopard 10.6

  • Why does LaunchPad show some of my applications to be in folders that just don't exist?

    I had a crap ton of apps in my Applications folder, and I just noticed that in LaunchPad many of those applications are grouped in 'folders' that simply don't exist as subfolders of my Applications folder.  Is there a limit on the number of screens that LaunchPad can have?  if so, this might explain the organizational compression.
    Below is a screenshot of what I'm seeing.  In the top row, there are a bunch of 'Script Debugger 4.5.6' folders that just plain don't exist in my Applications folders.  And yet LaunchPad shows them holding a bunch of apps.  Those apps ought to appear along with all the other non-foldered apps on my system.
    Am I doing something wrong?  This is pretty much a stock system, right now.  It was set up using migration assistant with a 10.6 system.
    Thanks for any advice on 'fixing' (or 'coping with') this that people can shoot my way.
    Jason

    run this script in terminal. It will reset to the default (it funtions like the reset homepage layout funtion in IOS)
    rm ~/Library/Application\ Support/Dock/*.db

  • Why does "Make Work Path" give crummy paths?

    I don't use Photoshop much, so I bet I'm missing something obvious. Lately I've been drawing hollow elipses on top of existing photos, with crummy results.
    I have been making a selection and stroking the selection (should I be doing it something different)?
    If I make the selection into a path, with "Make Work Path..." (or the icon, which doens't pop up a dialog), it gives very bad-looking paths with distortion.
    If I stroke it with Edit > Stroke, then it's great. (So I'll just use Edit > Stroke).
    But I'd like to understand why.
    Here's a screenshot:
    The one on the left is a stroked work path.
    The
    The one on the left is the stroked work path. The circle in the center is from Edit > Stroke. The path on the right is the work path from a circle.
    All circles created with Shift-dragging the eliptical marquee tool between the guides, so they shuould be the same.
    Tolerance set as low as it can go, to 0.5.
    Photoshop 12.0.2 x64 under OSX 10.6.7, but this problem is not new.

    For better results use the ellipse tool (hold down the shift key to constrain proportions)
    and add a layer style>stroke and set the fill opacity to zero.
    If you need to make a selection from a path, try a tolerance of 2.0 pixels.
    MTSTUNER
    Message was edited by: MTSTUNER

  • Why does the calc script screen freezes after executing the script

    Hello Everyone:
    When a calc script gets executed, the calc Script in the ASS freezes even though the calc script has finished it´s execution. Does anybody knows why? How can i prevent these to happen?
    Hope someone could help me, thanks in advanced
    Best Regards

    if you execute the calc script in foreground, console will freezes and it will not allow any thing to do.
    Once script is completed, console will be freed.
    You can execute the calc script in back ground so that you can continue your work and you can track the progress in the sessions.

Maybe you are looking for