You are putting a file from a url into a variable called tLocalDocumentsStories 
& sStoryTitle & "/" & sStoryTitle & ".livecode”. You should probably have a 
variable with the full path to the file: 

put tLocalDocumentsStories & sStoryTitle & "/" & sStoryTitle & ".livecode” into 
tFilePath

Then put the file from the url into the location using the URL command:

put URL (tHttpsServerRoot & sStoryTitle & "/" & sStoryTitle & ".livecode”) into 
URL (“binfile:” & tFilePath

The problem with trying to put all the fiddlybits into one line is that you 
cannot tell where things are going wrong. You sacrifice readability and ease of 
debugging for compact code, and with Livecode, do we really need compact code? 

Bob S

> 

> On Oct 2, 2020, at 2:59 PM, Sannyasin Brahmanathaswami via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> on dataServerStack
>   local tHttpsServerRoot,tLocalDocumentsStories
>   put "https://dev.himalayanacademy.com/media/stories/"; --into 
> tHttpsServerRoot
>   put specialFolderPath("Documents") & "/SivaSivaApp/media/stories/" into 
> tLocalDocumentsStories
>   put URL (tHttpsServerRoot & sStoryTitle & "/" & sStoryTitle & ".livecode") 
> into tLocalDocumentsStories & sStoryTitle & "/" & sStoryTitle & ".livecode"
> end dataServerStack
> 
> it goes badly to documents folder,
> 
> on dataServerStack
>   local tHttpsServerRoot,tLocalDocumentsStories
>   put "https://dev.himalayanacademy.com/media/stories/"; into tHttpsServerRoot
>   put specialFolderPath("Documents") & "/SivaSivaApp/media/stories/" into 
> tLocalDocumentsStories
>   put URL (tHttpsServerRoot & sStoryTitle & "/" & sStoryTitle & ".livecode") 
> into tLocalDocumentsStories & sStoryTitle & "/" & sStoryTitle & ".livecode"
> end dataServerStack
> 
> it goes badly to documents folder,
> 
> ?
> put URL (tHttpsServerRoot & sStoryTitle & "/" & sStoryTitle & ".livecode") 
> into tLocalDocumentsStories & sStoryTitle & "/" & sStoryTitle & ".livecode"
> 
> Compile error line 119 (Handler: bad command) near "&", char 84
> 
> 
> BR
> 
> 
>    _______________________________________________
>    use-livecode mailing list
>    use-livecode@lists.runrev.com
>    Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
>    http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to