You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm aware that this is only for v1 of deluge but for anyone who has got v2 installed with these instructions https://help.rapidseedbox.com/en/articles/6177931-install-deluge-v2-on-macos I've managed to update the script to work with it. I've also added a open handler that you can use to open torrent files in v2:
onopenDeluge(torrentPath)
setsanitizedPathtoquoted formof torrentPath
do shell script"/usr/local/bin/deluge-gtk "& sanitizedPath &" > /dev/null 2>&1 &"tellapplication"System Events"repeatuntil (exists process "Python")
delay0.05end repeattell process "Python"setfrontmosttotrue
windows where title contains"Deluge"ifresultis not {} then perform action "AXRaise"ofitem1ofresultendtellendtellend openDeluge
onconvertFileListToPaths(fileList)
setfilePathsto""repeatwithifrom1tocountof fileList
setcurrentFiletoitem i of fileList
setfilePathsto filePaths &POSIX pathof currentFile
if i is not equal to (countof fileList) thensetfilePathsto filePaths &""end ifend repeatreturn filePaths
end convertFileListToPaths
onopen location magnetUrl
openDeluge(magnetUrl)
endopen locationon open fileList
openDeluge(convertFileListToPaths(fileList))
end open
Hopefully someone finds this helpful and maybe can even find a way to detect v2 and run this as well
The text was updated successfully, but these errors were encountered:
Hi,
I'm aware that this is only for v1 of deluge but for anyone who has got v2 installed with these instructions https://help.rapidseedbox.com/en/articles/6177931-install-deluge-v2-on-macos I've managed to update the script to work with it. I've also added a open handler that you can use to open torrent files in v2:
Hopefully someone finds this helpful and maybe can even find a way to detect v2 and run this as well
The text was updated successfully, but these errors were encountered: