Re: Down a leafy lane or up queer street?

2018-04-30 Thread Bob Sneidar via use-livecode
I avoid global variables as these are visible to any open stack you are working 
on, so you cannot have 2 stacks open that use the same global names or they 
will overwrite each other. Instead I use the custom properties of the mainstack 
as an ad hoc stack global system. I do this with cards and objects too. It 
means I need to have a line in each script for each property I want to use, but 
an easy fix for that is to have a handler in the object script that sets the 
values of script local variables to the values of the custom properties you 
need. You only have to run this once, say on openCard. Now you have script 
local variables set to the values of all your properties, AND they have the 
added virtue of being persistent through app launches. 

Bob S


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Down a leafy lane or up queer street?

2018-04-29 Thread Tore Nilsen via use-livecode
The variabel scope can be a bit tricky. The difference between a script local 
variabel (declared as a local variabel outside any handlers) and a global 
variabel can be confusing. They act very much the same way when used within one 
script. The main difference being that a global variabel can be used in any 
script when it is declared in the same script. Both variabels retain their 
values between handlers and sessions as long as the application is open. To add 
to the confusion, temporary variabels (undeclared or declared local within a 
handler) are referred to as local variabels also.

For the convenience of my students I refer to variabels that are undeclared (or 
declared within a handler) for temporary variabels, with names starting with 
t-. I only refer to local variabels as local when they are declared outside of 
handler, and I use names starting with s-. To make sure that global variabels 
are easily recognised as such I start their name with g-. I use the same naming 
convention for arrays. I also declare all global and script local variabels at 
the top of my scripts. Then I am sure they will be available to all handlers in 
that script.

Regards
Tore

> 29. apr. 2018 kl. 20:37 skrev Richmond Mathewson via use-livecode 
> :
> 
> "it must be declared in all scripts that uses this variabel."
> 
> Aha: *thanks* for that.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Down a leafy lane or up queer street?

2018-04-29 Thread Brian Milby via use-livecode
I imagine that if you had strict mode enabled then the IDE would flag it
for you too (if undeclared).
On Sun, Apr 29, 2018 at 1:37 PM Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> "it must be declared in all scripts that uses this variabel."
>
> Aha: *thanks* for that.
>
> Richmond.
>
> On 29/4/2018 9:28 pm, Tore Nilsen via use-livecode wrote:
> > If route66 is declared as a local variabel in the card script (and it
> must be declared outside any handlers), then all other scripts that uses
> this variabel must reside in the card script as well. If it is declared as
> a global variabel, it must be declared in all scripts that uses this
> variabel.
> >
> > Tore Nilsen
> >
> >> 29. apr. 2018 kl. 20:15 skrev Richmond Mathewson via use-livecode <
> use-livecode@lists.runrev.com>:
> >>
> >> OK: finally I have sorted out the problem.
> >>
> >> It seems that IFF I have this in my cardScript:
> >>
> >> globalroute66
> >>
> >> onpreOpenCard
> >>
> >> putspecialFolderPath("resources") & "/assets/img/" intoroute66
> >>
> >> everything works.
> >>
> >> What I would like to know is:
> >>
> >> Why does THAT script & the declaration of a global NOT work when it
> resides in the stackScript?
> >>
> >> Richmond.
> >>
> >>
> >> On 29/4/2018 8:56 pm, Richmond Mathewson wrote:
> >>> So, I have corrected the specialFolderPath as per your instructions.
> >>>
> >>> But I am still going wrong as my source for the imgData of img "p1" is
> still
> >>> listed asroute66p1.png . . .
> >>>
> >>> Richmond.
> >>>
> >>> On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote:
>  In the IDE, specialFolderPath("resources") points to the folder
> containing the working stack. In a standalone it points to the folder
> containing files you've included in the Copy Files pane of the standalone
> builder.
> 
>  Therefore, there will never be a folder
> specialFolderPath("resources") & "/Desktop/..." unless you have created a
> Desktop folder inside the one holding your stack. The correct path would be
> specialFolderPath("resources") & "/Obfuscated/May 2018/assets/img/"
> 
>  --
>  Jacqueline Landman Gay | jac...@hyperactivesw.com
>  HyperActive Software | http://www.hyperactivesw.com
>  On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
> > I am being extremely stupid, and am getting so desperate I don't mind
> > admitting it.
> >
> > I have a stack containing a series of images that are 'empty' images
> > with their
> > sources set to an external folder.
> >
> > Now in my stackScript I have this:
> >
> > |global route66 on preOpenStack put specialFolderPath("resources") &
> > "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card
> > "TITLE" end preOpenStack|
> >
> > and in my cardScript I have this:
> >
> > |on preOpenCard set the lockScreen to true  set the filename
> of
> > img "p1" to empty --- set the filename of img "p1" to (route66 &
> > "c1.png") set the blendlevel of img "p1" to 0  wait 3 ticks
> set
> > the lockScreen to false end preOpenCard so, WHY cannot I see the
> target
> > image, merely a horrible grey square? Richmond. |
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@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@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Down a leafy lane or up queer street?

