Relative Paths in Property Inspector
brahma at hindu.org
Sun Oct 29 22:30:41 EDT 2017
BR: are you keeping your stacks next to the images?
and if you set the image filename to "img/dangerous-pets/tiger.jpg"
Mike Kerner wrote:
it is related. As soon as I saw your post I said "gee, that looks
[snip] now you can
> a) manually chop of the lead down to this in the property inspector
> # and it works… this is also portable if you include "img/*" in the
> stackfiles when create your standalone and the filename is saved relative
> to the stack, and, assuming you keep the folder structure intact you don't
> have to even mess with defaultfolder or even specialFolderPath("engine")
> because the "relativity" of the path is respected in any and all contexts
> (I think…)
> so you can also programatically do this
> set the filename of img "myPet" to "img/thumbs/little-rooster.jpg"
> So, why can't we just a relative path in the Property Inspector itself?
> The browser tool will always return full path from User down to the
> "asset.jpg"… if I send that stack to someone else, or use a GIT work flow
> where these stacks are "pure views" (i.e. no actual imported images
> anywhere) along with the images. the paths are broken. So, long way of
> Do we need an enhancement request for a check box in the PI to set the
> path as relative to the stack? Seems like that would be super usefu
> Mikey has this request in since May '16… which feels related
> but the suggestion for having this in the PI seems a bit different, and
> might not actually solve his issue for using a cloud instance of his
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
and did a little diving.
And God said, "This is good."
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode