Re: How Do You Get Filename / Image

2020-09-07 Thread Sannyasin Brahmanathaswami via use-livecode
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

Re: How Do You Get Filename / Image

2020-09-07 Thread Pi Digital via use-livecode
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

Re: How Do You Get Filename / Image

2020-09-07 Thread Sannyasin Brahmanathaswami via use-livecode
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

Re: How Do You Get Filename / Image

2020-09-06 Thread Pi Digital via use-livecode
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

Re: How Do You Get Filename / Image

2020-09-06 Thread Pi Digital via use-livecode
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 #

Re: How Do You Get Filename / Image

2020-09-06 Thread Phil Davis via use-livecode
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

Re: How Do You Get Filename / Image

2020-09-06 Thread Sannyasin Brahmanathaswami via use-livecode
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

Re: How Do You Get Filename / Image

2020-09-06 Thread Brian Milby via use-livecode
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

How Do You Get Filename / Image

2020-09-06 Thread Sannyasin Brahmanathaswami via use-livecode
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