2018-04-29 Thread Richmond Mathewson via use-livecode

"it must be declared in all scripts that uses this variabel."

Aha: *thanks* for that.

Richmond.

On 29/4/2018 9:28 pm, Tore Nilsen via use-livecode wrote:

If route66 is declared as a local variabel in the card script (and it must be 
declared outside any handlers), then all other scripts that uses this variabel 
must reside in the card script as well. If it is declared as a global variabel, 
it must be declared in all scripts that uses this variabel.

Tore Nilsen


29. apr. 2018 kl. 20:15 skrev Richmond Mathewson via use-livecode 
:

OK: finally I have sorted out the problem.

It seems that IFF I have this in my cardScript:

globalroute66

onpreOpenCard

putspecialFolderPath("resources") & "/assets/img/" intoroute66

everything works.

What I would like to know is:

Why does THAT script & the declaration of a global NOT work when it resides in 
the stackScript?

Richmond.


On 29/4/2018 8:56 pm, Richmond Mathewson wrote:

So, I have corrected the specialFolderPath as per your instructions.

But I am still going wrong as my source for the imgData of img "p1" is still
listed asroute66p1.png . . .

Richmond.

On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote:

In the IDE, specialFolderPath("resources") points to the folder containing the 
working stack. In a standalone it points to the folder containing files you've included 
in the Copy Files pane of the standalone builder.

Therefore, there will never be a folder specialFolderPath("resources") & "/Desktop/..." unless you have 
created a Desktop folder inside the one holding your stack. The correct path would be specialFolderPath("resources") 
& "/Obfuscated/May 2018/assets/img/"

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode 
 wrote:


I am being extremely stupid, and am getting so desperate I don't mind
admitting it.

I have a stack containing a series of images that are 'empty' images
with their
sources set to an external folder.

Now in my stackScript I have this:

|global route66 on preOpenStack put specialFolderPath("resources") &
"/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card
"TITLE" end preOpenStack|

and in my cardScript I have this:

|on preOpenCard set the lockScreen to true  set the filename of
img "p1" to empty --- set the filename of img "p1" to (route66 &
"c1.png") set the blendlevel of img "p1" to 0  wait 3 ticks set
the lockScreen to false end preOpenCard so, WHY cannot I see the target
image, merely a horrible grey square? Richmond. |


___
use-livecode mailing list
use-livecode@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Down a leafy lane or up queer street?

2018-04-29 Thread Mike Bonner via use-livecode
Did you declare it as a global on the card also?  You have to declare it
for every context that it will be used.  Stack, card, if you use it in a
button script, wherever.

If you've declared it in a card script, and set its value, but then use it
WITHOUT declaration all you get back is the text of the name (IE route66)

The reason you can see the value when checking it from the message box, is
that it is executing the commands as if they were in the context of the
stack script.

