Down a leafy lane or up queer street?

Richmond Mathewson richmondmathewson at gmail.com
Sat Apr 28 13:51:32 EDT 2018


In theory that should work . . .

But what happens is that I end with a grey square rather than the actual 
picture.

Richmond.

On 28/4/2018 8:42 pm, Tore Nilsen via use-livecode wrote:
> Try this:
>
> local sFolderPath
>
> on preOpenStack
>
> put specialFolderPath("resources")&"/myCrap/rez/" into sFolderPath
>
> end preOpenStack
>
>
> specialFolderPath(“resources”) will point to the folder containing the stack when you are in the IDE, and to the resources folder of your compiled application
>
>
> Tore Nilsen
>
>> 28. apr. 2018 kl. 19:38 skrev Richmond Mathewson via use-livecode <use-livecode at lists.runrev.com>:
>>
>> Here I go agin, replying to my own posting:
>>
>> I have this script in the stack:
>>
>> onpreOpenStack
>>
>> setitemDelto"/"
>>
>> setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack)
>>
>> endpreOpenStack
>>
>> but it ain't working.
>>
>> Richmond.
>>
>>
>> On 28/4/2018 8:34 pm, Richmond Mathewson wrote:
>>> Probably both . . .
>>>
>>> So, there I am opening an on-going project I have been "somewhat remiss" about of late
>>> what with one thing and another.
>>>
>>> Now this project has a ton of images made via the Object/New Control/Image menu
>>> and for their image data in their property panels are referred to a folder called "rez"
>>> that resides in the same folder as my stack.
>>>
>>> Now when I set up the stack the source field in the property panels went something
>>> like this:
>>>
>>> /Users/richmondmathewson/Desktop/myCrap/rez/c7.png
>>>
>>> and "everything worked perfectly" . . .
>>>
>>> on reopening the stack the image data does not show up
>>> and the source fields contain this sort of thing:
>>>
>>> rez/c7.png
>>>
>>> now this "just won't do" as the . . . well, never mind; probably that is too filthy a joke for the Use-List.
>>>
>>> So . . . presumably, I need a sort of 'set the default file path' script in my openScript thang?
>>>
>>> Richmond.
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list