So I've never used applescripts before, and I don't know how to code.
I'm trying to use this script I found online, but I've been getting "Syntax Error: Expected Expression But Found Command Name"
any help would be appreciated
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