To test what I mean, create a script in a button with the following:

on mouseup

put "undeclared variable:" && tUndeclared -- shows tUndeclared in the
message box

local tDeclared

put cr & "Declared but un-set variable:" && tDeclared after msg -- no value
shown, tDeclared exists but is empty

put "value set" into tDeclared

put cr & "Declared and value set to: " & tDeclared after msg -- tdeclared
exists and now has a value

end mouseup

On Sun, Apr 29, 2018 at 12:15 PM, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> OK: finally I have sorted out the problem.
>
> It seems that IFF I have this in my cardScript:
>
> globalroute66
>
> onpreOpenCard
>
> putspecialFolderPath("resources") & "/assets/img/" intoroute66
>
> everything works.
>
> What I would like to know is:
>
> Why does THAT script & the declaration of a global NOT work when it
> resides in the stackScript?
>
> Richmond.
>
>
> On 29/4/2018 8:56 pm, Richmond Mathewson wrote:
>
>> So, I have corrected the specialFolderPath as per your instructions.
>>
>> But I am still going wrong as my source for the imgData of img "p1" is
>> still
>> listed asroute66p1.png . . .
>>
>> Richmond.
>>
>> On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote:
>>
>>> In the IDE, specialFolderPath("resources") points to the folder
>>> containing the working stack. In a standalone it points to the folder
>>> containing files you've included in the Copy Files pane of the standalone
>>> builder.
>>>
>>> Therefore, there will never be a folder specialFolderPath("resources") &
>>> "/Desktop/..." unless you have created a Desktop folder inside the one
>>> holding your stack. The correct path would be
>>> specialFolderPath("resources") & "/Obfuscated/May 2018/assets/img/"
>>>
>>> --
>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>> HyperActive Software | http://www.hyperactivesw.com
>>> On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>>
>>> I am being extremely stupid, and am getting so desperate I don't mind
 admitting it.

 I have a stack containing a series of images that are 'empty' images
 with their
 sources set to an external folder.

 Now in my stackScript I have this:

 |global route66 on preOpenStack put specialFolderPath("resources") &
 "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card
 "TITLE" end preOpenStack|

 and in my cardScript I have this:

 |on preOpenCard set the lockScreen to true  set the filename of
 img "p1" to empty --- set the filename of img "p1" to (route66 &
 "c1.png") set the blendlevel of img "p1" to 0  wait 3 ticks set
 the lockScreen to false end preOpenCard so, WHY cannot I see the target
 image, merely a horrible grey square? Richmond. |


 ___
 use-livecode mailing list
 use-livecode@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Down a leafy lane or up queer street?

2018-04-29 Thread Tore Nilsen via use-livecode
If route66 is declared as a local variabel in the card script (and it must be 
declared outside any handlers), then all other scripts that uses this variabel 
must reside in the card script as well. If it is declared as a global variabel, 
it must be declared in all scripts that uses this variabel.

Tore Nilsen

