title: Need Assistance with Syntax Error: Expected Expression But Found Command Name
body: <p>So I've never used applescripts before, and I don't know how to code. </p>
  
  <p>I'm trying to use this script I found online, but I've been getting "Syntax Error: Expected Expression But Found Command Name"</p>
  
  <p>any help would be appreciated </p>
  
  <p>Code:</p>
  
  <pre><code>on idle
    tell application "System Events"
      tell current location of network preferences
        set myConnection to the service "BTGuard”
        if current configuration of myConnection is not connected then
          try
            tell application "transmission"
              quit
            end tell
            connect myConnection
            –say "Retrying connection"
          end try
        else
          tell application "transmission"
            run
          end tell
        end if
      end tell
      return 1
    end tell
  end idle
  </code></pre>