Sample Header Ad - 728x90

AppleScript to quit Transmission App

2 votes
1 answer
380 views
I need help fixing AppleScript for an app called "Transmission" I am trying to write code to get it to quit once downloads are finished Is this the proper code:
`
    -- Quit Transmission, if running
tell application "System Events"
	if ((count (every process whose name is "Transmission Download")) = 0) then
		tell application "Transmission"
			-- Quit Transmission
			quit
		end tell
	end if
end tell
`
Asked by Abdallah Anwar (21 rep)
Oct 19, 2019, 07:36 PM
Last activity: Oct 20, 2019, 12:24 AM