Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
I'm trying to refer to a file which is inside a folder copied in a standalone with the appropriate Copy File dialog. There have to be something I'm doing wrong because I can't find a way to do it. Can't get the list of files.
In IDE all works fine, in Standalone I can't get it.
if the environment is "development" then
put the effective filename of this stack into myPath
set the itemDelimiter to slash
put "Sounds/" into last item of myPath
set the itemDelimiter to comma
set the defaultFolder to myPath
else -- standalone
set the defaultFolder to "Sounds" -- this gives the standard OS X sounds folder path
end if
put the files into soundListFiles
answer soundListFiles
if the environment is "development" then
put the effective filename of this stack into myPath
set the itemDelimiter to slash
put "Sounds/" into last item of myPath
set the itemDelimiter to comma
set the defaultFolder to myPath
else -- standalone
set the itemDelimiter to slash
get the effective filename of this stack
put item 1 to -2 of it & "/Sounds" into a
set the defaultFolder to a -- this gives "/Sounds"
end if
put the files into soundListFiles
answer soundListFiles
if the environment is "development" then
put the effective filename of this stack into myPath
set the itemDelimiter to slash
put "Sounds/" into last item of myPath
set the itemDelimiter to comma
set the defaultFolder to myPath
else -- standalone
put specialFolderPath("engine") & slash & "Sounds" into soundsFolder -- gives an "invented" folder: Users/user/Library/Application Support/Sounds
set the defaultFolder to soundsFolder
end if
put the files into soundListFiles
answer soundListFiles
Hi Mag,
I've been watching your Yosemite troubles but really have no experience to help.
So, anything I say has no basis in solving (possible) Yosemite problems.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
No problem, it's just talking that you will find solutions, so thank you for each attempt.
It's for days that I rewrite parts of the app because of problems to signing, compatibility, new bugs of LC etc. I'm working on this project for more than 6 months and for sure I do not stop now. I must say that the most important part of LiveCode is this community, otherwise I would have left LC development already for quite a while. I apologize for sincerity.
I tested your scripts with LC 6.6.4 and Mavericks. I made up 2 folder, sounds and images and in Standalone settings did as you did as per your image, just including the folders.
Script 1 and 3 work in the standalone and IDE, they both list the files in the included folders.
I don't know if there is something in Yosemite that keeps this from working.