> 29. apr. 2018 kl. 20:15 skrev Richmond Mathewson via use-livecode 
> :
> 
> OK: finally I have sorted out the problem.
> 
> It seems that IFF I have this in my cardScript:
> 
> globalroute66
> 
> onpreOpenCard
> 
> putspecialFolderPath("resources") & "/assets/img/" intoroute66
> 
> everything works.
> 
> What I would like to know is:
> 
> Why does THAT script & the declaration of a global NOT work when it resides 
> in the stackScript?
> 
> Richmond.
> 
> 
> On 29/4/2018 8:56 pm, Richmond Mathewson wrote:
>> So, I have corrected the specialFolderPath as per your instructions.
>> 
>> But I am still going wrong as my source for the imgData of img "p1" is still
>> listed asroute66p1.png . . .
>> 
>> Richmond.
>> 
>> On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote:
>>> In the IDE, specialFolderPath("resources") points to the folder containing 
>>> the working stack. In a standalone it points to the folder containing files 
>>> you've included in the Copy Files pane of the standalone builder.
>>> 
>>> Therefore, there will never be a folder specialFolderPath("resources") & 
>>> "/Desktop/..." unless you have created a Desktop folder inside the one 
>>> holding your stack. The correct path would be 
>>> specialFolderPath("resources") & "/Obfuscated/May 2018/assets/img/"
>>> 
>>> -- 
>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>> HyperActive Software | http://www.hyperactivesw.com
>>> On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode 
>>>  wrote:
>>> 
 I am being extremely stupid, and am getting so desperate I don't mind
 admitting it.
 
 I have a stack containing a series of images that are 'empty' images
 with their
 sources set to an external folder.
 
 Now in my stackScript I have this:
 
 |global route66 on preOpenStack put specialFolderPath("resources") &
 "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card
 "TITLE" end preOpenStack|
 
 and in my cardScript I have this:
 
 |on preOpenCard set the lockScreen to true  set the filename of
 img "p1" to empty --- set the filename of img "p1" to (route66 &
 "c1.png") set the blendlevel of img "p1" to 0  wait 3 ticks set
 the lockScreen to false end preOpenCard so, WHY cannot I see the target
 image, merely a horrible grey square? Richmond. |
 
 
 ___
 use-livecode mailing list
 use-livecode@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Down a leafy lane or up queer street?

2018-04-29 Thread Richmond Mathewson via use-livecode

OK: finally I have sorted out the problem.

It seems that IFF I have this in my cardScript:

globalroute66

onpreOpenCard

putspecialFolderPath("resources") & "/assets/img/" intoroute66

everything works.

What I would like to know is:

Why does THAT script & the declaration of a global NOT work when it 
resides in the stackScript?


Richmond.


On 29/4/2018 8:56 pm, Richmond Mathewson wrote:

So, I have corrected the specialFolderPath as per your instructions.

But I am still going wrong as my source for the imgData of img "p1" is 
still

listed asroute66p1.png . . .

Richmond.

On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote:
In the IDE, specialFolderPath("resources") points to the folder 
containing the working stack. In a standalone it points to the folder 
containing files you've included in the Copy Files pane of the 
standalone builder.


Therefore, there will never be a folder 
specialFolderPath("resources") & "/Desktop/..." unless you have 
created a Desktop folder inside the one holding your stack. The 
correct path would be specialFolderPath("resources") & 
"/Obfuscated/May 2018/assets/img/"


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode 
 wrote:



I am being extremely stupid, and am getting so desperate I don't mind
admitting it.

I have a stack containing a series of images that are 'empty' images
with their
sources set to an external folder.

Now in my stackScript I have this:

|global route66 on preOpenStack put specialFolderPath("resources") &
"/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card
"TITLE" end preOpenStack|

and in my cardScript I have this:

|on preOpenCard set the lockScreen to true  set the filename of
img "p1" to empty --- set the filename of img "p1" to (route66 &
"c1.png") set the blendlevel of img "p1" to 0  wait 3 ticks set
the lockScreen to false end preOpenCard so, WHY cannot I see the target
image, merely a horrible grey square? Richmond. |


___
use-livecode mailing list
use-livecode@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Down a leafy lane or up queer street?

2018-04-29 Thread Richmond Mathewson via use-livecode

Yet, if I do this in the Message box:

put route66

I get the filepath as one would expect.

Richmond.

On 29/4/2018 8:56 pm, Richmond Mathewson wrote:

So, I have corrected the specialFolderPath as per your instructions.

But I am still going wrong as my source for the imgData of img "p1" is 
still

listed asroute66p1.png . . .

Richmond.

On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote:
In the IDE, specialFolderPath("resources") points to the folder 
containing the working stack. In a standalone it points to the folder 
containing files you've included in the Copy Files pane of the 
standalone builder.


Therefore, there will never be a folder 
specialFolderPath("resources") & "/Desktop/..." unless you have 
created a Desktop folder inside the one holding your stack. The 
correct path would be specialFolderPath("resources") & 
"/Obfuscated/May 2018/assets/img/"


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode 
 wrote:



