No internet connection
  1. Home
  2. How to

Manualy Find and relink macro

By Alberto Cruz @Alberto_Cruz
    2023-05-10 06:14:21.142Z2023-05-12 23:04:45.098Z

    Hello!

    Trying to save myself some clicks, and stumped myself.

    Want to make a simple script that automates some of the bit of opening a session. Im receiving a bunch of sessions from a scoring stage with a large amount of missing files. These files exist in multiple places, and there is a LOT of stuff to get through, so its necessary to do a manual relink in order to prevent some weird stuff from happening and help things go a bit faster.

    Ive got something like this that I thought might work:

    sf.ui.proTools.appActivate();
    
    sf.ui.proTools.windows.whoseTitle.is("Missing Files").first.radioButtons.whoseTitle.is("Manually Find & Relink").first.elementClick();
    sf.ui.proTools.windows.whoseTitle.is("Missing Files").first.buttons.whoseTitle.is("OK").first.elementClick();
    
    sf.ui.proTools.windows.whoseTitle.is("Relink").first.elementWaitFor();
    sf.ui.proTools.windows.whoseTitle.is("Relink").first.buttons.whoseTitle.is("Find Links").first.elementClick();
    
    sf.ui.proTools.windows.whoseTitle.is("Linking Options").first.elementWaitFor();
    sf.ui.proTools.windows.whoseTitle.is("Linking Options").first.buttons.whoseTitle.is("OK").first.elementClick;
    

    Problem is, the "Find Links" Button apparently doesn't exist. And I'm not entirely sure how to get to that button for an element click.

    Maybe I'm just calling it wrong?

    Cant seem to be able to do a "pick" element on it either.

    How do I get to that button to click on it?

    • 0 replies