Can't get script to run when torrent files finishes

Ask for help and report issues with the Mac OS X version of Transmission
Post Reply
fwmaietta
Posts: 2
Joined: Mon Jul 22, 2019 2:40 am

Can't get script to run when torrent files finishes

Post by fwmaietta »

Any help on this would be greatly appreciated.

Ok, so I'm new to Transmission, and it seems pretty straight forward and very user friendly...except I can't get a script to run when a torrent file is finished. I'm using the latest version of Transmission (not the nightly builds), macOS Mojave 10.14.15, and I am trying to run a script to call filebot when the torrent file finishes.

In Transmission, under Preferences > Transfers > Management, I have the script chosen that I want to use. The script is executable, I tried both

Code: Select all

chmod +x file.sh

Code: Select all

chmod a+x file.sh

If anybody is familiar with filebot, I am using this code, which works perfectly when I simply double click the script in finder.

Code: Select all

#!/bin/bash
filebot -rename -non-strict --format {plex} /Path/To/Media/Folder
Now, using console, I am trying to pin down what's happening and I am not seeing much. as far as I can tell, I'm not seeing the script execute at all.

From start to finish of the torrent from the moment that Transmission is opened, this is what I see in console:
22:54:31.732997 -0400 Transmission 27366555: RECEIVED OUT-OF-SEQUENCE NOTIFICATION: 3237 vs 6370, 512, <private>
22:54:40.383811 -0400 Transmission 27366555: RECEIVED OUT-OF-SEQUENCE NOTIFICATION: 3239 vs 6382, 512, <private>
error 22:54:51.299894 -0400 Transmission nw_path_close_fd Failed to close guarded necp fd 33 [9: Bad file descriptor]
22:55:21.047376 -0400 Transmission 27366555: RECEIVED OUT-OF-SEQUENCE NOTIFICATION: 3241 vs 6386, 512, <private>
22:57:39.181976 -0400 Transmission 27366555: RECEIVED OUT-OF-SEQUENCE NOTIFICATION: 100 vs 1276, 640, <private>
22:58:42.283360 -0400 Transmission 27366555: RECEIVED OUT-OF-SEQUENCE NOTIFICATION: 3251 vs 6390, 512, <private>
22:59:07.118181 -0400 Transmission 27366555: RECEIVED OUT-OF-SEQUENCE NOTIFICATION: 3257 vs 6410, 512, <private>
22:59:07.966239 -0400 Transmission Requesting sharingServicesForItems:<private> mask:1
22:59:07.966296 -0400 Transmission filteredItemsFromItems:<private> [9675]--> <private>
22:59:07.966399 -0400 Transmission Discover <private>
22:59:08.007792 -0400 Transmission Establishing xpc connection to lsd
22:59:08.031394 -0400 Transmission discovery complete: 18 plugins
22:59:08.092891 -0400 Transmission Discover done
22:59:08.094374 -0400 Transmission WiFi Platform capabilities 38000.
22:59:08.094396 -0400 Transmission Device supports AWDL
22:59:08.095418 -0400 Transmission services: <private>
22:59:08.115466 -0400 Transmission Requesting sharingServicesForItems:<private> mask:1
22:59:08.115489 -0400 Transmission filteredItemsFromItems:<private> [9675]--> <private>
22:59:08.115538 -0400 Transmission Discover <private>
22:59:08.144704 -0400 Transmission discovery complete: 18 plugins
22:59:08.158524 -0400 Transmission Discover done
22:59:08.158632 -0400 Transmission services: <private>
22:59:38.640172 -0400 launchservicesd CHECKIN:0x0-0x1b72b71 9907 org.m0k.transmission
22:59:38.675807 -0400 Transmission Current system appearance, (HLTB: 2), (SLS: 1)
22:59:38.680241 -0400 Transmission Post-registration system appearance: (HLTB: 2)
22:59:38.690132 -0400 Transmission NSApp cache appearance:
-NSRequiresAquaSystemAppearance: 1
-appearance: (null)
-effectiveAppearance: <NSCompositeAppearance: 0x600000a82ad0
(
"<NSAquaAppearance: 0x600003c8b640>",
"<NSSystemAppearance: 0x600003c8b700>"
)>
22:59:38.889770 -0400 Transmission UNIX error exception: 17
22:59:38.894623 -0400 Transmission UNIX error exception: 17
22:59:38.900297 -0400 Transmission UNIX error exception: 17
22:59:38.904055 -0400 Transmission UNIX error exception: 17
22:59:38.907543 -0400 Transmission UNIX error exception: 17
22:59:38.911846 -0400 Transmission UNIX error exception: 17
22:59:39.599328 -0400 tccd -[TCCDAccessIdentity staticCode]: static code for: identifier org.m0k.transmission, type: 0: 0x7fbdd5a027e0 at /Applications/Transmission.app
error 22:59:39.694103 -0400 Transmission AEGetDescData of non-desc type 'reco' not a good idea
22:59:47.142341 -0400 Transmission Requesting sharingServicesForItems:<private> mask:1
22:59:47.142405 -0400 Transmission filteredItemsFromItems:<private> [9907]--> <private>
22:59:47.142505 -0400 Transmission Discover <private>
22:59:47.186742 -0400 Transmission Establishing xpc connection to lsd
22:59:47.219500 -0400 Transmission discovery complete: 18 plugins
22:59:47.258429 -0400 Transmission Discover done
22:59:47.262785 -0400 Transmission WiFi Platform capabilities 38000.
22:59:47.262814 -0400 Transmission Device supports AWDL
22:59:47.263840 -0400 Transmission services: <private>
22:59:47.283526 -0400 Transmission Requesting sharingServicesForItems:<private> mask:1
22:59:47.283568 -0400 Transmission filteredItemsFromItems:<private> [9907]--> <private>
22:59:47.283639 -0400 Transmission Discover <private>
22:59:47.318664 -0400 Transmission discovery complete: 18 plugins
22:59:47.333522 -0400 Transmission Discover done
22:59:47.333634 -0400 Transmission services: <private>
22:59:49.539011 -0400 Transmission LSExceptions shared instance invalidated for timeout.
23:00:08.177896 -0400 launchservicesd CHECKIN:0x0-0x1b74b73 9912 org.m0k.transmission
23:00:08.213725 -0400 Transmission Current system appearance, (HLTB: 2), (SLS: 1)
23:00:08.217966 -0400 Transmission Post-registration system appearance: (HLTB: 2)
23:00:08.229807 -0400 Transmission NSApp cache appearance:
-NSRequiresAquaSystemAppearance: 1
-appearance: (null)
-effectiveAppearance: <NSCompositeAppearance: 0x60000044dfe0
(
"<NSAquaAppearance: 0x600003255c40>",
"<NSSystemAppearance: 0x600003255b00>"
)>
23:00:08.452977 -0400 Transmission UNIX error exception: 17
23:00:08.458684 -0400 Transmission UNIX error exception: 17
23:00:08.462628 -0400 Transmission UNIX error exception: 17
23:00:08.467032 -0400 Transmission UNIX error exception: 17
23:00:08.470292 -0400 Transmission UNIX error exception: 17
23:00:08.474577 -0400 Transmission UNIX error exception: 17
23:00:09.114961 -0400 tccd -[TCCDAccessIdentity staticCode]: static code for: identifier org.m0k.transmission, type: 0: 0x7fbdd4630a90 at /Applications/Transmission.app
error 23:00:09.191073 -0400 Transmission AEGetDescData of non-desc type 'reco' not a good idea
23:00:19.057834 -0400 Transmission LSExceptions shared instance invalidated for timeout.
23:01:06.437525 -0400 Transmission saved enable noise cancellation setting is the same as the default (=1)
And also, when I select the script for launch in Transmission under Preferences > Transfers > Management, I get this as well immediately after selecting it.
error 23:05:54.219367 -0400 Transmission errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}
Post Reply