Yes! It was so easy.
I did not expect to find that
specialFolderPath("resources")
on desktop went to folder with your stack inside it. Perfect for tDefaultFolder
This did my job! Yay!
on mouseUp
local tImageName, tDestinationPath,tFolder, tDefaultFolder
put
I see. You will need to use the full path for tImageName. That will be true for
all of the file names you have stored on your cards and stacks.
With images, the filename can be either the full path or a relative path,
relative to the defaultFolder or the folder the stack is saved in. RevCopy
Goal: to get a folder a disk that can be copied to the web server. We have all
kinds of files on disk. So, I am trying to copy a list of filename in the cards
of stack. It can't that hard. But I think the method for doing the
tRelativeName of filename is "broken" where are get the
I’ll try that again::
# I’m going to assume this was a hiccup too and now fixed:
set the filename of img “slideimage” to (item 1 to -3 of the filename of img
“slideimage” & “/_ForWebSite/” & tRelativeURL)
> On 6 Sep 2020, at 23:01, Pi Digital via use-livecode
> wrote:
>
> # I’m going to
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
#
Maybe check the result after your 'put URL... into URL ...' statement.
That might give you a hint about the problem.
Phil Davis
On 9/6/20 2:31 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
Looks like that does not work
on mouseUp
local tImageName, tDestinationPath,tHolder
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
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
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