How Do You Get Filename / Image
Sannyasin Brahmanathaswami
brahma at hindu.org
Sun Sep 6 17:31:16 EDT 2020
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" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> 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 <
use-livecode at 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 at 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 at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list