lord-kamina / deluge-magnet-handler Goto Github PK
View Code? Open in Web Editor NEWOSX Applescript handler to open magnet URLs in Deluge.app
License: Other
OSX Applescript handler to open magnet URLs in Deluge.app
License: Other
I've downloaded the app, opened it, I get the dialog box and click "yes" ... but MacOS High Sierra doesn't make the magnet link association to the App... is it the app or me? :)
Downloaded 1.2.0, installed to /Applications/ and tried it out, and got the error:
dyld: Library not loaded: @rpath/libswiftQuartzCore.dylib
Referenced from: /Applications/Magnet Handler.app/Contents/Resources/registerHandler
Reason: image not found
I'm running OS X El Capitan version 10.11.6 (15G1108)
on a MacBook Pro (Retina, Mid 2012) 2.7 GHz Intel Core i7 16 GB
Is this only for Sierra?
Plugin of the year, if it only worked ...
Program starts (no visible UI) then closes again after 2-3 seconds on OS X 10.11.1 running Deluge 1.3.12.
Readme needs updating w respect to instructions. .app is no longer in the bundle.
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:
on openDeluge(torrentPath)
set sanitizedPath to quoted form of torrentPath
do shell script "/usr/local/bin/deluge-gtk " & sanitizedPath & " > /dev/null 2>&1 &"
tell application "System Events"
repeat until (exists process "Python")
delay 0.05
end repeat
tell process "Python"
set frontmost to true
windows where title contains "Deluge"
if result is not {} then perform action "AXRaise" of item 1 of result
end tell
end tell
end openDeluge
on convertFileListToPaths(fileList)
set filePaths to ""
repeat with i from 1 to count of fileList
set currentFile to item i of fileList
set filePaths to filePaths & POSIX path of currentFile
if i is not equal to (count of fileList) then
set filePaths to filePaths & " "
end if
end repeat
return filePaths
end convertFileListToPaths
on open location magnetUrl
openDeluge(magnetUrl)
end open location
on 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
macOS version: 11.0.1
Deluge version: 1.3.15
When I click a magnet link, the deluge app is opened and brought to front. (so far so good).
However it does not open/fill out the add torrent dialog so I have to manually open it, copy the magnet link into the URL field and press add.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.