".app" resource inclusion
Alex Rice
alrice at ARCplanning.com
Mon Jun 23 15:38:00 EDT 2003
On Monday, June 23, 2003, at 02:03 PM, Barry Levine wrote:
>
> A-ha! I think I understand. But that raises another point. My current
> app uses a folder named "resources" that sits at the same level as the
> finished application. I have some images and sounds in that folder
> referenced with pathnames. In my current app, for example, I have an
> image object with a filename of "resources/horse.jpg". Using the
> example you give (below), how would I set the filename during the
> development process when the app (and the path) doesn't exist yet? I
> can certainly re-code the Transcript where I set the pathnames but I
> guess I'm asking if there is one consistent methodology that would
> permit me to test everything without glomming everything together with
> a Distribution and tossing everything into the Resources folder inside
> the package.
>
> Seems like there must be a "get" or "set" the defaultFolder to...
> command that would be necessary (and is probably obvious once it's
> pointed out to you). *grin*
You can set "the defaultFolder"
if the environment = "development" then
set the defaultFolder to "some/path"
else -- deployed
set the defaultFolder to "some/other/path"
end if
Alex Rice, Software Developer
Architectural Research Consultants, Inc.
alrice at ARCplanning.com
alrice at swcp.com
More information about the use-livecode
mailing list