I am being extremely stupid, and am getting so desperate I don't mind
admitting it.

I have a stack containing a series of images that are 'empty' images
with their
sources set to an external folder.

Now in my stackScript I have this:

|global route66 on preOpenStack put specialFolderPath("resources") &
"/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card
"TITLE" end preOpenStack|

and in my cardScript I have this:

|on preOpenCard set the lockScreen to true  set the filename of
img "p1" to empty --- set the filename of img "p1" to (route66 &
"c1.png") set the blendlevel of img "p1" to 0  wait 3 ticks set
the lockScreen to false end preOpenCard so, WHY cannot I see the target
image, merely a horrible grey square? Richmond. |


___
use-livecode mailing list
use-livecode@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Down a leafy lane or up queer street?

2018-04-29 Thread Richmond Mathewson via use-livecode

So, I have corrected the specialFolderPath as per your instructions.

But I am still going wrong as my source for the imgData of img "p1" is still
listed asroute66p1.png . . .

Richmond.

On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote:
In the IDE, specialFolderPath("resources") points to the folder 
containing the working stack. In a standalone it points to the folder 
containing files you've included in the Copy Files pane of the 
standalone builder.


Therefore, there will never be a folder specialFolderPath("resources") 
& "/Desktop/..." unless you have created a Desktop folder inside the 
one holding your stack. The correct path would be 
specialFolderPath("resources") & "/Obfuscated/May 2018/assets/img/"


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode 
 wrote:



I am being extremely stupid, and am getting so desperate I don't mind
admitting it.

I have a stack containing a series of images that are 'empty' images
with their
sources set to an external folder.

Now in my stackScript I have this:

|global route66 on preOpenStack put specialFolderPath("resources") &
"/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card
"TITLE" end preOpenStack|

and in my cardScript I have this:

|on preOpenCard set the lockScreen to true  set the filename of
img "p1" to empty --- set the filename of img "p1" to (route66 &
"c1.png") set the blendlevel of img "p1" to 0  wait 3 ticks set
the lockScreen to false end preOpenCard so, WHY cannot I see the target
image, merely a horrible grey square? Richmond. |


___
use-livecode mailing list
use-livecode@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Down a leafy lane or up queer street?

2018-04-29 Thread Richmond Mathewson via use-livecode

Still the Queen of xTalk!

Thanks.

Love, Richmond.

On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote:
In the IDE, specialFolderPath("resources") points to the folder 
containing the working stack. In a standalone it points to the folder 
containing files you've included in the Copy Files pane of the 
standalone builder.


Therefore, there will never be a folder specialFolderPath("resources") 
& "/Desktop/..." unless you have created a Desktop folder inside the 
one holding your stack. The correct path would be 
specialFolderPath("resources") & "/Obfuscated/May 2018/assets/img/"


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode 
 wrote:



I am being extremely stupid, and am getting so desperate I don't mind
admitting it.

I have a stack containing a series of images that are 'empty' images
with their
sources set to an external folder.

Now in my stackScript I have this:

|global route66 on preOpenStack put specialFolderPath("resources") &
"/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card
"TITLE" end preOpenStack|

and in my cardScript I have this:

|on preOpenCard set the lockScreen to true  set the filename of
img "p1" to empty --- set the filename of img "p1" to (route66 &
"c1.png") set the blendlevel of img "p1" to 0  wait 3 ticks set
the lockScreen to false end preOpenCard so, WHY cannot I see the target
image, merely a horrible grey square? Richmond. |


___
use-livecode mailing list
use-livecode@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Down a leafy lane or up queer street?

2018-04-29 Thread J. Landman Gay via use-livecode
In the IDE, specialFolderPath("resources") points to the folder containing 
the working stack. In a standalone it points to the folder containing files 
you've included in the Copy Files pane of the standalone builder.


