Script crashing

Hello folks,
I am running a script from mail.app in the rules section.
mail.app Version 3.2 (919/919.2)
OSX is Leopard 10.5.2,
Every time the script runs mail.app closes with an Ignore relaunch or send dialog.
This script runs fine in Tiger.
Here is the script:
*using terms from application "Mail"*
* on perform mail action with messages newMessages*
* repeat with newMessage in newMessages*
* tell application "Mail"*
* set senderName to (extract name from sender of newMessage)*
* say "Hello Bill, You've just received an email from " & senderName*
* end tell*
* end repeat*
* end perform mail action with messages*
*end using terms from*
any help here?
Regards,
Bill

Hello folks,
I am running a script from mail.app in the rules section.
mail.app Version 3.2 (919/919.2)
OSX is Leopard 10.5.2,
Every time the script runs mail.app closes with an Ignore relaunch or send dialog.
This script runs fine in Tiger.
Here is the script:
*using terms from application "Mail"*
* on perform mail action with messages newMessages*
* repeat with newMessage in newMessages*
* tell application "Mail"*
* set senderName to (extract name from sender of newMessage)*
* say "Hello Bill, You've just received an email from " & senderName*
* end tell*
* end repeat*
* end perform mail action with messages*
*end using terms from*
any help here?
Regards,
Bill

