Leopard Automator "Watch Me Do" Excel Scripts Break

Earlier this year I developed a moderately complex set of Applescript/Automator scripts involving Excel and Firefox sharing information. Over the summer I upgrade my computer (i7 MacBook Pro 17 inch), which involved a move from Leopard to Snow Leopard.  I also moved from Office 2004 to Office 2011. As might be expected, the scripts do not work.
In running some simpler tests to debug, I found that Automator "Watch Me Do" capability is part of the problem.
It does not seem to be able to automate mouse movements as before.
It does not seem to be able to click on an Excel window and bring that window to the front for additional action.
The Universal Access Preferences is set to "Enable access for assistive devices".
Any words of advice?
Keith

I've found a solution which may or may not help anyone reading this.
I discovered that pressing the TAB key, highlighted my user name field (which is filled automatically by Safari). This seemed to make the login button "live" again and pressing Enter/Return logged me in.

Similar Messages

  • Automator Watch Me Do gets stuck on "Enable Access for Assistive Devices

    I built a simple Automator Watch Me Do Work Flow that simply pastes text I have already copied into Text Edit and then sets the Font, Size, Color and Make All Caps function.  Every time I run the script it stops and gives me the following error "Enable Access for Assistive Devices".  I have gone into System Preferences/ Universal Access a number of times and confirmed the check box is selected, I even unselected the check and ran the Auotmator script and went back and reselected the check box, I even rebooted my machine, I tired this on another Mac same problem. I must be missing something, can anyone help me out?

    Boot into recovery mode and reinstall the OS. You don't need to get it from the App Store.
    27" i7 iMac (Mid 2011) refurb, OS X Mavericks (10.9.4), ML & SL, G4 450 MP w/Leopard, 9.2.2

  • Automator "watch me do" function freezes finder

    As I was creating a new service using the "watch me do" function in automator, my finder froze each time I tried to test the service I just created. As I was watching the recorded steps, the cursor would start to move extremely slowly and finally froze completely. I was able to reproduce this problem several times. This is in SL 10.6.

    I am experiencing the same thing in SL 10.6.1. I was testing a very short and simple automator "watch me do" workflow to perform a simple cut and paste between iWork 09 Numbers and Filemaker 10. Cursor did not freeze but began to move extremely slow. The first and second iteration seemed to work okay. But, it took 87 and 108 seconds to complete third and fourth tests. Successive efforts had similar results. This workflow had only one step (watch me do) in it and nothing else. It was also not part of a loop. I was also NOT able to force quit out of this.
    I never experienced this with Leopard. Is this a bug or is there something new with Automator in SL that I am not picking up on?

  • Automator "Watch me do"

    Hi all,
    I’m trying to create a workflow with automator with a lot of "watch me do" actions.
    This workflow will help me to simulate FCP actions.
    My workflow works fine but if I put it in a loop, sometimes the mouse go and click in the wrong window and all my script fail (I recorded the click in the player but Automator play it in the time line).
    Sometimes, all the GUI freeze and I must kill automator with ssh.
    I read that automator have some problems on snow leopard. Do you know if there is a fix or if it's possible to use the Leopard version of automator on snow leopard?

    I've had similar frustrations.

  • Automator -Watch me

    I thought I'd try the new "Watch me do" feature in Automator and I was rather surprised that it did capture the entire action. Of course I made some mistakes - so I'm wondering how you edit the events?
    I can click on them individually but I can only delete the whole workflow box.
    Sorry if I should have put this on some other forum... I don't see Automator jumping out at me here or on the Leopard one. Just to relate this back to Applescript - I'm going to have a race between an Applescript and the Automator recording at 10x

    Thanks! - this is actually a keyboard problem... I've been hitting the wrong delete key! the one above the |\ deletes individual items in the workflow. It doesn't take much to break a workflow - I was trying to automate some Safari actions and even having it open to another site (this one) made it die because of the dialog box. Also, even at 10x speed it is glacially moving the mouse around... hmmm maybe if I turn off show results?... If I didn't have a AppleScript option this would be interesting...
    Ok I'll go find the Automator forum now.

  • Automating using Photoshop Actions & Excel document??

    Hi - I'm new to automator and I wanted to know if it was possible to have automator run photoshop actions and also pull info from an excel document. Here is ideally what I’d like to do:
    I receive hundreds of images (book covers & interiors) that I’d like to resize and rename automatically when they are Dropped into a folder.
    There are 3 different resizes that I’d like to be done. I have the resizing actions in photoshop already. I run the automate>batch command in photoshop, but I’d still like to make it simpler.
    Original files – These are how I receive the files and I clean them up to look like this.
    - COVERS – i.e. 140394877213_ccvr.tif
    - SPREADS – i.e. 140394877213_csp1.tif, 140394877213_csp2.tif, etc.
    Here are the different folders
    Folder 1(sized for catalog use) – action set up in photoshop cs2 that will size covers, another action to size spreads at a different size.
    - covers – bookname.tif
    - spreads – 140394877213_csp1.tif
    Folder 2 (smallest sized cover) – action in photoshop to resize cover
    - covers – 140394877213.tif
    Folder 3(sized for powerpoint presentation) – action in photoshop that will resize covers to a certain size, and a separate action that will size spreads to another size.
    - covers – bookname.tif
    - spreads – bookname_csp1.tif, etc.
    5 photoshop actions in total
    When the original files are dropped into the specified folders (folder 1, folder 2, folder 3), a photoshop action is run that resizes all the files in the folder and also renames the files.
    Can I do this? I have all the books and isbns in an excel document that I’d like automator or applescript to pull the information from the excel doc to rename the files accordingly.
    Also, is there a way to record the names of the files I receive in an excel document?
    Or even better, after the images are placed in the folder, can a script check the excel document (that has the listing of the booknames and isbns) and mark off which files where received and placed in the folder. I hope that was clear.
    Any help or advice would be much appreciated!
    MacBook   Mac OS X (10.4.8)  

    ngb111,
    I know this is possible through AppleScript as I just finished off a script that renames files based on an Excel list.
    http://discussions.apple.com/thread.jspa?threadID=871047&tstart=0
    It might be also be possible using Automator through some third-party Automator actions.
    http://www.hanaan.com/Automatorbookonline/Automator%20Actions%20Download.html

  • Automator: current directory in shell script not accepted

    Hi!
    I wrote a bash script requiring first the directory where the script is.
    #!/bin/bash
    cd "`dirname \"$0\"`"
    convert *_A.jpg *_N21.jpg *_I3.jpg -background black -compose screen -flatten merge.jpg
    exit
    The script runs fine itself. I want to integrate this as an Automator's service, right-clicking on random image and starting the script in THAT directory.
    Unfortunately, cd "`dirname \"$0\"`" doesn't seem to work when built in automator and Home directory is always default.
    I also tried in automator with this http://img84.imageshack.us/img84/9317/schermata20100605a00251.png (sorry it's italian,below a translation)
    Folders in Finder
    1)Obtain specified items from Finder: Path
    2)Shell script
    #!/bin/bash
    cd $@
    convert *_A.jpg *_N21.jpg *_I3.jpg -background black -compose screen -flatten merge.jpg
    exit
    and fails too.
    All solutions will be appreciated
    Thanks
    Stefano

    Try the Unix forum under OS X Technologies for bash scripting and these for automator stuff:
    http://www.macosxautomation.com/
    Introduction to Automator tutorial at http://automator.us/leopard/video/index.html
    http://www.automatedworkflows.com/tips/podcast.html and
    http://www.macosxautomation.com/automator/examples/ex04/index.html
    and finally the Automator forum under OS X Leopard.

  • Bug with Excel script

    I wrote a script that:
    1. gathers data from cells copied in an excel spreadsheet
    2. creates variables from data
    3. creates a new job folders using variables
    4. copies an excel file into the job folder
    5. opens the excel file and fills in specified cells with variables
    6. saves and closes the excel file
    The problem I'm having is with the last step. Instead of closing the new file, it wants to close the other document I copied from. Here is the last bit of code.
    tell application "Microsoft Excel"
    open myexcelfile
    set value of cell ("A" & 2) to myvariable1
    set value of cell ("B" & 2) to myvariable2
    set value of cell ("D" & 2) to myvariable3
    set value of cell ("G" & 2) to myvariable4
    save myexcelfile
    close workbook myexcelfile
    end tell

    Hi
    You may be running into an issue that is pointed out here (refer to Opening a Workbook)
    http://www.mactech.com/articles/mactech/Vol.23/23.02/2302AppleScript/index.html
    "When referencing the active workbook property, one thing to keep in mind is that, if another workbook is brought to the front, then your script may reference the incorrect workbook. Because of this, it is recommended to reference workbooks by name."
    So based on the info from above the below may work for you?
    set _File to choose file with prompt "Select File"
    set theName to name of (info for _File)
    tell application "Microsoft Excel"
    open t_File
    set thebook to workbook theName
    -- DO YOUR GATHERING STUFF --
    close workbook thekbook saving no
    set myexcelfile to choose file with prompt "Select File"
    open myexcelfile
    set value of cell ("A" & 2) to myvariable1
    set value of cell ("B" & 2) to myvariable2
    set value of cell ("D" & 2) to myvariable3
    set value of cell ("G" & 2) to myvariable4
    save myexcelfile
    close workbook myexcelfile
    end tell
    Budgie

  • Webi report - Excel Source - breaks if excel is edited

    I have a Webi Report that uses Excel has its data source. I have many variables defined in the webi report. Now, I had to add a new column in the source excel. When I do that, all the variables in the webi report break. Is there a way around this? I want to add columns to excel and not break my variables. Using BO 4.0 SP5.

    The references in variables are changing.
    Suppose I have Field1, Field3 in excel (Field Selection - All fields). I create a variable Field1 + Field3 and show it on report. If I add a new column Field2 in the excel in between Field1 and Field3,  and refresh and point/load that excel, the variable changes by itself to Field1+Field2. It seems like I need to rebuild the webi report again. This is just an example. All varaiable references seem to break. Have you not had such problems?

  • I need a simple script (Break Link To Style)

    Hi nice guys,
    Can someone please provide a simple script that will break the links to styles in all the paragraphs in a document.
    Thanks in advance
    Maria*
    *An non coder designer that simply is not capable of understanding javascript... (but I have tried!)

    Hi Maria,
    Jongware's post (http://forums.adobe.com/message/1890625#1890625) gave me a clue on how to do this.
    Give this a try:
    var i, j, myDoc = app.activeDocument,
              allStories = myDoc.stories,
              thisStory,
              thisPara;
    for (i = 1; i < allStories.length; i++) {
              thisStory = allStories[i];
              for (j = thisStory.paragraphs.length - 1; j >= 0; j--) {
                        thisPara = thisStory.paragraphs[j];
                        thisPara.applyParagraphStyle(myDoc.paragraphStyles[0], false)
    alert ("Job Done!");

  • Export to Excel - Without Breaks

    Hi,
    I have a report that breaks one the first three columns.
    The same result is true when I use Export to Excel option, however my users don't want to see breaks in Excel. Is this possible out of the box?
    Thanks
    VC
    I am actually using an example I saw at http://spendolini.blogspot.com/2006/04/custom-export-to-csv.html
    null

    It might be a couple which you can easily delete
    By design, you can only export items and if you plan to export attachment or attachment url's. See some ref links here:
    http://kbochevski.blogspot.in/2012/01/export-splist-with-attachments-openxml.html
    http://blog.furuknap.net/exporting-sharepoint-lists-to-excel-including-attachments
    If this helped you resolve your issue, please mark it Answered. You can reach me through http://itfreesupport.com/

  • Web app tag is causing a scripting break

    Okay, here is the proper script:
    if (iTotal > 6){
                                                    $('#CalcTotal').html('<strong>' + iTotal + '</strong>,<div  id="choice"> {module_webapps,15515,i,4011348,,,true,10,,1}</div>');
    When it renders in  the browser, no matter what I seem to try it breaks the code into two lines, like so;
                           $('#CalcTotal').html('<strong>' + iTotal + '</strong>,<div  id="choice"> <a   href="/charts/model-3-conservative-lt">Model 3 - Conservative LT</a>
    </div>');
    What should I try next?
    Thanks,
    Matt

    here is the link http://pencal.businesscatalyst.com/chart, but I have of changed all the scripting to make it work a different way. Firebug picked up the line break error.  the module tag was inserting a line break.

  • Snow Leopard Automator - where are the files saved?

    Hi,
    I've been trying to run some Automator apps I have. In Tiger, the files would be saved in the same directory as the original files, but in Snow Leopard I can't find them anywhere. I'm having trouble with Spotlight (in another post), so I can't search for the files as I would normally do.
    Any ideas where Automator might be saving these files? Same behaviour when I create a new app as well, can't find the files...
    Thanks
    osu

    I think I just found them myself: in your user's Library > Workflows > Applications

  • Automating pdf printing in Excel

    Hi
    I've searched all over the Adobe website for some basic product information and failed completely. Hopefully, someone here will be able to help me.
    I'm looking to write some VBA code in Excel that will effectively do a mail merge and produce a number - about 300 - of tailored pdf files (or one large pdf file made up of a number of tailored documents). But I can't find out from the website whether this is possible with Acrobat and if it is, which version I would need.
    The main requirements are:
    * Printing to pdf controllable via VBA so that there is no user intervention - ie the filename can be set automatically in code without any nasty "sendkeys" type hack
    * Ability to append a number of documents into one pdf file
    Thanks for your help,
    A

    Ok, the reason for the question was licensing: different products
    needed. In this case, Acrobat Professional (perhaps Acrobat Standard)
    would fit the bill. As a developer with Acrobat you would want the
    Acrobat SDK, a vast collection of documentation on how to automate
    Acrobat, often missing all the things that people most want to do.
    You can
    * Use the Distiller API to bypass the filename prompt when printing to
    PDF. (This implies you use Excel automation to get as far as choosing
    the Adobe PDF printer, and "printing").
    * Use the Acrobat API to remote control Acrobat to open a PDF, and add
    pages from other PDFs, then finally save.
    Aandi Inston

  • Skipping errors in WBS elements closure with a SAP / Excel script.

    Hai there!
    I have a Excel / SAP macro for closing WBS elements in transaction CJ20N. This macro works fine until error messages occur (or warnings) in SAP because something was not completed on the WBS element.
    So then I thought the macro may be able to skip the WBS element that has errors on it and continue trying to close the next one instead? And then make a little mark in my list of WBS elements to close. That would save loads of time.
    Is this possible? This is what I have in the code right now.
    WBSToClose = ActiveCell.Offset(0, 1).Value
    session.findById("wnd[0]").maximize
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell").topNode = "         23"
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[0]/shell").pressButton "OPEN"
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").Text = WBSToClose
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").SetFocus
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").caretPosition = 0
    session.findById("wnd[1]").sendVKey 0
    session.findById("wnd[0]/mbar/menu[1]/menu[1]/menu[6]/menu[0]").Select '<--- This is the close button, after this errors sometimes occur.
    session.findById("wnd[0]/tbar[0]/btn[11]").press '<--- save button.
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell").topNode = "         23"
    Below is an example of an error message popping up while trying to close.
    session.findById("wnd[0]").maximize
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell").topNode = "         23"
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[0]/shell").pressButton "OPEN"
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").text = WBSToClose
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").setFocus
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").caretPosition = 18
    session.findById("wnd[1]").sendVKey 0
    session.findById("wnd[0]/mbar/menu[1]/menu[1]/menu[6]/menu[0]").select '<--- Selecting close
    session.findById("wnd[1]/usr/btnOPTION2").press '<--- Here I click "Continue" on the error message
    session.findById("wnd[0]/tbar[0]/btn[3]").press '<--- Back button
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell").topNode = "         23"
    I would also like the script to put a little mark in my excel file showing which WBS elements that had errors on them. Just a number or so. But thats a bonus.
    Is this possible?
    Thanks, Mattias

    Hello again!
    Thanks alot! I got it to work perfectly with some modifications to the code.
    Posting the solution in case someone can find it useful.
    If (ActiveCell.Value = 0) Then
    Row = 2
    Column = 1
    WBSToClose = ActiveCell.Offset(0, 1).Value
    session.findById("wnd[0]").maximize
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell").topNode = "         23"
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[0]/shell").pressButton "OPEN"
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").Text = WBSToClose
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").SetFocus
    session.findById("wnd[1]").sendVKey 0
    session.findById("wnd[0]/mbar/menu[1]/menu[1]/menu[6]/menu[0]").Select '<-- Selecting close
    session.findById("wnd[0]/tbar[0]/btn[11]").press '<-- Save button.
    On Error Resume Next
    session.findById("wnd[1]").Close '<-- Close window button on any error message or warning
    If Err.Number = 0 Then
    ActiveCell.Value = 2
    session.findById("wnd[0]/tbar[0]/btn[3]").press '<--- Back button if error message
    End If
    On Error GoTo 0
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell").topNode = "         23"
    Row = Row + 1
    End If
    If ActiveCell.Value = 2 Then GoTo Fortsaett '<-- Skipping writing "1" in "processed"
    ActiveCell.Value = 1
    Fortsaett:
    n = n + 1
    ActiveCell.Offset(1, 0).Select
    'Some looping hereafter
    Points awarded.
    Thanks, Mattias

Maybe you are looking for

  • IDOC in 03 staus but not coming to PI system..

    Hi Experts, I am working on IDOC to IDOC scenario.All of the IDOCs are in 03 status in R/3 system but some of the IDOCs are not coming to PI system.I checked SM58 also but its fine. Should it be in 12 staus? Is it possible that IDOC in status 03 can

  • X server won't start (Arch Linux installed on USB key)

    Hi, I installed Arch Linux on a USB key (see the original thread: https://bbs.archlinux.org/viewtopic.php?id=185441). The problem is that X doesn't start on all machines. When starting the system on a machine with NVIDIA GTX 560Ti graphics card: - X

  • Applied 11.0.07 msp to 11.0.00 msi, but patched msi defective

    applied 11.0.07 msp to 11.0.00 msi, but patched msi fails with error 1334 (acroext.exe not found)

  • Hide a binded TreeViewItem in a TreeView

    Hello, In my application, i have binded a ObservableCollection to a TreeView using an HierarchicalDataTemplate. On some condition i am firing an command and i have to hide few of the treeviewitems from the treeview.  In this command, few conditions i

  • Control/Default values in Service Notifications and Service Orders

    Hi all, When in transaction IW52 and IW32 I know you can maintain a set of default values for when you are either creating a Service Notificaiton and/or a Service Order. My scenario is as follows:- User 1 has a set of default values and it contains W