title: Why pyautogui cannot find items in OSX Dock?
body: <p>I started to learn pyautogui for my personal project and almost instantly ran into the problems when trying to open OSX dock icons.</p>
  
  <p>I want to open local Spotify which is under Mac Launchpad.</p>
  
  <p>My code to do this. </p>
  
  <pre><code>import pyautogui
  
  launchpad = pyautogui.locateOnScreen('img/Launchpad.png')
  </code></pre>
  
  <p>This return <code>None</code> so the image was not found.</p>
  
  <p>image example attached</p>
  
  <p><a href="https://i.stack.imgur.com/RRh96.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RRh96.png" alt="enter image description here"></a></p>
  
  <p>However, if I open Mac OSX Notes window and paste the same image into it and ran the program again the image is found every time. Similarly, if I just leave image open in my Editor. </p>
  
  <p>Is dock actually part of the OSX screen pyautogui can search from? If not how to interact with it?</p>