Similar Messages

  • Script crashes AI except when from from the ESTK...

    Has anyone run into an issue where a script crashes Illustrator except when it's run from the ESTK? The script has worked fine in the past but then when we changes to CS6 it will only complete when ran within ESTK.

    I got the same problem! In my company we have three MACs (OSX 10.6.4) connected via fibre channel to a metasan (4.5) controlled raid5 with 24TB.
    All of them crashing unexpected. Sometimes when scrolling trough the timeline, sometimes when we open a project. The performance of the raid is about 320MB/s reading.
    Updated everything, and thought this would save the problem. It got better, but it still exists. Tried to solve it for weeks and really don´t know what to do next.
    Hope anyone can help me!!!

  • Batch insert filename in textpath script crashes Illustrator

    Hi everyone!
    First off: I am not a programmer. Just playing around with code and trying to get it to work for a specific task:
    Here is a script made for the purpose of inserting a text with the file name in over 600 pdf files. This is suppose to work on all files in a selected folder.
    The problem: Illustrator crashes.
    A first test code worked but after a few edited files Illustrator crashed, so I tried to introduce a delay after each save in order to slow down the batch process.
    $.setTimeout(function () {sourceDoc.close(SaveOptions.SAVECHANGES)}, 1000);
    Unfortunately I did not save the working (almost working ) first test code.
    No idea what to do next. The code works if I delete this line: sourceDoc.close(SaveOptions.SAVECHANGES);
    Here is the complete script:
    var destFolder, sourceFolder, files, fileType, sourceDoc, layers, writeText, finLabel;
    // Select the source folder.
    sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator files you want to convert to PNG', '~' );
    // If a valid folder is selected
    if ( sourceFolder != null )
    files = new Array();
    fileType = prompt( 'Select type of Illustrator files to you want to process. Eg: *.ai', '*.pdf' );
    // Get all files matching the pattern
    files = sourceFolder.getFiles( fileType );
    if ( files.length > 0 )
    for ( i = 0; i < files.length; i++ )
        sourceDoc = app.open(files[i]); // returns the document object
        layers = unlock();
        writeText = getFilename();
        finLabel = remText();
        sourceDoc.close(SaveOptions.SAVECHANGES);   //if save command line is deleted the code works   WTF???
        $.setTimeout(function () {sourceDoc.close(SaveOptions.SAVECHANGES)}, 1000); // still crashes using delay ...
    //alert( 'Files are saved as PNG in ' + destFolder );
    else
    alert( 'No matching files found' );
    function unlock()
       //get the total number of layers in the active document
    doc = app.activeDocument;
    var totalLayers = doc.layers.length;
    //looping on layers to create one artboard per layer
    for ( var i = 0 ; i < totalLayers ; i++){
        var currentLayer = doc.layers[i];
        //We don't want to deal with hidden layers
        if(currentLayer.visible == false) continue;
        //Unlock the layer if needed
        currentLayer.locked = false;
    function getFilename()
    // Write text
    var pointTextRef = app.activeDocument.textFrames.add();
    pointTextRef.contents = app.activeDocument.name + "\n" + "YBS";
    pointTextRef.top = 0;
    pointTextRef.left = 0;
    app.activeDocument.textFrames[0].textRange.characterAttributes.textFont=app.textFonts[31];
    function remText()
    // This works for search and replace :))))))
        var active_doc = app.activeDocument; 
        var search_string = /_Template.pdf/gi; // g for global search, remove i to make a case sensitive search 
        var replace_string = ''; 
        var text_frames = active_doc.textFrames; 
        if (text_frames.length > 0) 
            for (var i = 0 ; i < text_frames.length; i++) 
                  var this_text_frame = text_frames[i]; 
                   var new_string = this_text_frame.contents.replace(search_string, replace_string); 
                   if (new_string != this_text_frame.contents) 
                            this_text_frame.contents = new_string; 
    Any ideas about what makes Illustrator crash?
    Note: The application crashes after opening the first file.
    Thanks for helping out!

    Thanks a lot Carlos!
    After deleting line 23: 
    $.setTimeout(function () {sourceDoc.close(SaveOptions.SAVECHANGES)}, 1000);
    the code worked on 499 files in one batch
    Also Turns out Illustrator kept crashing because of a corrupted pdf file.

  • Script crashes IDE and Flash Player but works in browsers

    I'm building a game program and I've got a script that loads
    an external swf, and then duplicates the clip for the user to play.
    It worked until a few days ago when I reinstalled my OS (Mac OS
    10.4.11) to fix an unrelated problem. The strange thing is that I
    had reinstalled the browser plugin to fix a related problem. Now
    the code works in the browser, but crashes the IDE and the Flash
    Player every time. I called Adobe Support but they were no help
    since it's "project related." I've reinstalled CS3 and Flash
    itself, but nothing helps.
    Here's the code that crashes:
    // INITIALIZE LOADER AND ADD TO STAGE
    var myLoader:Loader = new Loader;
    addChild (myLoader);
    myLoader.contentLoaderInfo.addEventListener (Event.COMPLETE,
    isLoaded);
    // DUPLICATE CLIP WHEN LOADED
    function isLoaded (event:Event):void {
    event.target.content.width = 100;
    event.target.content.height= 200;
    // THIS IS THE LINE THAT CRASHES
    var copyClass:Class =
    Object(event.target.content).constructor;
    var newThing:DisplayObject = new (copyClass);
    addChild (newThing);
    newThing.x +=50;
    myLoader.load (new
    URLRequest('coloring/coloring1.swf'));

    See this cool mp3 xml player with visualization, playlist and
    skins. Fully customisable. Vector.
    http://flashden.net/item/mp3-xml-strongplayerstrong-with-visualization-and-skins-vectorise d/11851

  • Script Crashes Flash

    Hello all,
    I am having problems with the attatched script. I have an if
    statement in a loop that keeps crashing flash. If I takw out the if
    statement it works. So I replaced the if statement with something I
    knew was true and it still crashed the Flash Authouring system. see
    attached code. NOTICE: The if statement " if ((1+2) == (2+1)) " is
    surely true. Thanks for any help I can get!!!
    -- Kevin

    Well I wouldn't count on that expressing being true. I'm sure
    it is, but stranger things have happened. If you want to be sure a
    conditional evaluates to true:
    if(true){
    //code
    Really is the only way to be sure.
    However I don't see why that would be the problem. Is it
    crashing Flash or is it the dreaded "Slow Script" message? What do
    you get from the trace statements? What if you put something flase
    into the if statement?

  • My Script Crashes After Effects - Blitpipe Error

    Hi,
    I have written a script for After Effects that opens a Dialog Window. It works fine the first time, but when I try a second time, it crashes with the following error. There's a lot going on with the script, so I'm not sure which part of the script is crashing After Effects. Does this error message give any indication of what it could be?
    One other detail - it doesn't happen with my PC, but it is happening on my Mac.
    Thank you.

    Hi, can`t tell you without script example.

  • Template generating script crashes acrobat x application

    Hi,
    I am fairly new to acrobat scripting. I have been beating my head against the wall on this one and have come to ask the collective. The following script works if numberPages is set to 1 (one new page is generated based on the template). When I change numberPages to 2 or more, the application crashes. Any suggestions?
    This is on acrobat x, windows 7
    Thanks,
    Roland
    var mypath = "Template1.pdf";
    numberPages = 1;
    this.insertPages({cPath: mypath, nPage: -1});
    t = this.createTemplate({cName:"signoff", nPage:0 });
    t.hidden = true;
    // spawns number of pages
    for (i = 0; i < numberPages; i++){
      t.spawn(i, true, false);

    Looks like I finally figured it out. It was something quite silly. Apparently, hiding the template before spawning it is a bad idea (at least under certain circumstances...when there are comments in the source file and a form in the template file). This script seems to work just fine so far:
    var mypath = "Template1.pdf";
    numberPages = 6;
    this.insertPages({cPath: mypath, nPage: -1});
    t = this.createTemplate({cName:"signoff", nPage:0 });
    // spawns number of pages
    for (i = 0; i < numberPages; i++){
      t.spawn(i, true, false);
    t.hidden = true;

  • Scripting Crash- "Create from Data Type" on Typedef Enum

    I just encountered a crash that I can duplicate in both LabVIEW 2013 and 2012 (student).
    Attached is a project that contains the code I used on 2012. Run the target VI.
    (I can get the project I had in 2013, if needed, sometime next week)
    Basic steps:
    Create a type def enum
    Place it on a VI
    Use scripting to get ahold of the Control Terminal and get the data type
    "Create from Data Type"

    Haha, I saved your code and ran it while I still had another project open... didn't really think that one through. Thank you, Auto-save.
    So it looks like the crash happens at the Create node. I can get rid of the crash by removing the Type Def link from the enum.
    I'm not at all an expert in scripting and have only used it a few times. Could a workaround be to get a reference to all of the Controls on the FP and copy the Control with the same Label "Enum" (instead of loading the terminal and creaing a new terminal)? Maybe creating a typedef by data type is what's causing the crash, but copying an already existing control will work.

  • Script crashing AE 6 on OSX only

    I wrote a script for a client. It's very similar many other scripts I've written for this client and others. The script does not fail on my PC but it does crash when the script tries to save the project at the end. They have gotten two different errors. I also have crash logs but don't know what to look for in there. Any ideas on how to troubleshoot this would be appreciated!
    and

    I wrote a script for a client. It's very similar many other scripts I've written for this client and others. The script does not fail on my PC but it does crash when the script tries to save the project at the end. They have gotten two different errors. I also have crash logs but don't know what to look for in there. Any ideas on how to troubleshoot this would be appreciated!
    and

  • Can't use anymore Gmail with Firefox 32.0.2. Script Crash all the time

    The same thing happends with 30, 32 and 32 versions.
    Some time ago I found a solution in internet (the solution make me do things in about:config) and that new configuration works very well (in my desktop computer)... Now I dont remember which changes I made and i can´t find the same solution to apply in my notebook.
    So... in my Notebook Gmail doesn´t work with FireFox... and in my desktop, works fine. My Notebook is more powerfull than my desktop machine.
    I try other solutions suggested in Firefox Forums but the issue continues... (Factory Reset, Re-install, Javascript not enabled... etc etc) Nothing work...
    So in my Notebook I use Firefox (browser that I love and i been using from version 2 or 3) and Google Chrome (Browser that I DON´T LOVE AT ALL) for Gmail
    Thanks in advance for any help

    If you have submitted crash reports then please post the IDs of one or more recent crash reports that have a "bp-" prefix:
    *bp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    You can find the Report ID of recent crash reports on the "Help > Troubleshooting Information" page (about:support).
    *Click the "All Crash Reports" button on this page to open the <b>about:crashes</b> page and see all crash reports.
    If necessary then you can open <b>about:</b> pages via the location/address bar.
    See:
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter
    *https://support.mozilla.org/kb/Mozilla+Crash+Reporter

  • Why am i getting Adobe Flash Player script crashes?

    ello,
    I've noticed in the last week or two my scripts for Adobe Flash Player completely freezing up. After a full five minutes of freezing, I get a general warning that:
    "A script in this movie is causing Adobe Flash Player to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?"
    "become" unresponsive? lol Anyway, even after I click "yet", it still takes a least another five minutes before it unfreezes. Now, I used to problems with Jave scripts, but those wouldn't take tens-of-minutes to abort. I've literally had Adobe Flash Player scripts freezes for 15 minutes at a time leaving my browser completely unresponsive.
    I'm having this problem particularly when I visit the site Wonkette.

    Come on. No one else is having this problem?

  • GP login script causes windows to crash

    We have a script that runs on all computers that opens our intranet. This script crashed Windows build 9926 overtime. Is there any way to fix this. Also I can't install the new build because the HP printers update fails everytime.

    Hi,
    How did you determined that it is the script caused this problem? If this problem caused by the script indeed, what't the function of this script?
    For HP printer problem, it's probably a driver compatibility with new system problem, it would be better to contact HP support to confirm this issue.
    Roger Lu
    TechNet Community Support

  • [JS CS3] Crash by using FindChange-Script

    This is a very unusual and mysterious problem:
    I've a document within 10 stories (my chapters) und I want to replace all quotation marks by using the FindChange-Script ...
    text    {findWhat:"^{"}    {changeTo:"<00BB>"}
    When I execute the script about each separate story the script works fine. But when I execute the script about the whole document a progress bar with the text "Replacing text" is started. And by reaching the end InDesign crashes with the information "unknown software exception (0xc000000d)".
    I already tried the same script on a different computer and by copying all stories in one. Nothing works!?
    So it seems that the script crashes because of the size of the document!?
    Did anyone know this kind of problem? ... I don't get it!???
    H.
    PS: Replacing all quotation marks by the InDesign-Search+Replace works fine too.

    Hi Olav,
    a) My hard drive has 13 GB free space and was defragmented a week ago. In addition: I tested the script on an other computer with the same result.
    b) All fonts are embedded and I am the "administrator"
    c) The script is executed by the "doScript" method:
    function myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
        //Reset the find/change preferences before each search.
        app.changeTextPreferences = NothingEnum.nothing;
        app.findTextPreferences = NothingEnum.nothing;
        var myString = "app.findTextPreferences.properties = " + myFindPreferences + ";";
        myString += "app.changeTextPreferences.properties = " + myChangePreferences + ";";
        myString += "app.findChangeTextOptions.properties = " + myFindChangeOptions + ";";
        app.doScript(myString, ScriptLanguage.javascript);
            myFoundItems = myObject.changeText();
        //Reset the find/change preferences after each search.
        app.changeTextPreferences = NothingEnum.nothing;
        app.findTextPreferences = NothingEnum.nothing;
    The curious thing about is: When I search for other items e.g. n-dashs the script works fine. It crashes just by searching quotation marks.
    But even though: Thanks for the your answers!
    H.

  • DB recovery crashes when executed from script, finishes OK manually

    Hello everybody,
    I have a DB restore script which I used/tested a lot of times. On the last run it crashed in the archivelog recovery phase, but I was able to open the instance when applying the remaining commands manually.
    DB is a 10g2 on Solaris 10, I have a full backup made with EMC NetWorker. After taking the backup, the machine was re-installed from scratch (OS, additional 3rd party software, Oracle software and backup client). A new, empty DB instance was also created.
    Restore script performs the following:
    - checks/creates directory structure needed by Oracle instance;
    - stops the listener;
    - shuts down the new instance;
    - startup mount exclusive, enable restricted session;
    - drops database instance via RMAN
    - recovers the orapw, spfile, tnsnames.ora and listener.ora files from the backupset;
    - stars the instance in nomount;
    - replicates the controlfile from a saved copy in the backupset;
    - mounts the instance;
    - starts the following RMAN sequence:
    run {
    set until $LAST_SCN_IN_BACKUPSET;
    allocate channel c3 type 'sbt_tape' parms 'ENV=(....)';
    restore database check readonly;
    recover database check readonly;
    release channel c3;
    sql 'alter database open resetlogs';
    - starts the listener.
    Almost all is performed OK, until the "recover database check readonly" command, where the recover crashes with the following messages:
    Starting recover at 18-FEB-09
    starting media recovery
    channel c3: starting archive log restore to default destination
    channel c3: restoring archive log
    archive log thread=1 sequence=17
    channel c3: reading from backup piece 09k7hb2h_1_1
    channel c3: restored backup piece 1
    piece handle=09k7hb2h_1_1 tag=TAG20090216T181752
    channel c3: restore complete, elapsed time: 00:00:36
    archive log filename=<...>/oracle/oradata/SNM/arch/arch_1_17_678643049.arc thread=1 sequence=17
    released channel: c3
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 02/18/2009 19:58:19
    ORA-00283: recovery session canceled due to errors
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '<...>/oracle/oradata/SNM/arch/arch_1_17_678643049.arc'
    ORA-00283: recovery session canceled due to errors
    ORA-19755: could not open change tracking file
    ORA-19750: change tracking file: '/alcatel/oracle/oradata/SNM/bct.dbf'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Recovery Manager complete.
    The curious thing is that when I ran the following commands manually (from RMAN), the recovery was OK:
    run {
    set until scn $LAST_SCN_IN_BACKUPSET;
    recover database check readonly;
    (finished in a couple of minutes)
    sql 'alter database open resetlogs';
    (finished after a few minutes)
    lsnrctl start (from shell) - OK.
    Could somebody point me to the possible causes of this behavior?
    Thank you all for your time,
    Adrian

    Hi Werner,
    Thank you for your reply.
    Yes, I'm using the block change tracking file. As the DB instance was re-created when the machine was installed, the bct must have been created also. However, in my script I dropped the DB instance, and the bct was, most likely, deleted, as were all the other datafiles.
    After the restore script crashed, I had no bct file in the expected location (which is the location of all the datafiles).
    I'm wondering why the bct could not have been created during the run of the restore script.
    Looking through the alert log, I realise I tried an "alter database open resetlogs" before running the recovery sequence, and at that point, the bct was created.
    Then, the second attempt to open the instance was successfull - please see below the messages from the alert log:
    Thu Feb 19 09:43:47 2009
    alter database open
    Thu Feb 19 09:43:47 2009
    CHANGE TRACKING is enabled for this database, but the
    change tracking file can not be found. Recreating the file.
    Change tracking file recreated.
    Block change tracking file is current.
    ORA-1589 signalled during: alter database open...
    Thu Feb 19 09:43:54 2009
    alter database open resetlogs
    ORA-1196 signalled during: alter database open resetlogs...
    Thu Feb 19 09:48:04 2009
    alter database recover datafile list clear
    Thu Feb 19 09:48:04 2009
    Completed: alter database recover datafile list clear
    Thu Feb 19 09:48:04 2009
    alter database recover datafile list
    1 , 2 , 3 , 4 , 5 , 6 , 7 , 8
    Completed: alter database recover datafile list
    1 , 2 , 3 , 4 , 5 , 6 , 7 , 8
    Thu Feb 19 09:48:04 2009
    alter database recover if needed
    start until change 7033941 using backup controlfile
    Media Recovery Start
    parallel recovery started with 7 processes
    ORA-279 signalled during: alter database recover if needed
    start until change 7033941 using backup controlfile
    Thu Feb 19 09:48:05 2009
    alter database recover logfile '/alcatel/oracle/oradata/SNM/arch/arch_1_17_678643049.arc'
    Thu Feb 19 09:48:05 2009
    Media Recovery Log /alcatel/oracle/oradata/SNM/arch/arch_1_17_678643049.arc
    Thu Feb 19 09:48:43 2009
    Incomplete Recovery applied until change 7033941
    Thu Feb 19 09:48:43 2009
    Media Recovery Complete (SNM)
    Completed: alter database recover logfile '/alcatel/oracle/oradata/SNM/arch/arch_1_17_678643049.arc'
    Thu Feb 19 09:49:10 2009
    alter database open resetlogs
    <....>
    Thu Feb 19 09:50:47 2009
    LOGSTDBY: Validation complete
    Starting control autobackup
    Control autobackup written to DISK device
    handle '/alcatel/oracle/oradata/SNM/flash_recovery_area/SNM/autobackup/2009_02_19/o1_mf_s_679225849_4st3tswj_.bkp'
    Completed: alter database open resetlogs
    So, to recap:
    - bct file not created at first try (restore script);
    - bct file created during the failed attempt to open the db (manual command);
    - second attempt to open the db successfull (manual command).
    The behavior doesn't seem to be systematic, as I don't think this happens every time. In this case, I'm starting to wonder if it wouldn't be a good idea to disable the bct before starting the restore, and then to enable it back when the db is opened.
    Thank you again for your idea,
    Adrian

  • [PS CS5] Type tool-related crash.

    The Checklist: Photoshop CS5 12.0.4 x64 running on a Windows 7 x64 SP1 machine, with 8 GBs of RAM, plenty HD space on both drives (174GB free on C, 321GB free on D), no related software interferring with Photoshop that I know off, besides an Intuos 4 tablet and its drivers. Nothing new installed in the last 24 hours, besides Bastion via Steam, so most likely unrelated.
    Okay... here's the issue.
    Yesterday, Photoshop was working perfectly I used it to do a wide number of annotations with text. Shut off the machine, start of a new day. Did some art, and when I selected the Type too it went "Could not complete your request because of a program error.". I tried selecting it again, and Photoshop crashed.
    So I went for google. I found http://helpx.adobe.com/photoshop/kb/troubleshoot-fonts-photoshop-cs5.html and got to using it as a reference to solve this issue, at the least, the Windows part of the instructions.
    PS already was at the current version (12.0.4)
    I have no idea how to go around testing the fonts, but I didnt install any new ones, nor think any programs installed new fonts. Nor I know how I can go around testing each font.
    Disabling font preview didnt work.
    The script crashes PS.
    Deleting the font cache means PS now crashes right after startup, instead of giving the program error message. Since the text tool is pre-selected from the previous attempts and all.
    All the required fonts seem to be present; if they arent, how can I go reinstalling them? By reinstaslling Photoshop?
    I cant provide a crash log yet, mostly because I dont know how to.

    Though it seems odd to me that a font would work one day, but crash the program the next, if you have not seen this Adobe KB Article, there might be something useful in it: http://helpx.adobe.com/photoshop/kb/troubleshoot-fonts-photoshop-cs5.html
    Good luck,
    Hunt

Maybe you are looking for

  • Facebook and apps freeze whenever I click anywhere on the page.

    I open Facebook and immediatly the page stops scrolling, the mouse wont move,and every game either doesnt load or freezes.Always takes forever for the game to load if it even tries to load.

  • How to delete the values from TKOMV at runtime after creating PO

    Hi,   How to delete the values from TKOMV at runtime after creating PO from IDOC. I am creating PO through IDOC, subsequently need to create Sales order and again need to create 2nd PO with reference of Purchase Requestion(created with sales order).

  • Try to call wfs.exe (MS fax and scan) with webutil_host !!

    hi, I would call from Forms the MS scan and fax application "wfs.exe". This is found under windows\system32. call: WEBUTIL_HOST.NONBLOCKING ('cmd /c C:\windows\system32\wfs.exe'); Unfortunately, nothing happens. No error message and no cmd-process re

  • How can I take a pic

    Hi Can not detect the font of the text, I was wondering if I can take a pic of the original text and paste it in the editing pdf, is it possible to do this and how can I take a pic of the selected area of the pdf?

  • APP-PAY-06074: Current or future payroll periods are closed

    I am trying to reverse the termination for an employee and i am getting this error: APP-PAY-06074: Current or future payroll periods are closed. I have checked my current payroll periods they are OPEN and the future as well are OPEN. Please help me a