Therefore, there will never be a folder specialFolderPath("resources") & 
"/Desktop/..." unless you have created a Desktop folder inside the one 
holding your stack. The correct path would be 
specialFolderPath("resources") & "/Obfuscated/May 2018/assets/img/"


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode 
 wrote:



I am being extremely stupid, and am getting so desperate I don't mind
admitting it.

I have a stack containing a series of images that are 'empty' images
with their
sources set to an external folder.

Now in my stackScript I have this:

|global route66 on preOpenStack put specialFolderPath("resources") &
"/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card
"TITLE" end preOpenStack|

and in my cardScript I have this:

|on preOpenCard set the lockScreen to true  set the filename of
img "p1" to empty --- set the filename of img "p1" to (route66 &
"c1.png") set the blendlevel of img "p1" to 0  wait 3 ticks set
the lockScreen to false end preOpenCard so, WHY cannot I see the target
image, merely a horrible grey square? Richmond. |


___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Down a leafy lane or up queer street?

2018-04-29 Thread Ralph DiMola via use-livecode
Richmond,

First of all I never use lockscreens in preopencards. It's redundant unless
there are some conditions I'm unaware of.

I recently had this problem when I used "file==>Import control from==>image
file" and then subsequently set the filename property. It seemed like once
the image control was using an image imported to stack I could never set the
filename property and get anything other than the "horrible gray square". I
don't think it was always this way. What I did to fix it was to delete the
control and then added an empty image control from the IDE tools pallet.
After that I was able to set the filename property and see the images just
fine and dandy. Any chance this is also your problem?

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Richmond Mathewson via use-livecode
Sent: Sunday, April 29, 2018 12:26 PM
To: How to use LiveCode
Cc: Richmond Mathewson
Subject: Re: Down a leafy lane or up queer street?

I am being extremely stupid, and am getting so desperate I don't mind
admitting it.

I have a stack containing a series of images that are 'empty' images with
their sources set to an external folder.

Now in my stackScript I have this:

|global route66 on preOpenStack put specialFolderPath("resources") &
"/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card "TITLE"
end preOpenStack|

and in my cardScript I have this:

|on preOpenCard set the lockScreen to true  set the filename of
img "p1" to empty --- set the filename of img "p1" to (route66 &
"c1.png") set the blendlevel of img "p1" to 0  wait 3 ticks set the
lockScreen to false end preOpenCard so, WHY cannot I see the target image,
merely a horrible grey square? Richmond. |


___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Down a leafy lane or up queer street?

2018-04-29 Thread Richmond Mathewson via use-livecode
I am being extremely stupid, and am getting so desperate I don't mind 
admitting it.


I have a stack containing a series of images that are 'empty' images 
with their

sources set to an external folder.

Now in my stackScript I have this:

|global route66 on preOpenStack put specialFolderPath("resources") & 
"/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card 
"TITLE" end preOpenStack|


and in my cardScript I have this:

|on preOpenCard set the lockScreen to true  set the filename of 
img "p1" to empty --- set the filename of img "p1" to (route66 & 
"c1.png") set the blendlevel of img "p1" to 0  wait 3 ticks set 
the lockScreen to false end preOpenCard so, WHY cannot I see the target 
image, merely a horrible grey square? Richmond. |



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Down a leafy lane or up queer street?

2018-04-28 Thread Richmond Mathewson via use-livecode

Thanks.

Richmond.

On 28/4/2018 9:11 pm, Tore Nilsen via use-livecode wrote:

Ah, my bad!

I always place all my script at the same level, normally the stack level. Then 
declaring the local variabel at the start of the script make them accessible to 
all handlers. You can solve this either by declaring the variabel global in all 
script where you will use it, or place the scripts that will use it at the same 
level.

Regards Tore


28. apr. 2018 kl. 20:05 skrev Richmond Mathewson via use-livecode 
:

No joy.

What happens then is that, on looking in the properties palette for an image 
("p11")

having had

