Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

WhoGotTheChunk

macrumors newbie
Original poster
Feb 5, 2010
16
0
Hiya,

basically I want Tomato Torrent to return my info for a torrent so I can manipulate it.

Currently when I do:
Code:
set downloadStats to download stats of download document 1
I get this returned
Code:
{errors:{}, upTotal:3326711, status:{storage_active:0, numPeers:0, ever_got_incoming:false, fractionDone:1, trackerSeeds:1306, storage_dirty:0, activity:"seeding", upRate:2.89142721099E-20, numSeeds:0, upTotal:3326711, downRate:0, storage_numcomplete:46, numCopies:0, downTotal:191743056, storage_numflunked:0, storage_new:0, discarded:3588096, numCopyList:{0.0}, trackerPeers:131, upRate2:0.088154116616, TomatoDownloadSizeBytes:191743056}, downTotal:191743056}
How would I pull the fractionDone value out of this. I'm a relative noob to applescripts but I'm trying to learn as best I can. If theres any other info you need, I'll be happy to reply with that if I can.

This is from the Tomato Torrent Dictionary
Code:
download document n [see also Standard Suite] : A document that downloads a BitTorrent MetaInfo File (.torrent)
properties
download activity (text, r/o) : Current download status. Either starting, checking existing download, downloading, seeding, shutdown, or limbo.
download stats (text, r/o) : A probably unorganized value for the current progress stats.
running (boolean, r/o) : If the torrent is actually running or sitting at the setup window.
save download folder (alias) : This is the folder that the download will be saved to. This is optional, and is only available if one is specifically set. The download will be saved with the torrent’s own name inside this folder.
save download path (alias) : This is the full path that the download will be saved to. If not set, the download will not begin.
starts immediately (boolean) : Whether the download starts immediately once the torrent file is verified.

Any help is greatly appreciated.

Chunk
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.