Help with Standalone Downloader App
-
Your button is momentary, so the callback is triggered twice; once when you press the button and once when you release the mouse. So you are cleaning the downloads while you are downloading, that will probably cause a problem. You should put the function call inside the
if
statement. And tidy up your brackets and indentation a bit to make it easier to read. -
@d-healey Done and done... still no joy though
HiseSnippet 1170.3ocsV0saaaCElJIZq1adXEaWtKHzUxndJ1oYqEMnnt9uMi5jXTmz16BXjnsHhDogDUZLBBPeT1ixdj1av1gRTVxoNYAFHx.Vh77C+324vygiiDtz3XQDxnxIKlSQFeu4jEboeWeBiiF1CY7SldABhGVRik3VXeVLE0YwbRbL0CYXr8enTznxNnzm+4McHADtKsXJD5CBlKcDKjIKlcb62wBBFP7nmvBKo89sG5J3cEAhD.Taa1DMm3dAYF8HhRssLQFeSeOlTDMQR.LgL1oivawDewm4Y5+AVL67.pZPKzDvQYSOPD3oPrZVTWeVf237MeLB7x3BpX6Lp3mMOj4wVNeAk7ioBvEVTlOL159fWqxvq4CGdFkf2NYv6olSbiXykERTX66LGxkznoD2UCSY5h1huiYWAnAW5DRtfNHBFrzB6m2rYC7durY8CpUEBCPD+RRDdD4bZPK7qw4VNiJ6JBmK3v.aqLwVJapUcBM5RZjSLU1gDSO88irs7kx4uZ2cUYNNjDOlvZU2KIQfCA2OfEPmrHVRCUqPJiDYWZxd.IpxEiqmh.EIojZa8mCmz+rVpeNzqnZjv3ALNEOMg6JYBNVv6jHkBdK0tHRDX6luEZ.vHHgVuV0qqUECO5WpmrMmZ+XaIoWIsZfs.FeVDP4NNNoqkRuaxdU9e1T6b+lM4W6cMa4FPI7ALNK1m5sbWZWeUOWQqsmVgr8d9ncuEIz.e8MMzbaikrfccE0nQfh7Cg8Ab5BXeKqCJi9bAO60397Y.SBqaBj3dhXhLhwmYKg.piGQRb3Ig4fl5g2E2p4d66zb4GMvsxYoRN05vNfFV3m8Pb+IBIIX8dFb.3pbrulvkdMyg.D8iEATm4vpHsukvhHWwxOUGWpWD1tkSJzMNQcTD+FrUOHyxB+Jr0.BKPmQdi90x+V+4IcZpUc01Pmr1kDDbNTHz91YwYtrTR9QBI8XHNW85pUpdSU7sEMc5ZkocW.bhachUEoitOCsgnz4zn7iR4JBUqVsbn4cWNrb0Z2LlojhB9PNSd7bJ+tJRhzzI70oC6AgCUcS8bfdyoQRlBBF8nWBMjxphVwrGM9BoXN30kw.nGiLU5Onqwlw4Hlmx.c..c0xtV+8osWrbvWNsMkSf8jpIwHJIR2WJlbIcHeLT3fJylAUZAMyVvZ5ELMONc8dhYVN8ctbm0VknqLsTcoU7829+368J4azKJ4azAZe+KlcGMr66vmbLt2we7nQG+1dXU8Fm9epO5yLOo+Ra9qv19T1L+hd8eoSazW29BZhJ7RBHxU6rptNgV.jesRKLUaJdLStn70MdTZ29Pg6SMGyjt9qGuasF7BYjO13Ue4kZl8mNk5JK.6NlC9zi+MUPuWjHg52GRfx3PZk4QIgSf6x4RAjv4z.UM.isTmVyF2TMVwLSnbuzA+K7nE1RM1PKrUtPTHwMRblaVkG00idR5L.l3o2Rrh4gpw3VnzpQfclMcZhBgCjm45pnheEv95sYuMvlmuA1r+FXyusA176afMuXCr4k2qMpZguMQJByNl.SLteZIZCi9oEKSyHQ+mWucV5
-
Tidy up your brackets and indendation, then you might see why it doesn't work :)
-
@d-healey I thought I had :face_with_tears_of_joy:
-
@d-healey Can't figure it out :/
-
@DanH said in Help with Standalone Downloader App:
@d-healey I thought I had :face_with_tears_of_joy:
Well your brackets are all messed up, so once they are tidy you will see the issue there.
Also it's a good idea to end your lines with a semi-colon ;) -
@d-healey said in Help with Standalone Downloader App:
Also it's a good idea to end your lines with a semi-colon ;)
ah the classics
-
@d-healey I tried the braces everywhere and the semi-colons... will try again!
-
@DanH said in Help with Standalone Downloader App:
@d-healey I tried the braces everywhere
Just put them where they are needed ;)
-
@d-healey I still get the error
Interface:! Line 10, column 34: Function / constant not found: Server.cleanFinishedDownloads
wherever I put
Server.cleanFinishedDownloads()
Stumped!:cricket_game:
HiseSnippet 1179.3ocsV0kaaaDDdosXaDaUQ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1naWFx+57NKVR7wy6PXXnlHWmLlfix2fEiugLhMIh.8EYbPUBnZV.ajGvz98z38L0rd+GLbW1QdgPZJjjy.2GaYYshu+xOgu2uhuQuphuQGl66ePs23Q8dq9Ymp2+z+3jwm9l95xYXVCtX.5CTOg+Ra9yvN9D5L+xWE7wtcphlZOgST.OpJSAaWH+wem9zh+2pRXgM2KI.KVcKt7oK4BfN7UVWJWIxhohEUeZymkU6OU39b0ITgq+lw6Na.uPO8ma7l+PoFpClNk3JJAaM0gW74+UQn2wSDvFiiwvhCYivIIgNv6FcI.RXLRfbJjxNx4EYzskzxJiCg4kR7uvWtPaIsRtP6BgnPraD+R2roLxmh8rTN.lXouHst5wRZc6hgKppssZiBgqzW55JKE+Hf8May9agMubKr4fsvleZKr4m2Bad0VXyqeTajSSeShfGlcMAXLYP5PdEkAoiaS6HQ+WAR7Va
-
Works here. Are you on the latest version of Scriptnode?
-
@d-healey very recent, but will try latest. The API's are showing, but will try first thing
-
Also, what's going on with these braces?
if(value==1) { Server.cleanFinishedDownloads(); {
Have you read this?
-
@d-healey latest scriptnode did the trick, thanks David (and yes I cleaned up my panicked placement of the braces :grinning_squinting_face: )
-
@d-healey Soooo... Getting mixed results after compilation. On Windows it seems to be working and downloading the file correctly. On OSX I get nothing, and am wondering if Gatekeeper or something is stopping access to the web - ever come across something similar?
-
@DanH I haven't tested on Windows or OSX
-
@d-healey have you ever made something similar though?
-
@DanH Nope, I haven't made any plugin that downloads from a server on MacOS or Windows.
-
@DanH So the app works (downloads the file) as a plugin (in Logic / Ableton) but not as a standalone app lol
urgh
Has anyone stumbled upon this before? I've codesigned it, turned off Gatekeeper (it works on Windows fine)...