command mp.downloadFile
put "https://unmixr.s3.amazonaws.com/a/167eb769-a1b9-47ac-b7ae-86ae6e5af3ed.mp3" into tURL
put "/home/madpink/unmixr/test.mp3" into tFile
libURLDownloadToFile tURL, tFile, "DownloadComplete"
end mp.downloadFile
on DownloadComplete pUrl, pStatus
if pStatus = "Downloaded" then
answer information "File download!"
else
answer warning "File failed to download."
end if
unload url pUrl
end DownloadComplete
on DownloadComplete pUrl, pStatus
if pStatus = "Downloaded" then
answer information "File download!"
else
## Check it right here:
answer warning "File failed to download." & CR & pStatus
end if
unload url pUrl
end DownloadComplete
on DownloadComplete pUrl, pStatus
if pStatus = "Downloaded" then
answer information "File download!"
else
## Check it right here:
answer warning "File failed to download." & CR & pStatus
end if
unload url pUrl
end DownloadComplete
command mp.downloadFile
put "https://unmixr.s3.amazonaws.com/a/167eb769-a1b9-47ac-b7ae-86ae6e5af3ed.mp3" into tURL
put "/home/madpink/unmixr/test.mp3" into tFile
go url tURL, tFile, "DownloadComplete"
end mp.downloadFile
on DownloadComplete pUrl, pStatus
if pStatus = "Downloaded" then
answer information "File download!"
else
answer warning "File failed to download."
end if
unload url pUrl
end DownloadComplete
command mp.downloadFile
put "https://unmixr.s3.amazonaws.com/a/167eb769-a1b9-47ac-b7ae-86ae6e5af3ed.mp3" into tURL
put "/home/madpink/unmixr/test.mp3" into tFile
go url tURL, tFile, "DownloadComplete"
end mp.downloadFile
on DownloadComplete pUrl, pStatus
if pStatus = "Downloaded" then
answer information "File download!"
else
answer warning "File failed to download."
end if
unload url pUrl
end DownloadComplete
command mp.downloadFile
put "https://unmixr.s3.amazonaws.com/a/167eb769-a1b9-47ac-b7ae-86ae6e5af3ed.mp3" into tURL
put specialFolderPath("desktop") & "/" & "test.mp3" into tFile
libURLDownloadToFile tURL, tFile, "DownloadComplete"
end mp.downloadFile
on DownloadComplete pUrl, pStatus
if pStatus = "Downloaded" then
answer information "File download!"
else
answer warning "File failed to download."
end if
unload url pUrl
end DownloadComplete
and it downloaded without Problem. And "File download!" was shown.
Maybe a problem with the file path for the download?