Quirk copying files in standalone application settings

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jekyllandhyde
Posts: 92
Joined: Thu Feb 14, 2013 7:17 pm

Quirk copying files in standalone application settings

Post by jekyllandhyde » Fri Mar 29, 2013 9:28 pm

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.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Quirk copying files in standalone application settings

Post by jmburnod » Sat Mar 30, 2013 11:19 am

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
https://alternatic.ch

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Quirk copying files in standalone application settings

Post by jacque » Sat Mar 30, 2013 11:35 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jekyllandhyde
Posts: 92
Joined: Thu Feb 14, 2013 7:17 pm

Re: Quirk copying files in standalone application settings

Post by jekyllandhyde » Sun Mar 31, 2013 12:55 am

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.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Quirk copying files in standalone application settings

Post by jacque » Sun Mar 31, 2013 8:52 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply