Looks like that does not  work

on mouseUp
   local tImageName, tDestinationPath,tHolder
   set the itemdelimiter to "/"
   put (item -2 to -1  of the filename of img "slideImage") into tImageName
   
   put   "_ForWebSite/"  into tDestinationPath
   put tDestinationPath & tImageName into tHolder
   -- put URL("binfile:" & the filename of img "slideImage"  ) into 
URL("binfile:" & tDestinationPath & tImageName)
   put the filename of img "slideImage" into URL("binfile:" & tDestinationPath 
& tImageName)

end mouseUp


On 9/6/20, 8:08 AM, "use-livecode on behalf of Brian Milby via use-livecode" 
<[email protected] on behalf of 
[email protected]> wrote:

    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 <
    [email protected]> 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
    > [email protected]
    > Please visit this url to subscribe, unsubscribe and manage your
    > subscription preferences:
    > http://lists.runrev.com/mailman/listinfo/use-livecode
    >
    _______________________________________________
    use-livecode mailing list
    [email protected]
    Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
    http://lists.runrev.com/mailman/listinfo/use-livecode

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

Reply via email to