Mac OS High Sierra Desktop Automation issues with bringing up "Go to the Folder" Keyboard Shortcut

Hi everyone,

First of all - discovering UI Vision has blown my mind - the potential to automate across multiple apps is just amazing.

I’ve only been 4-5 days on the system, but I’m hitting a few little snags. Perhaps it’s a bug?

Running Mac OS High Sierra and trying to do Desktop Automation. In the very first Macro example below, it successfully triggers the ${KEY_CMD+KEY_SHIFT+KEY_G} to bring up the “GO TO THE FOLDER” dialogue within a SAVE DIALOGUE box within Adobe Indesign.

This is so that I can navigate to a specific directory to save a PDF.

I’ve had to preceed the {KEY_CMD+KEY_SHIFT+KEY_G} Xtype with three {KEY_TAB} steps and one 3000ms Pause to get it to work.

IT WORKS IN THIS MACRO

{
  "Name": "Create SRA3 Indesign Document and Save",
  "CreationDate": "2020-7-16",
  "Commands": [
    {
      "Command": "XRun",
      "Target": "/Applications/Adobe InDesign 2020/Adobe InDesign 2020.app/Contents/MacOS/Adobe Indesign 2020",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "3000",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_CMD+KEY_TAB}",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "10000",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_CMD+KEY_N}",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "1500",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_TAB}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_TAB}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_TAB}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "450",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_TAB}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "320",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_TAB}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_ENTER}",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "3000",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_CMD+KEY_S}",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "3000",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "SRA3_Imposed",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "3000",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_TAB}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_TAB}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_TAB}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_CMD+KEY_SHIFT+KEY_G}",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "5000",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "/Documents/Automation Saves",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "5000",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_ENTER}",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "5000",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_ENTER}",
      "Value": ""
    }
  ]
}

However, when I’ve tried to bring up the Go to the Folder command using the same preceeding TABS and Pause it’s not bringing up the “GO TO THE FOLDER” dialogue.

I can manually trigger the dialogue to appear if I hit the key combinations with my physical keyboard.

It seems that if I trigger a ${KEY_CMD+KEY_D} to take it to the desktop it responds to those XType steps.

My theory is that it’s that having two modifier keys plus the ‘G’ key doesn’t work. ie. ${KEY_CMD+KEY_SHIFT+…}

But if it’s just ${KEY_CMD+…} it does work.

I’m running:
FileAccess XModule v1.0.12
RealUser XModule v1.0.12
DesktopAutomation XModule v1.0.19

Is it a bug? Or am I missing something fundamental here?

Many thanks!

Jack.

IT’S NOT WORKING IN THIS MACRO

    {
      "Name": "Loop and download orders",
      "CreationDate": "2020-7-16",
      "Commands": [
        {
          "Command": "open",
          "Target": "REDACTED_URL_FOR_PRIVACY/?page=orders-printer;Status=printed",
          "Value": ""
        },
        {
          "Command": "clickAndWait",
          "Target": "linkText=View details@POS=${!loop}",
          "Value": "",
          "Targets": [
            "linkText=View details@POS=3",
            "xpath=//*[@id=\"container\"]/div[2]/form/div[4]/div[2]/a",
            "xpath=//div[4]/div[2]/a",
            "css=#container > div.content > form > div:nth-child(4) > div.mnuOder > a.padded.mnuOdrView"
          ]
        },
        {
          "Command": "click",
          "Target": "linkText=PDF@POS=2",
          "Value": "",
          "Targets": [
            "linkText=PDF@POS=2",
            "xpath=//*[@id=\"container\"]/div[2]/div/a",
            "xpath=//div[2]/div/a",
            "css=#container > div.content > div.noprn > a:nth-child(1)"
          ]
        },
        {
          "Command": "selectWindow",
          "Target": "tab=1",
          "Value": ""
        },
        {
          "Command": "XDesktopAutomation",
          "Target": "true",
          "Value": ""
        },
        {
          "Command": "pause",
          "Target": "3000",
          "Value": ""
        },
        {
          "Command": "XType",
          "Target": "${KEY_CMD+KEY_S}",
          "Value": ""
        },
        {
          "Command": "pause",
          "Target": "3000",
          "Value": ""
        },
        {
          "Command": "XType",
          "Target": "${KEY_TAB}",
          "Value": ""
        },
        {
          "Command": "XType",
          "Target": "${KEY_TAB}",
          "Value": ""
        },
        {
          "Command": "XType",
          "Target": "${KEY_TAB}",
          "Value": ""
        },
        {
          "Command": "XType",
          "Target": "${KEY_CMD+KEY_SHIFT+KEY_G}",
          "Value": ""
        },
        {
          "Command": "",
          "Target": "",
          "Value": ""
        }
      ]
    }

The KEY_CMD for macOS is a bit tricky and indeed, it does not work for all key combinations on Mac. Fixing/improving this is on our todo list for the next XTYPE update.

Workarounds:

Hey thanks for the reply! I’ll check out that post.

Many thanks for all the work you do.

So I’ve actually decided to run on a windows platform for the file navigation and task scheduling features. When I get to file Open or Save dialogue boxes, I can use Xtype to Triger ALT+D and it brings up the filepath field where I can then past in a new file path. It works well.