setthefileNameofimg "p11" tosFolderPath & "c11.png"

in the openCard script

I see that its source is listed as sFolderPathc11.png

Richmond.


On 28/4/2018 8:55 pm, Tore Nilsen via use-livecode wrote:

What I do in these situations is to use the path stored in the variable 
sFolderPath like this

set fileName of image “whateverImage” to sFolderPath & “imageName”

or

put sFolderPath & “imageName” into tFilePath

set fileName of image “whateverImage” to tFilePath


Tore Nilsen


28. apr. 2018 kl. 19:51 skrev Richmond Mathewson via use-livecode 
:

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 
:

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@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@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@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Down a leafy lane or up queer street?

2018-04-28 Thread Tore Nilsen via use-livecode
Ah, my bad!

I always place all my script at the same level, normally the stack level. Then 
declaring the local variabel at the start of the script make them accessible to 
all handlers. You can solve this either by declaring the variabel global in all 
script where you will use it, or place the scripts that will use it at the same 
level.

Regards Tore

> 28. apr. 2018 kl. 20:05 skrev Richmond Mathewson via use-livecode 
> :
> 
> No joy.
> 
> What happens then is that, on looking in the properties palette for an image 
> ("p11")
> 
> having had
> 
> setthefileNameofimg "p11" tosFolderPath & "c11.png"
> 
> in the openCard script
> 
> I see that its source is listed as sFolderPathc11.png
> 
> Richmond.
> 
> 
> On 28/4/2018 8:55 pm, Tore Nilsen via use-livecode wrote:
>> What I do in these situations is to use the path stored in the variable 
>> sFolderPath like this
>> 
>> set fileName of image “whateverImage” to sFolderPath & “imageName”
>> 
>> or
>> 
>> put sFolderPath & “imageName” into tFilePath
>> 
>> set fileName of image “whateverImage” to tFilePath
>> 
>> 
>> Tore Nilsen
>> 
>>> 28. apr. 2018 kl. 19:51 skrev Richmond Mathewson via use-livecode 
>>> :
>>> 
>>> 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 
> :
> 
> 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@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@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, 

Re: Down a leafy lane or up queer street?

2018-04-28 Thread Richmond Mathewson via use-livecode

No joy.

What happens then is that, on looking in the properties palette for an 
image ("p11")


having had

setthefileNameofimg "p11" tosFolderPath & "c11.png"

in the openCard script

I see that its source is listed as sFolderPathc11.png

Richmond.


On 28/4/2018 8:55 pm, Tore Nilsen via use-livecode wrote:

What I do in these situations is to use the path stored in the variable 
sFolderPath like this

set fileName of image “whateverImage” to sFolderPath & “imageName”

or

put sFolderPath & “imageName” into tFilePath

set fileName of image “whateverImage” to tFilePath


Tore Nilsen


28. apr. 2018 kl. 19:51 skrev Richmond Mathewson via use-livecode 
:

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 
:

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@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Down a leafy lane or up queer street?

2018-04-28 Thread Tore Nilsen via use-livecode
What I do in these situations is to use the path stored in the variable 
sFolderPath like this

set fileName of image “whateverImage” to sFolderPath & “imageName”

or

put sFolderPath & “imageName” into tFilePath

set fileName of image “whateverImage” to tFilePath


Tore Nilsen

> 28. apr. 2018 kl. 19:51 skrev Richmond Mathewson via use-livecode 
> :
> 
> 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 
>>> :
>>> 
>>> 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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Down a leafy lane or up queer street?

2018-04-28 Thread Richmond Mathewson via use-livecode

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 
:

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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Down a leafy lane or up queer street?

2018-04-28 Thread Tore Nilsen via use-livecode
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 
> :
> 
> 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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Down a leafy lane or up queer street?

2018-04-28 Thread Richmond Mathewson via use-livecode

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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Down a leafy lane or up queer street?

2018-04-28 Thread Richmond Mathewson via use-livecode

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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode