Page 1 of 1

Quirk copying files in standalone application settings

Posted: Fri Mar 29, 2013 9:28 pm
by jekyllandhyde
I am using the latest version of OSX.

I found an interesting quirk with Livecode's copy files section of StandAlone Application Settings. Not sure if it is a bug.
When I pick a file, if that file is on my desktop, the file will be included with the build.

The file path displays correctly as:

/Users/myname/Desktop/filename.jpg - the file is included in the build and every thing works

HOWEVER...

If I pick the file from my documents folder / A Livecode Files / Graphics:

it shows in the list as:
Graphics/filename.jpg - this will not build and it messes up the App. because the files are just missing.

The absolute path in this case is:
/Users/myname/Documents/A Livecode Files/Graphics/filename.jpg

but you can't get this full pathname to appear by using the filepicking button?

My guess is that Livecode can't find the files to include because of some file path bug?

or possibly I am missing some kind of installation setting?

I had been puzzled why everything broke a few weeks ago. Then it dawned on me that it happened when I moved my include files from the desktop to a subfolder and then re-chose their locations.

Re: Quirk copying files in standalone application settings

Posted: Sat Mar 30, 2013 11:19 am
by jmburnod
Hi jekyllandhyde
I'm not sure I understand the mistake (i progress slowly in english) but i believe you think you can copy files/folder in the document folder by the copy file pan.
It is not the case, the files/folder are copied in the app.

Best regards
Jean-Marc

Re: Quirk copying files in standalone application settings

Posted: Sat Mar 30, 2013 11:35 pm
by jacque
The file paths that the standalone settings creates are relative to the position of your mainstack. It looks like your mainstack is in Documents/ A Livecode Files / which is why only the subfolder is listed. So that part is working correctly. It should include all the files in your Graphics folder as long as the path it generates ends with an asterisk:

Graphics/*

Use the "add folder" button to get it to do that.

Re: Quirk copying files in standalone application settings

Posted: Sun Mar 31, 2013 12:55 am
by jekyllandhyde
I tried adding the folder and it shows as you say - Graphics/* but no files in the folder get included on the build of the App. I mean this is a pretty simple setting in Livecode which is pretty much idiot proof. But as I said in my post, no files are included unless I pick a folder that is not in the same file tree as the stack.

Re: Quirk copying files in standalone application settings

Posted: Sun Mar 31, 2013 8:52 pm
by jacque
That's bizarre. I've never had any trouble with it so I'm not sure what's wrong. I always keep my resources in subfolders inside the mainstack's folder, just like your Graphics folder. Sorry, I'm stumped.