Looks like you need to specify a full path for the source and destination. on mouseUp local tImageName, tDestinationPath set the itemdelimiter to "/" put (item -1 of the filename of img 1 ) into tImageName put item 1 to -2 of the filename of this stack & "/" into tDestinationPath put URL("binfile:" & the filename of img 1 ) into URL("binfile:" & tDestinationPath & tImageName) end mouseUp
On Sun, Sep 6, 2020 at 9:59 AM Sannyasin Brahmanathaswami via use-livecode < use-livecode@lists.runrev.com> wrote: > Maybe it is aphasia... > > How do we get file from one location to another location > > on mouseUp > local tRelativeURL > -- repeat with x = 1 to (the number of cards of stack > “SlideShowSetUp”) > --go card x > set the itemdelimiter to “/” > put (the item -2 to -1 of the filename of img “slideimage” ) into > tRelativeURL > # this works is: there is a path > # 1-ellora/dsc1234.jpg > > # this does not work: > put URL(“binfile:” & tRelativeURL ) into > URL(“binfile:_ForWebSite/” & tRelativeURL) > > put the filename of img “slideimage” into > URL(“binfile:_ForWebSite/” & tRelativeURL) > > -- end repeat > end mouseUp > > ?? > > Brahmanathaswami > > > _______________________________________________ > 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