title: How do I double click on an image/or link to initiate installation? APPLESCRIPT [Please view image]
body: <p>I am trying to automate the installation of slack. I run the .dmg then must double click the "Slack" icon to start the install. using the '''click''' function on images is not really doable im guessing.. I see that the URL this image calls on is file:///Volumes/Slack.app/Slack.app/ Do I need to call on this link perhaps ? How can I get the same results of double clicking on the image. </p>
  
  <p><a href="https://i.stack.imgur.com/y3FSJ.jpg" rel="nofollow noreferrer">Accessibility Inspector Screenshot</a></p>
  
  <p><code>tell application "Finder"
      set myFolder to container of (path to me) as alias
  end tell
  tell application "Finder"
      open document file "Slack-4.3.3-macOS.dmg" of myFolder
  end tell
  tell application "System Events"
      tell process "Finder"
          click image "Slack" of group 1 of list 1 of list 1 of scroll area 1 of splitter group 1 of splitter group 1 of window "Slack"
      end tell
  end tell</code></p>
  
  <p><a href="https://i.stack.imgur.com/y3FSJ.jpg" rel="nofollow noreferrer">Accessibility Inspector Screenshot</a></p>