Re: sort container parameters

2021-03-02 Thread Paul Dupuis via use-livecode

Okay. Thank you Ralph.

I was reluctant to use "do" for performance reasons. The sort could be 
sorting a large number of lines - as many as several hundred sorts of a 
thousand to ten thousand lines.


I could of course do timing trials, but does anyone from the mothership 
(or anyone period) know if using "do" with a container sort causes any 
appreciable performance hit? All the data is in a variable (vs fields).



On 3/2/2021 5:19 PM, Ralph DiMola via use-livecode wrote:

I found that you must us a "Do"(thank heaven for "Do"s) if you want to make variable any LC token that colorizes like "stack", 
"the", "field", "button", "put" or "ascending".

I don't think "Do" is a kludge is this case.

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 
Paul Dupuis via use-livecode
Sent: Tuesday, March 02, 2021 4:56 PM
To: use-livecode@lists.runrev.com
Cc: Paul Dupuis
Subject: sort container parameters

I just discovered much to my dismay that you can not execute the following:

put "ascending" into tDirection
soft lines of tContainer tDirection international

apparently neither the sort direction (ascending|descending) nor the sort type 
(international|text|datetime|numeric|binary) can be variable!

That means if you want to parameterize a sort direction, you have to do 
something like:

if tDirection is "ascending" then
sort lines of tContainer ascending international else
sort lines of tCOntainer descending international end if

I see this a a bug or perhaps a failure to fully robust impliment the sort 
container command? Does any one else see this as a bug?

I suppose I could work around it with a "do" but that seems like a cludge

do ("sort line of tContainer" && tDirection && tSortType)

Thoughts? Comments? Opinions? Am I expecting too much of LiveCode to have sort 
direction and type actual parameters?


___
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


sort container parameters

2021-03-02 Thread Paul Dupuis via use-livecode

I just discovered much to my dismay that you can not execute the following:

put "ascending" into tDirection
soft lines of tContainer tDirection international

apparently neither the sort direction (ascending|descending) nor the 
sort type (international|text|datetime|numeric|binary) can be variable!


That means if you want to parameterize a sort direction, you have to do 
something like:


if tDirection is "ascending" then
  sort lines of tContainer ascending international
else
  sort lines of tCOntainer descending international
end if

I see this a a bug or perhaps a failure to fully robust impliment the 
sort container command? Does any one else see this as a bug?


I suppose I could work around it with a "do" but that seems like a cludge

do ("sort line of tContainer" && tDirection && tSortType)

Thoughts? Comments? Opinions? Am I expecting too much of LiveCode to 
have sort direction and type actual parameters?



___
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: S3 Compatible?

2021-02-24 Thread Paul Dupuis via use-livecode

On 2/24/2021 4:23 PM, Richard Gaskin via use-livecode wrote:
 I would imagine adding optional args for new endpoints would be 
simple to do, and open the package up to MANY more use cases.


This may not be an issue with the folks at LiveCode, Ltd, but one 
possible reason why the library for Amazon Web Services (AWS) may only 
work with AWS is that is all it has been tested with. One concern some 
companies (again, perhaps not LC)  have is that if they open an API up 
to untested endpoints, there may be an explicit expectation that the 
library will work with those end points. Even though such end points 
claim to be compatible, they might not be, and then that leads to an 
expanding potential work load for the company to support a broader range 
of end points.


Again, not saying this is the case here, nor am I saying that concerns 
about broader support should mean the company limits the library. Just 
offering another perspective I have run into in my career.



___
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: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-17 Thread Paul Dupuis via use-livecode

Thank you.

I think it is an example of a LiveCode built app that uses many (I'd say 
most) of LiveCode's features all in one application. It was originally 
built in HyperCard around 1990 with a Windows version in Toolbook and 
then the Mac version migrated to SuperCard (waiting on the never 
released Windows version of SuperCard), and then was migrated to 
MetaCard, and then Revolution, and then Revolution became LiveCode. The 
HyperCard version used a ton of Externals (XCMDs) to get the flavor of a 
real application (vs a stack). Over time more and more functions and 
commands became part of the xTalk language.



On 2/17/2021 7:13 AM, David V Glasgow via use-livecode wrote:

Double [OT], but I just want to say that I have looked at HyperRESEARCH several 
times over the years, and have been hugely impressed with its features.

In fact, it is too feature rich for my needs, but it looks like a really great 
piece of work.

Cheers,

David G


On 16 Feb 2021, at 9:43 pm, Paul Dupuis via use-livecode 
 wrote:

  company Researchware produces called HyperRESEARCH for performing qualitative 
data analysis.

___
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: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread Paul Dupuis via use-livecode

On 2/16/2021 2:46 PM, Alex Tweedly via use-livecode wrote:
Paul - if you need to do this (i.e. find pairs of rects which are too 
close) for LARGE numbers of rects, I have some code to do this very 
efficiently (somewhere in an old archive, just ready to translate from 
C to LC). It uses a 'trailing window horizontal scan' so reduces the 
complexity/time from N^2 to N log N


Alex.



The actual application is for a product my company Researchware produces 
called HyperRESEARCH for performing qualitative data analysis. 
Researchers can take unstructured content (text files, word documents, 
PDFs, images, audio, video, etc.) and make selection and apply a "code" 
or label to the selection and perform various analytics.


In this specific case there is an interest in generating the following 
"report". If I have coded some rectangular area of an image file with 
the code "A", report on what other of my many codes on that image file 
are "within" X pixels of my code A and list those codes. So the 
researcher would select code "A" and a range, like 50px, and get a list 
of codes B, E, F, and G which either overlap with A or are within 50px. 
If they change the distance to 200px, then maybe the report returns 
codes B, E, F, G, H, I  J, K, L, M, N, and Z.


The report generator is not working with graphic objects (actual LC 
rects, but just with lists of stored rectangles (l,t,r,b), so everything 
is in variables and it is just tacking the rect of A and comparing it to 
the remaining N-1 rects in the list of codes for that image file. So it 
will always be an N-1 task for each file where N is the number of codes 
the researcher applied to the content of the file. Worst case would be 
if they want to see what codes are within X distance of every code on 
the file which makes it an N(N-1) or N^2-N problem but most researchers 
would not have very large numbers of iimage codes.



___
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: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread Paul Dupuis via use-livecode

On 2/15/2021 5:53 PM, Paul Dupuis via use-livecode wrote:
This is an Off Topic informal poll of sorts, but related to LiveCode 
as I am writing a LiveCode expression to determine if 2 arbitrary 
rectangles (r1,r2) are with some distance d (in px) of one another. In 
considering this problem, the questions comes up: What is meant by 
rectangles being within a distance d of one another. What is the 'd' 
measured from?


center to center? Easiest is many ways, but I don't think this is what 
most people would think of.


adjacent edge to adjacent edge? This is harder (I think), but I think 
this is what more people intuitively think of. To me, implicit in the 
visual concept of 2 rects being within some distance of one another is 
that they are NOT overlapping, but that some gap exists between the 
nearest adjacent edges?


Something else? What does 2 rects  being 'within' d pixels of one 
another mean to you, if not one of the two above options?


Maybe there is a exact mathematical definition of what 2 rectangles 
being within distance d of one another is, but, if there is, I am 
unfamiliar with it.



Okay, Poll Closed!

Thank you everyone. I think the responses (informal as this is) confirms 
the majority fo people think of distance between 2 rectangles as the 
distance between nearest edges or vertices which is the same as saying 
the *smallest* distance between any two points in the rects (mathematically)


I appreciate all the responses! (and the links and code examples!)

-- Paul

___
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: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread Paul Dupuis via use-livecode

Alex,

Thank you. As I just posted, I think I am seeing that *most* people 
think of the distance between 2 rects as the distance between nearest 
edges or vertices which is the same as the smallest distance between any 
two points.



On 2/15/2021 7:53 PM, Alex Tweedly via use-livecode wrote:


On 15/02/2021 23:21, Sean Cole (Pi) via use-livecode wrote:

Hi,
No point reinventing the wheel..


But most of those links actually did not have this particular wheel, 
or anything like it.


The exception was the last one (programmerssought.com) which had an 
ugly, inefficient and lengthy (45 lines in Python) solution. [OK, that 
45 includs blank and comments :-) !!


For me, a more precise problem specification is:

Given two rectangles (in regular Livecode format), the distance 
between them is :


 - if they touch or overlap, distance is zero.

 - otherwise, it's the smallest distance from any point in R1 to any 
point in R2.


Which leads to a simple solution


function rdist R1, R2
   local DX, DY
   put max( item 1 of R1 - item 3 of R2, item 1 of R2 - item 3 of R1, 
0) into DX
   put max( item 2 of R1 - item 4 of R2, item 2 of R2 - item 4 of R1, 
0) into DY

   return sqrt( DX*DX + DY * DY)
end rdist


Alex.


Lots of other way. Distance between two near or far edges. distance 
between

corners, distance to centers, or area median, area of space between,
overal usage area minus the area used by the two rectangles. Math is 
fun.

Keeps us in business.

Google (distance between two rectangles):

https://stackoverflow.com/questions/4978323/how-to-calculate-distance-between-two-rectangles-context-a-game-in-lua 



https://math.stackexchange.com/questions/2724537/finding-the-clear-spacing-distance-between-two-rectangles 



https://www.wyzant.com/resources/answers/583373/finding-the-distance-between-two-rectangles 



https://www.programmersought.com/article/44554760896/

etc

On Mon, 15 Feb 2021 at 22:53, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


This is an Off Topic informal poll of sorts, but related to LiveCode as
I am writing a LiveCode expression to determine if 2 arbitrary
rectangles (r1,r2) are with some distance d (in px) of one another. In
considering this problem, the questions comes up: What is meant by
rectangles being within a distance d of one another. What is the 'd'
measured from?

center to center? Easiest is many ways, but I don't think this is what
most people would think of.

adjacent edge to adjacent edge? This is harder (I think), but I think
this is what more people intuitively think of. To me, implicit in the
visual concept of 2 rects being within some distance of one another is
that they are NOT overlapping, but that some gap exists between the
nearest adjacent edges?

Something else? What does 2 rects  being 'within' d pixels of one
another mean to you, if not one of the two above options?

Maybe there is a exact mathematical definition of what 2 rectangles
being within distance d of one another is, but, if there is, I am
unfamiliar with it.


___
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: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread Paul Dupuis via use-livecode

Sean,

Thank you. I had Googles a few solutions (but missed this one: 
https://math.stackexchange.com/questions/2724537/finding-the-clear-spacing-distance-between-two-rectangles 
- which I really like so thanks!) but I say that some were solving for 
center distances and some for edges and some for other things, which is 
what in part led to my original questions of:


What is the most common way people think of the distance between 2 
rects? I suppost my question presumes there is a "most' common way or a 
'more' common way that some others of the many you mentioned.


From my Googling and this poll, I am seeing a slight favorite of people 
most commonly thinking of the distance between rects as being between 
the nearest edges or vertices.


On 2/15/2021 6:21 PM, Sean Cole (Pi) via use-livecode wrote:

Hi,
No point reinventing the wheel..

Lots of other way. Distance between two near or far edges. distance between
corners, distance to centers, or area median, area of space between,
overal usage area minus the area used by the two rectangles. Math is fun.
Keeps us in business.

Google (distance between two rectangles):

https://stackoverflow.com/questions/4978323/how-to-calculate-distance-between-two-rectangles-context-a-game-in-lua

https://math.stackexchange.com/questions/2724537/finding-the-clear-spacing-distance-between-two-rectangles

https://www.wyzant.com/resources/answers/583373/finding-the-distance-between-two-rectangles

https://www.programmersought.com/article/44554760896/

etc

On Mon, 15 Feb 2021 at 22:53, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


This is an Off Topic informal poll of sorts, but related to LiveCode as
I am writing a LiveCode expression to determine if 2 arbitrary
rectangles (r1,r2) are with some distance d (in px) of one another. In
considering this problem, the questions comes up: What is meant by
rectangles being within a distance d of one another. What is the 'd'
measured from?

center to center? Easiest is many ways, but I don't think this is what
most people would think of.

adjacent edge to adjacent edge? This is harder (I think), but I think
this is what more people intuitively think of. To me, implicit in the
visual concept of 2 rects being within some distance of one another is
that they are NOT overlapping, but that some gap exists between the
nearest adjacent edges?

Something else? What does 2 rects  being 'within' d pixels of one
another mean to you, if not one of the two above options?

Maybe there is a exact mathematical definition of what 2 rectangles
being within distance d of one another is, but, if there is, I am
unfamiliar with it.


___
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: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread Paul Dupuis via use-livecode
Thank you. I think I understand the proposed approach. I appreciate the 
clarification.


On 2/16/2021 1:02 PM, David V Glasgow via use-livecode wrote:

Well, my suggestion a non starter if you need to do hard sums, and you eschew 
invisibles.

However, my thinking was this... I understood that the task was to detect when two 
rectangles r1 and r2 were within distance d of each other.   Presumably ether a 
flat bit or a pointy bit, coming in at any angle.  if each rectangle is centred and 
grouped with a rect that is bigger by d/2, any intersection of any two bigger rects 
means that the smaller corresponding r1 and r2 rects are at or within the desired 
distance d (half d measured by r1’margin over r1, and half by r2’margin over r2). 
The size of the groups is ignored, and as long as all r & r’ stay centred it 
should work, unless the rects move super quickly.

Oh.  It just occurred to me is that the bigger rects would have to have rounded 
corners.  Hmmm.


OK, I’ll just sit back and see how it should be done.

Cheers

David G




On 16 Feb 2021, at 5:08 pm, Paul Dupuis via use-livecode 
 wrote:

On 2/16/2021 6:16 AM, David V Glasgow via use-livecode wrote:

Being a bear of little brain, I would try placing each rect into a group 
centred on a larger rect, where the margin is d/2,  then test using intersect.

Now, where did I put that hunny?



Like the pooh reference!

Although I am not sure I follow exactly what you are suggests - AND - I need to 
do this via math rather than visible (or invisible) objects in LC.

for rects r1,r2, I have l1,t1,r1,b2 and l2,t2,r2,b2 for their coordinates. The 
rect min(l1,l2),min(t1,t2),max(r1,r2),max(b1,b2) is a rectangle that exactly 
bounds both rects - this would be the rect of the group (if you created them as 
objects and grouped them (less margins/borders).

I don't follow the part about 'centered on a larger rect where the margin is 
d/2?


___
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: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread Paul Dupuis via use-livecode

On 2/16/2021 6:16 AM, David V Glasgow via use-livecode wrote:

Being a bear of little brain, I would try placing each rect into a group 
centred on a larger rect, where the margin is d/2,  then test using intersect.

Now, where did I put that hunny?




Like the pooh reference!

Although I am not sure I follow exactly what you are suggests - AND - I 
need to do this via math rather than visible (or invisible) objects in LC.


for rects r1,r2, I have l1,t1,r1,b2 and l2,t2,r2,b2 for their 
coordinates. The rect min(l1,l2),min(t1,t2),max(r1,r2),max(b1,b2) is a 
rectangle that exactly bounds both rects - this would be the rect of the 
group (if you created them as objects and grouped them (less 
margins/borders).


I don't follow the part about 'centered on a larger rect where the 
margin is d/2?



___
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


[OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-15 Thread Paul Dupuis via use-livecode
This is an Off Topic informal poll of sorts, but related to LiveCode as 
I am writing a LiveCode expression to determine if 2 arbitrary 
rectangles (r1,r2) are with some distance d (in px) of one another. In 
considering this problem, the questions comes up: What is meant by 
rectangles being within a distance d of one another. What is the 'd' 
measured from?


center to center? Easiest is many ways, but I don't think this is what 
most people would think of.


adjacent edge to adjacent edge? This is harder (I think), but I think 
this is what more people intuitively think of. To me, implicit in the 
visual concept of 2 rects being within some distance of one another is 
that they are NOT overlapping, but that some gap exists between the 
nearest adjacent edges?


Something else? What does 2 rects  being 'within' d pixels of one 
another mean to you, if not one of the two above options?


Maybe there is a exact mathematical definition of what 2 rectangles 
being within distance d of one another is, but, if there is, I am 
unfamiliar with it.



___
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: Codesigning & notarizing

2021-02-04 Thread Paul Dupuis via use-livecode

I should have added that we sign with entitlements (the same set LC uses)

On 2/4/2021 3:56 PM, panagiotis merakos via use-livecode wrote:

@Marty

If you have not done it already, it might be worth adding entitlements to
the codesign.

https://lessons.livecode.com/m/4071/l/1293515-entitlements-for-signed-and-notarized-apps

I do not think it is the Xcode version that is the problem. I am on Mojave
as well, so I can do a quick test if you send me the standalone that
crashes. Also make sure you attach the stack to the bug report :)

Kind regards,
Panos
--

On Thu, 4 Feb 2021 at 22:47, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


I should add, we're not using Levure. We are using LC9.6.2rc2, we
codesign via Terminal on Mohave using Xcode 10.2.1

On 2/4/2021 3:37 PM, Paul Dupuis via use-livecode wrote:

FYI - Our App includes the revZIP library. We codesign deep via
Terminal command and get no crashes. Codesign, notarize, and staple
without problems.


On 2/4/2021 2:40 PM, Marty Knapp via use-livecode wrote:

Re: building a standalone in LC 9.6.2 rc2 with the “Revolution Zip”
library (crashes when codesigned)

Just filed a bug report on this - 23083

Marty


On Feb 4, 2021, at 11:25 AM, Marty Knapp 
wrote:

I’ve narrowed this down to the “Revolution Zip” library. If I leave
that out of Inclusions, I can build in 9.6.2 and codesign and all is
well.

marty


On Feb 3, 2021, at 2:59 PM, Mark Talluto via use-livecode
 wrote:

Hi Marty,

My work is with LiveCode 9.6.2 rc2 and Xcode 11.3.1.

I have only a cursory understanding of Levure. From what I read,
Trevor has methods to codesign and even notarize inside of Levure’s
framework.

If your testing with a basic stack works as expected, maybe some
interaction is happening with the Levure Framework project. I am
certain Trevor knows best what may be happening here.

When you find out, please post back what you learn.

Best regards,

Mark Talluto
livecloud.io <http://livecloud.io/>
nursenotes.net <http://nursenotes.net/>
canelasoftware.com <http://www.canelasoftware.com/>


___
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: Codesigning & notarizing

2021-02-04 Thread Paul Dupuis via use-livecode
I should add, we're not using Levure. We are using LC9.6.2rc2, we 
codesign via Terminal on Mohave using Xcode 10.2.1


On 2/4/2021 3:37 PM, Paul Dupuis via use-livecode wrote:
FYI - Our App includes the revZIP library. We codesign deep via 
Terminal command and get no crashes. Codesign, notarize, and staple 
without problems.



On 2/4/2021 2:40 PM, Marty Knapp via use-livecode wrote:
Re: building a standalone in LC 9.6.2 rc2 with the “Revolution Zip” 
library (crashes when codesigned)


Just filed a bug report on this - 23083

Marty

On Feb 4, 2021, at 11:25 AM, Marty Knapp  
wrote:


I’ve narrowed this down to the “Revolution Zip” library. If I leave 
that out of Inclusions, I can build in 9.6.2 and codesign and all is 
well.


marty

On Feb 3, 2021, at 2:59 PM, Mark Talluto via use-livecode 
 wrote:


Hi Marty,

My work is with LiveCode 9.6.2 rc2 and Xcode 11.3.1.

I have only a cursory understanding of Levure. From what I read, 
Trevor has methods to codesign and even notarize inside of Levure’s 
framework.


If your testing with a basic stack works as expected, maybe some 
interaction is happening with the Levure Framework project. I am 
certain Trevor knows best what may be happening here.


When you find out, please post back what you learn.

Best regards,

Mark Talluto
livecloud.io <http://livecloud.io/>
nursenotes.net <http://nursenotes.net/>
canelasoftware.com <http://www.canelasoftware.com/>



___
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: Codesigning & notarizing

2021-02-04 Thread Paul Dupuis via use-livecode
FYI - Our App includes the revZIP library. We codesign deep via Terminal 
command and get no crashes. Codesign, notarize, and staple without problems.



On 2/4/2021 2:40 PM, Marty Knapp via use-livecode wrote:

Re: building a standalone in LC 9.6.2 rc2 with the “Revolution Zip” library 
(crashes when codesigned)

Just filed a bug report on this - 23083

Marty


On Feb 4, 2021, at 11:25 AM, Marty Knapp  wrote:

I’ve narrowed this down to the “Revolution Zip” library. If I leave that out of 
Inclusions, I can build in 9.6.2 and codesign and all is well.

marty


On Feb 3, 2021, at 2:59 PM, Mark Talluto via use-livecode 
 wrote:

Hi Marty,

My work is with LiveCode 9.6.2 rc2 and Xcode 11.3.1.

I have only a cursory understanding of Levure. From what I read, Trevor has 
methods to codesign and even notarize inside of Levure’s framework.

If your testing with a basic stack works as expected, maybe some interaction is 
happening with the Levure Framework project. I am certain Trevor knows best 
what may be happening here.

When you find out, please post back what you learn.

Best regards,

Mark Talluto
livecloud.io 
nursenotes.net 
canelasoftware.com 



___
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: Sign a Mac App, also sign the DMG?

2021-02-04 Thread Paul Dupuis via use-livecode
We current ship a commercial app. We code sign, notarize, and staple our 
App We then place it on a DMG using DropDMG, but do not code sign the 
DMG. We distribute the DMG via our Web site and not the MacApp store.


QA testing on Catalina and Big Sur show only the usual "This (the DMG) 
has been downloaded from the Internet" warning that your get even with a 
signed DMG if downloading outside of the MacApp store. Where as a signed 
DMG will not open on Mavericks and a couple other above 10.9.


We test on 10.9 to 10.16 as that is the range of MacOS versions 
supported by LC.



On 2/4/2021 11:54 AM, Peter Bogdanoff via use-livecode wrote:

To avoid the unidentifiable developer warning in recent macOS versions, you do 
need it signed. If your market is consumers, that is what they will have.

DropDMG is great.

Peter


On Feb 4, 2021, at 8:49 AM, Klaus major-k via use-livecode 
 wrote:

Hi Paul,


Am 04.02.2021 um 17:46 schrieb Paul Dupuis via use-livecode 
:

If the App is Signed and Notarized, it is actually best NOT to sign the DMG.
Older versions of MacOS (like Mavericks, etc.) have a problem with signed DMGs

thank you very much, very helpful!


On 2/4/2021 11:40 AM, Klaus major-k via use-livecode wrote:
Hi friends,

quick question, now we have a Mac app, signed and notarized
and what not, is it also neccessary for the DMG we create from
that app for distribution?

Thanks for any insight!

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: Sign a Mac App, also sign the DMG?

2021-02-04 Thread Paul Dupuis via use-livecode
If the App is Signed and Notarized, it is actually best NOT to sign the 
DMG. Older versions of MacOS (like Mavericks, etc.) have a problem with 
signed DMGs



On 2/4/2021 11:40 AM, Klaus major-k via use-livecode wrote:

Hi friends,

quick question, now we have a Mac app, signed and notarized
and what not, is it also neccessary for the DMG we create from
that app for distribution?

Thanks for any insight!


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: Codesigning & notarizing

2021-02-03 Thread Paul Dupuis via use-livecode
I am using LC 9.6.2rc2 and to the best of my knowledge, it does NOT 
codesign standalone for you. Codesigning and notarization (on macOS) is 
up to you. I codesign and notarize and stable under macOS Mojave using 
Terminal commands and all is working for me.


Apple just sent a notice to developers that an Intermediate Certificate 
expired recently and instructions as to what to do about it. I don't 
know if that may impact you as it depends on what version of Xcode you 
are using and whether you are signing for Mac Store distribution or 
distribution from your own web site.




On 2/3/2021 3:47 PM, Marty Knapp via use-livecode wrote:

Is it just my imagination or does LC (9.6.1) now automatically codesign Mac 
apps when you build a standalone? Well my setup is - I tried on 2 different 
Macs. Yet I can’t find anywhere to set or change this - what am I missing? Is 
there a ghost in the machine??

I usually use AppWrapper to do my codesigning as it performs some other cleanup 
functions that I like. I have a Levure-based app and my build-codesign-notarize 
process has been working fine, until I tried with LC 9.6.2 rc2. If I leave the 
codesigning done by LC get a bunch of errors back when I notarize. If I codesign 
(but not notarize) the 9.6.2 rc2 built app with AppWrapper it crashes on startup 
with a "Service exited with abnormal code: 255” error.

I tried leaving the codesigning done by LC and then tried notarizing with apps 
built in 9.6.1 and 9.6.2 - they both fail to notarize with lots of errors

Anybody else having similar issues?

Marty
___
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: Double sided PDF Problem

2021-01-29 Thread Paul Dupuis via use-livecode

On 1/29/2021 11:16 AM, Bob Sneidar via use-livecode wrote:

As an IT technician working for a copier sales and service company, I always 
discourage page imposition in the document itself. Most print drivers have a 
means of producing booklets and handle the imposition for you. If you are 
indeed producing booklets, I assume they need to be center stapled as well.

Adobe has it’s own means of imposing pages for a booklet. Typically I advise 
having Reader impose the pages, then everything else can be handled in the 
actual print driver properties. That of course is only for Adobe products.

Bob S



Yea, PDFs are not double sided. You can print a PDF to any printer that 
supports double-sided printing and whatever original applications 
(MS-Word, etc.) you used to create the PDF can be formatted for 
double-sided, book-style printing by having alternating even and odd 
margins and so on, but PDFs themselves are not double sided.




___
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: OT Friendly customers....

2021-01-26 Thread Paul Dupuis via use-livecode
When  people buy our software an email with a license key is sent to 
them. We probably get a handful of people contacting support each MONTH 
with problems - in most cases they are polite and just want the problem 
solved, which is usually that they are using the wrong license key with 
the wrong software version or the email with the license key went into 
some SPAM filter and they never saw it (or they just never saw it or 
noticed it).


Out of that, we probably get a handful per YEAR that are like your email 
- where the customer thinks that the issue must be we're a fraudulent 
company trying to scam them. In most all of that handful per YEAR it 
ends up being that the customer was also using the wrong key with the 
wrong version or missed the email with the key, but their first 
assumption is that it is some kind of SCAM.


Honestly with all the SCAM email out there from Nigerian Princes to "I 
am dying and wish you to manage my million as I have no heirs" to the 
"You email account is shutdown until you click here" and on and on, you 
should not be surprised some people assume SCAM first. Don't take it 
personally. It is also possible they have fallen for some scam or other 
in the past and are now especially gun shy.



On 1/26/2021 12:16 PM, matthias rebbe via use-livecode wrote:

Hi all,

today i had a really unfriendly email from a customer
and i would like to show what independent developers sometimes have to deal 
with.

First some information...
i am selling a Win/Mac/Linux tool through Fastspring for years.
The software is protected using Zygodact from Jacqueline Landman Gay.
Btw. a really great tool.

The purchase process is quite easy. After successful purchase/payment 
Fastspring contacts post some data to a Livecode Server Script. If the 
Fastpring call contains all needed information the Livecode Server scripts call 
the Zygodact stack to generate the registration data for that order  and then 
returns that information. T he customer then get's an automated email from 
Fastspring which contains the details to unlock the software from demo mode to 
full mode. This works for years now and worked before Fastspring for years with 
KAGI.

Today this email arrived:

<
I plugged in the registration code and received a message that it was not valid 
for the current version that I had downloaded and that I had to send more money.

Either send me a valid code or refund my money.

Unless I hear from you today I will contact my bank and my credit card company 
and report this as a fraudulent charge.

Let me know what are your intentions.

The funny part is, my software does not return such a message. If the code is not 
accepted because email address and key code do not match, it just returns the message 
"Name or Key incorrect."

So what should i conclude from this? Did the customer try to unlock a wrong program? Or did he just 
interpret the message "Name or Key incorrect" as "You have to send more money"?

But what annoys me the most is the way he wrote the support request.

As the friendly person i am, i tried his unlock data here w/o problem. I 
replied to him that the unlock data is definitely working and if that is not 
the case at his side, then i would assume that he either tried to use the 
unlock details with an other program not mine or that he did not exactly enter 
the unlock details.
I even offered a free one2one remote session to do the unlock process for him.

Until now i did not receive any answers.

Btw. according to his LinkeIn profile he is a Digital Journalist and Web 
Designer and is working for a US University

Anyway.

Regards,

Matthias








-
Matthias Rebbe
Life Is Too Short For Boring Code


___
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: Stack check-out/check-in

2021-01-25 Thread Paul Dupuis via use-livecode
If the could storage the stack is on has write access, the easiest 
mechanism is a file based flag.


When the stack is launched, if checks:

if there is a file  then
  -- the stack is already open, so exit
else
   put empty into URL ("file:"&) -- creates a empty file to 
mark as open

end

and  when the stack exists remove the file

on quit
  delete file 
end quit

Or something like that. I do not have LC open to check my code above.


On 1/25/2021 7:24 PM, Marty Knapp via use-livecode wrote:

I have an app that allows user to create specialized editable documents 
(stacks) that open in my app. Some customers use Dropbox, iCloud, OneDrive or 
similar to store these documents so that they can be accessed from 2 different 
computers. Is there a way to tell if a stack is already open on one computer? I 
need to prevent them from opening a 2nd instance of the stack on the other 
computer so that Dropbox (or other cloud sync service) does not create a 
conflicted copy.

If there is not a way to tell, has anyone created some sort of stack 
check-out/check-in system that they'd be willing to share? I need this for Mac, 
PC and mixed.

Marty
___
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


Comments for Properties in the Property Inspector?

2021-01-23 Thread Paul Dupuis via use-livecode

Random Thought of the Day:

Does anyone else wish that custom properties had an optional comment 
field that could be viewed in the Property Inspector (PI)?


I realize you can always comment properties in the code where you use 
them, but I find myself often in the PI looking at a Property that has, 
say an enumerated set of values, and I don't remember what all the 
values are, nor do I remember exactly where in the many stacks of code 
the property is first documented. I find myself wishing each custom 
property has a comment field.


I suppose I could create a library of setProp and getProp handlers for 
every property I might like to document and document the values or 
constraints there. I suppose if I am doing that extra degree of work 
then I could enforce any constraints on the customer property in the 
getProp and setProp handlers, but that seems like a non-trivial extra 
amount of work just to remember that the custom property should only 
have values of X, Y, and Z.


Thoughts?

___
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: lock screen

2021-01-22 Thread Paul Dupuis via use-livecode
When I have a handler that needs to lock the screen I will often do the 
following


begins handler

put the lockScreen into tPreserveLockScreen
if not tPreserveLockScreen then lock screen
...
code
...
if not tPreserveLockScreen then unlock screen

end handler

Code in our main LC app is large enough that there are instances where 
the some code that calls the handler needs to lock the screen and other 
code that call it does not, but the handler always wants to hide changed 
until done.



On 1/22/2021 9:24 AM, Craig newman via use-livecode wrote:

Something else you might want to to know, though it may only be academic.

LockScreen commands are queued. So if you lock the screen twice, you have to 
explicitly unlock twice in order to clear the locked state.

It does not matter what happens in the flow of code in terms of screen locking, 
whether other command or function calls are made. The queue rules throughout. 
All is reset at idle time.

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Brian Milby via use-livecode
Sent: Friday, January 22, 2021 6:50 AM
To: How to use LiveCode 
Cc: Brian Milby 
Subject: Re: lock screen

I’m sure someone else can be more clear, but when the engine gets to an idle 
state then locks should be cleared.  In your example, it would probably clear 
at the end of that mouseUp handler, but aTest would completely run with the 
screen locked.

Sent from my iPhone


On Jan 22, 2021, at 3:57 AM, Terence Heaford via use-livecode 
 wrote:

Just looking for clarity with regard to lock screen.

Is there only one state for the screen, either locked or not locked and when is 
that state changed.

---
on mouseUp

lock screen

aTest

end mouseUp


on aTest

— is the screen still locked here

end aTest



At what point is unlock screen called by livecode without me calling it 
directly.

The docs say when all pending handlers have completed but what exactly is a 
pending handler.



Thanks

Terry
___
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: [ANN] Release 9.6.2 RC-2

2021-01-14 Thread Paul Dupuis via use-livecode

On 1/14/2021 5:53 AM, David V Glasgow via use-livecode wrote:

I paid for the Windows version of SuperCard that was advertised in MacUser for 
some considerable time in the ?mid 90s.  I waited, and waited, and waited….


Me too!



___
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: LC & Mac M1 Chip

2021-01-08 Thread Paul Dupuis via use-livecode

Andre and Panos,

Thank you both. That given us some confidence we can release under LC 
9.6.2rc1 so that customers can go ahead with their M! Big Sur systems as 
they want to.




On 1/8/2021 6:46 AM, Andre Garzia via use-livecode wrote:

Hi Panos,

Just updated https://quality.livecode.com/show_bug.cgi?id=22955 with a
screenshot from 9.6.2-rc-1 running on my M1 machine.

I can't reproduce the bug, I guess it is fixed.

On Fri, 8 Jan 2021 at 10:35, panagiotis merakos via use-livecode <
use-livecode@lists.runrev.com> wrote:


Hello all,

Just a clarification - the bug about dashes in menus in standalones on Big
Sur is:

https://quality.livecode.com/show_bug.cgi?id=23009

and not https://quality.livecode.com/show_bug.cgi?id=23013

BTW, could someone that has a M1 Mac confirm that in the LC 9.6.2 RC-1 IDE
there are no dashes in front of the menus - in other words that this bug is
fixed:
https://quality.livecode.com/show_bug.cgi?id=22955

Thank you!

Kind regards,
Panos
--

On Fri, 8 Jan 2021 at 01:07, Curry Kenworthy via use-livecode <
use-livecode@lists.runrev.com> wrote:


Paul:

  > we have several customer who have said
  > they are upgrading to M1 laptops

Yes; important to support! I'm looking in that direction too. It'll be
popular, plus it's what I can afford. Many people in the same boat.

(Backstory: Apple's biz model forces Apple to force us to spend on
hardware. The mobile herd sticks with Apple, so the dev herd does too,
so wallets must open and notes must rain down. But not satisfied yet
with the rain from software tweaks, so now hardware tweaks too.)

I'm planning to get an M1 Mac this year, to get back on the bleeding
edge for a while. It's time. My old Mac hardware is still perfectly
good, it was well-built and has zero issues, but finally has been pushed
into what will soon be an untenable corner by the combo of new OS to
support and new chip to support. But the older Mac will continue to
serve for testing and for transition dev if needed.

  > a sense of when LC 9.6.2 STABLE may be out?

Could be roughly predicted, maybe, by looking at what they are working
on. I actually agree with LC's anti release date policy; announcing firm
dates is just begging for another issue to pop up. But since Apple's biz
model places so much pressure on devs to keep up, a sense would be good.
Especially since third-party addons and widgets also have to keep up
with our ecosystem.

(Another backstory: Don't forget the stable/stable linguistic play; I've
seen RCs here that were actually more "stable" than the final, because
glitches, regressions, and extra bugs are sometimes - perhaps often -
introduced in the very process of fixing bugs. Depending on a stable to
be stable is a gamble, and depending on the specific features in an app,
there are times when the RC is more reliable. Nevertheless I really hate
to publish anything with an RC; only when forced to do so.)

BTW, Paul knows all of this very well. I'm just replying publicly in
case the backstories will benefit other readers here in the process. :)

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

___
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: LC & Mac M1 Chip

2021-01-07 Thread Paul Dupuis via use-livecode
I know the mothership does not like to estimate release dates, but does 
anyone have a sense of when LC 9.6.2 STABLE may be out? And more 
importantly, whether it will come with 'official' support for the M1 
hardware or at least a fix for this apparent M1 specific bug: 
https://quality.livecode.com/show_bug.cgi?id=23013


We're getting a certain amount of pressure for our primary app to 
support the Big Sur and the new hardware. LC9.6.2rc1 address our main 
Big Sur issues (not that there were many), but the dashes in menus on M1 
(#23013) concerns me as we have several customer who have said they are 
upgrading to M1 laptops.




___
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: Building a Standalone MacOS App in 9.6.1

2021-01-06 Thread Paul Dupuis via use-livecode

On 1/6/2021 10:17 AM, Tore Nilsen via use-livecode wrote:



6. jan. 2021 kl. 15:48 skrev Paul Dupuis via use-livecode 
:

macOS Catalina or Big Sur apps have to be code signed AND notarized. You must 
have the command line tools installed and there is a non-trivial number of 
commands you have to execute to prepare you app for code signing, then code 
sign it, and then notarize it, including obtaining an app specific password 
from Apple.

Livecode has a pretty decent tutorial on their web site on the whole lengthy 
process.


I can happily build a MacOS app without code signing or notarizing the app from 
Big Sur and Catilina. I guess this is needed for an iOS app, but then again you 
cannot build an iOS app with LiveCode Community




Sorry, I thought you meant building a macOS app to deploy to other 
people rather than for your own use on your own computer. Gatekeeper 
will throw a ton of obstacles and warnings for any app not signed and 
notarized that you download and try to install on Catalina or Big Sur. 
Technically, there is probably some way to instruct people how to 
circumvent Gatekeeper objections.


___
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: Building a Standalone MacOS App in 9.6.1

2021-01-06 Thread Paul Dupuis via use-livecode
macOS Catalina or Big Sur apps have to be code signed AND notarized. You 
must have the command line tools installed and there is a non-trivial 
number of commands you have to execute to prepare you app for code 
signing, then code sign it, and then notarize it, including obtaining an 
app specific password from Apple.


Livecode has a pretty decent tutorial on their web site on the whole 
lengthy process.



On 1/6/2021 9:10 AM, Terence Heaford via use-livecode wrote:

I thought I would try to build a standalone app with the Community Edition in 
Catalina

Many errors. Perhaps someone could shed some light.

This error is the first. "replacing existing signature xcrun: error active 
developer path”

I did see a comment on the LC Forum that suggested

sudo xcode-select —install, to install the command line tools.

I carried this out, still no luck.

Installed 9.6.1 RC1. Still no luck.

Is it necessary to have Xcode installed for this to work?


Thanks

Terry




___
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: LC & Mac M1 Chip

2020-12-31 Thread Paul Dupuis via use-livecode

On 12/31/2020 8:22 AM, John Balgenorth via use-livecode wrote:

I thought the Mac M1 Chip has Rosetta or something
like that allowing most 64 bit programs to still  run
so I was thinking any 64 bit version of LC would still
work.


You can search the Livecode Quality center for Big Sur bugs. As I recall 
the 3 main ones were:


1) A bug with custom window shapes (not an issue if you do not use any 
custom window shapes)
2) A bug with the highlights on tabbed buttons (not an issue if you do 
not use tabbed buttons - also there was a script work-around available)

3) An issue with dialogs displayed "as sheet"

These bugs are resent under Big Sur (regardless of whether you are on 
the M1 chip or Intel) in LC 9.6.1 and are fixed in 9.6.2rc1


Again, search the https://quality.livecode.com/ for "big sur" for details



JB



On Dec 31, 2020, at 5:15 AM, Paul Dupuis via use-livecode 
 wrote:

You need to be on macOS Big Sur for the new hardware (I think).

There are bugs in LC vs Big Sur that are only fixed in LC 9.6.2rc1 so you 
probably want to rebuild any Standalones using that version of LC



On 12/30/2020 10:29 PM, John Balgenorth via use-livecode wrote:
Should any LC standalone work with the Mac M1 Chip
if it was working on Mojave and above?

JB



On Dec 30, 2020, at 7:07 PM, Roger Guay via use-livecode 
 wrote:

Yes, I just tried it and it works fine! I’m happy to try yours out if you 
wish??

Roger



On Dec 30, 2020, at 2:47 PM, Marty Knapp via use-livecode 
 wrote:

Has anyone tried an LC standalone on one of the new Macs with the M1 chip? I 
have customers asking and I don’t want to go buy one just to find out!

Thanks,
Marty
___
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: LC & Mac M1 Chip

2020-12-31 Thread Paul Dupuis via use-livecode

You need to be on macOS Big Sur for the new hardware (I think).

There are bugs in LC vs Big Sur that are only fixed in LC 9.6.2rc1 so 
you probably want to rebuild any Standalones using that version of LC



On 12/30/2020 10:29 PM, John Balgenorth via use-livecode wrote:

Should any LC standalone work with the Mac M1 Chip
if it was working on Mojave and above?

JB



On Dec 30, 2020, at 7:07 PM, Roger Guay via use-livecode 
 wrote:

Yes, I just tried it and it works fine! I’m happy to try yours out if you 
wish??

Roger



On Dec 30, 2020, at 2:47 PM, Marty Knapp via use-livecode 
 wrote:

Has anyone tried an LC standalone on one of the new Macs with the M1 chip? I 
have customers asking and I don’t want to go buy one just to find out!

Thanks,
Marty
___
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: Encoding puzzle

2020-12-29 Thread Paul Dupuis via use-livecode

On 12/29/2020 6:07 PM, J. Landman Gay via use-livecode wrote:

Original text: Révéler l'archéologie
LC urlEncoded string: R%8Ev%8Eler+l%27arch%8Eologie 


URLEncode(textEncode(,"UTF8")) -> gets you a properly URL 
encoded string where the server is expecting UTF8


___
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: Slow performance on Big Sur

2020-12-14 Thread Paul Dupuis via use-livecode

On 12/14/2020 2:04 PM, J. Landman Gay via use-livecode wrote:
My client is running Big Sur and says that changing cards in a stack 
causes a very slow, stuttering display. The background image appears 
in chunks and text in the fields comes in as sequential pieces. The 
order of the display varies, sometimes the text appears first, 
sometimes the background image. The first few cards are fairly normal, 
but as she pages through the stack it gets slower.


I had her watch Activity Monitor and CPU usage goes up as she 
navigates through cards. At first the display is fairly normal but 
each successive card change increases CPU useage a little bit. She 
stopped when usage got to about 50% when she said it was unusable. 
This was in the IDE. She says the standalone is even slower.


Has anyone seen this? On Mojave and Catalina everything is fine.



I had a weird display issue where a transition between two cards left 
with one card semi-transparent behind the new card. It was also slow. I 
have a visual effect dissolve between these two cards I removed the 
visual effect and changing between the cards was fast and clean.


Examine any visual effect transitions you may have between cards.

___
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: LC9.6.2rc build issues?

2020-11-24 Thread Paul Dupuis via use-livecode

On 11/24/2020 8:54 AM, Paul Dupuis via use-livecode wrote:
I have to try making changes again and see if I can get the issue to 
repeat itself. 


Now trying to repeat the build issue in LC962rc1, I made an edit to a 
button script. Applied the change, closed the substack window (getting 
prompted to save my changes), and the LC just exited.


Then trying a 3rd time, everything worked as expected.

Maybe it was a bad preferences file that fixed itself or  gremlins!



___
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: LC9.6.2rc build issues?

2020-11-24 Thread Paul Dupuis via use-livecode
okay, this did not happen the next time I tried. The first time I have 
made a number of changes to two substacks in the mainstack (and saved) 
and then tried building the standalone and got the errors and loop.


The second time I made no changes. I just opened the mainstack (and let 
the app startup) and then build the standalones using 962rc1 and it worked.


I have to try making changes again and see if I can get the issue to 
repeat itself.



On 11/24/2020 8:44 AM, Paul Dupuis via use-livecode wrote:
So, I have a large applications. Under 9.6.1 STABLE I open the main 
stack and build the standalone (Windows and macOS) without issue.


I just tried it under 9.6.2rc1 and I get an infinite loop of 
"duplicate stacks" errors and it keeps trying to reload the app over 
and over?!?!? I had to force quit (on Windows 10).


Any one else have any problems?

___
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


LC9.6.2rc build issues?

2020-11-24 Thread Paul Dupuis via use-livecode
So, I have a large applications. Under 9.6.1 STABLE I open the main 
stack and build the standalone (Windows and macOS) without issue.


I just tried it under 9.6.2rc1 and I get an infinite loop of "duplicate 
stacks" errors and it keeps trying to reload the app over and over?!?!? 
I had to force quit (on Windows 10).


Any one else have any problems?

___
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: Getting a real number from scientific notation

2020-11-23 Thread Paul Dupuis via use-livecode
All this is why I prefer format() over numberFormat. The function is 
more versatile and you get exactly what you specify with less guess work.


On 11/23/2020 6:52 PM, Roger Guay via use-livecode wrote:

Yaknow, this whole thing is confusing. Turns out you don’t even need to set the 
numberFormat.
put 4.21911e+11 + 0 results in 42191000.

Roger


On Nov 23, 2020, at 2:44 PM, Craig newman via use-livecode 
 wrote:

Nope.

The "numberFormat" property is perfectly happy with quotes around its 
formatExpression. It is also perfectly happy without it. But I always use quotes for 
things like this.

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Roger Guay via use-livecode
Sent: Monday, November 23, 2020 5:25 PM
To: How to use LiveCode 
Cc: Roger Guay 
Subject: Re: Getting a real number from scientific notation

That works. Thanks, Klaus!

Roger




On Nov 23, 2020, at 1:55 PM, Klaus major-k via use-livecode 
 wrote:

Hi Roger,

you forgot + 0 :-)

on MouseUp
set the numberformat to 0 # NO quotes around this 0 or LC gives an
error  put 4.21911e+11 + 0 End mouseUp

-> 42191100


Am 23.11.2020 um 22:50 schrieb Roger Guay via use-livecode 
:
on MouseUp
set the numberformat to  “0"
put 4.21911e+11
End mouseUp
puts 4.21911e+11 into msg box
What am I missing?

Roger

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: Getting a real number from scientific notation

2020-11-22 Thread Paul Dupuis via use-livecode
So, if you want to concert form scientific notation to a real number, 
you can use the "format" function (see dictionary). Example:


putformat("%1.0f",4.21911E+11) -- outputs 42191100

Is that shat yo are looking for?


On 11/22/2020 3:30 PM, Klaus major-k via use-livecode wrote:

Please, this is quite urgent, my customer is waiting impatiently,
so if someone has an idea...


Am 22.11.2020 um 21:25 schrieb Klaus major-k via use-livecode 
:

Hi friends,

see subject.

I have some values in a CSV with this notation
According to the dictionary I tried:
on mouseUp pMouseButton
   put "4.21911E+11" into tSN
   set itemdel to "+"
   put char 1 to -2 of item 2 of tSN into t1
   put item 2 of tSN into t2
   put t1*10^t2 into tRes
   #x*10^y.
end mouseUp

But tRes is also in scientific notation ->  1e+11
When I set a breakpoint and doubleclick that value
the little popup palette shows a real number however!?

What am I missing and is this the correct way to do what I need?

Thanks a lot in advance!

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: Big Sur bugs

2020-11-18 Thread Paul Dupuis via use-livecode

Jacque,

Thank you! My blood pressure is already going down to more normal 
levels. I will work on the assumtion it is a VM issue for now and set up 
a partitioned Big Sur install.




On 11/18/2020 3:07 PM, J. Landman Gay via use-livecode wrote:

On 11/18/20 12:06 PM, Paul Dupuis via use-livecode wrote:
Has any experienced any problems playing back media (.mp3 audio files 
or .mp4 video) under macOS Big Sur?


I just ran into an issue where none of my media is playing (at all) 
in a LC9.6.1 built stand-alone under Big Sur.


I haven't built an app in Big Sur yet, but an app built in Mojave 
plays audio when run in Big Sur.





___
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: Big Sur bugs

2020-11-18 Thread Paul Dupuis via use-livecode
No, however, I am running Big Sur in a Virtual Box VM under macOS 
Mojave. All other Big Sur features and functions appear to work fine in 
the VM (we just can not afford Apple hardware for every version of their 
OS from Mavericks to Big Sur. VM's are a lot more versatile as they can 
be clones, snapshotted, and restored when things get messed up)


If I try to just double click on the video under Big Sure, it opens the 
Quicktime Player (?) and I get a "unknown error occurred (-101).


I am glad to hear it is working for you Panos - very glad. Both our 
commercial apps depend on the player object and I was in a panic! I'd 
ask anyone following this thread to please take time to test media under 
Big Sur.


I would be ecstatic to learn in is a VM issue. We'll then move to our 
backup of installing on a partition for a dual (actually more than dual 
as we have about 5 version of macOS each on its own partition) boot system.


-- Paul

On 11/18/2020 2:21 PM, panagiotis merakos wrote:

@Paul Dupuis <mailto:p...@researchware.com>

Hmm that is strange, the player works for me. I used the video you 
attached in the bug report. Are you by any chance using a new Silicon 
(ARM) Mac?


I am curious to see if other folks can reproduce this bug.

Kind regards,
Panos
--

On Wed, 18 Nov 2020 at 20:58, Paul Dupuis via use-livecode 
mailto:use-livecode@lists.runrev.com>> 
wrote:


I just filed bug
https://quality.livecode.com/show_bug.cgi?id=22986
<https://quality.livecode.com/show_bug.cgi?id=22986>

Media is dead under Big Sur


On 11/18/2020 1:06 PM, Paul Dupuis via use-livecode wrote:
> Has any experienced any problems playing back media (.mp3 audio
files
> or .mp4 video) under macOS Big Sur?
>
> I just ran into an issue where none of my media is playing (at
all) in
> a LC9.6.1 built stand-alone under Big Sur.
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com <mailto: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
<http://lists.runrev.com/mailman/listinfo/use-livecode>


___
use-livecode mailing list
use-livecode@lists.runrev.com <mailto: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
<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: Big Sur bugs

2020-11-18 Thread Paul Dupuis via use-livecode

I just filed bug https://quality.livecode.com/show_bug.cgi?id=22986

Media is dead under Big Sur


On 11/18/2020 1:06 PM, Paul Dupuis via use-livecode wrote:
Has any experienced any problems playing back media (.mp3 audio files 
or .mp4 video) under macOS Big Sur?


I just ran into an issue where none of my media is playing (at all) in 
a LC9.6.1 built stand-alone under Big Sur.



___
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: Big Sur bugs

2020-11-18 Thread Paul Dupuis via use-livecode
Has any experienced any problems playing back media (.mp3 audio files or 
.mp4 video) under macOS Big Sur?


I just ran into an issue where none of my media is playing (at all) in a 
LC9.6.1 built stand-alone under Big Sur.



___
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: Big Sur bugs

2020-11-15 Thread Paul Dupuis via use-livecode

On 11/15/2020 11:27 AM, Klaus major-k via use-livecode wrote:

But just enter -> Big Sur
in the search field on the page and hit RETURN!:-)


Thank you!


___
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: Big Sur bugs

2020-11-15 Thread Paul Dupuis via use-livecode

Panos,

Thank you for the rapid-response update!

The link you provide presents me with the error "There is no with the id 
'97748'. " Just knowing a compatible LC release is on its way in 9.6.1 
is a help, but I'd love to see the list of bugs if there is an alternate 
URL to view them.




On 11/15/2020 10:31 AM, panagiotis merakos via use-livecode wrote:

Hello Paul,

Here are the bugs that have been discovered so far, either by LC users or
by us (LiveCode Ltd):

https://quality.livecode.com/buglist.cgi?regetlastlist=97748

The 2 serious ones have been addressed and are to be tested in our
pre-release build. There are another 2 cosmetic bugs, and one that seems to
affect only the new ARM Macs.

These bugfixes are expected to appear in the upcoming release of LC 9.6.2
RC-1.

Kind regards,
Panos
--

On Sun, 15 Nov 2020 at 17:05, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


So Big Sur was released on the 12th. It is not our in user's hands.

Does anyone (or LiveCode corporate) have any update about Big Sur
compatibility? We have customer's inquiring. We can not afford the time
to jump through Apple's hoops for any of their beta versions. Now that
the release is out, we can start testing our apps with it IF we can get
it installed over one of our Catalina VMs but it would be nice to know
what testing LC Ltd has done or others have done?


On 10/8/2020 8:31 PM, Marty Knapp via use-livecode wrote:

In my testing of LC apps running under Big Sur I have run into the

following bugs running LC 9.6.1:

1) Tabbed buttons: The background of the highlighted tab is now white by

default. Since LC renders the text for the highlighted button as white, it
is not readable until you switch to another tab. Work-around - set the
backgroundColor of the button to black. Bug report 22879

2) Window Shape: Setting the windowShape of a stack to an imported image

no longer works. It will show the rectangle of the stack. Bug report 22880

3) SystemVersion: Big Sur is designated by Apple as version 11 but LC

will report it as 10.16. Easy enough to code around until it’s fixed. Bug
report 22887

4) Printing: LC hangs as I mentioned in a previous post. Bug report 22930
___
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: Big Sur bugs

2020-11-15 Thread Paul Dupuis via use-livecode

So Big Sur was released on the 12th. It is not our in user's hands.

Does anyone (or LiveCode corporate) have any update about Big Sur 
compatibility? We have customer's inquiring. We can not afford the time 
to jump through Apple's hoops for any of their beta versions. Now that 
the release is out, we can start testing our apps with it IF we can get 
it installed over one of our Catalina VMs but it would be nice to know 
what testing LC Ltd has done or others have done?



On 10/8/2020 8:31 PM, Marty Knapp via use-livecode wrote:

In my testing of LC apps running under Big Sur I have run into the following 
bugs running LC 9.6.1:

1) Tabbed buttons: The background of the highlighted tab is now white by 
default. Since LC renders the text for the highlighted button as white, it is 
not readable until you switch to another tab. Work-around - set the 
backgroundColor of the button to black. Bug report 22879

2) Window Shape: Setting the windowShape of a stack to an imported image no 
longer works. It will show the rectangle of the stack. Bug report 22880

3) SystemVersion: Big Sur is designated by Apple as version 11 but LC will 
report it as 10.16. Easy enough to code around until it’s fixed. Bug report 
22887

4) Printing: LC hangs as I mentioned in a previous post. Bug report 22930
___
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: Reading key values in info.plist file iOS or Mac using XML library?

2020-11-13 Thread Paul Dupuis via use-livecode

On 11/12/2020 8:32 PM, matthias rebbe via use-livecode wrote:

Are you using the xml library for that?
Anyway, would you like to share your handler?


Yes, and yes (below). tDocTypes contains a cr delimited list of addition 
document types to add to the pList file. Also, the old use of 
uniEncode/uniDecode should be replaced with textEncode. This is code is 
working with LC9.6.1


    -- updating the generated plist file
    put tMac64BuildFolder&".app/Contents/Info.plist" into 
tSrcFile -- overwrite original

    --
    if there is a file tSrcFile then
  put revXMLCreateTreeFromFile(tSrcFile,true,true,false) into tTreeID
  if tTreeID begins with "xmlerr" then
    answer error "Error reading XML plist file for updating 
document types during build."&""

  else
    -- list of document types ,,code>
    put "HyperTRANSCRIBE Files,StandaloneDoc.icns,ht2,HTh2" into 
tDocTypes

    -- XML template
    put 
""&"CFBundleTypeExtensions"&""&"[[tExtension]]"&"" 
into tXMLTemplate
    put 
"CFBundleTypeIconFile"&"[[tIconFile]]"&"CFBundleTypeName" 
after tXMLTemplate
    put 
"[[tDocName]]"&"CFBundleTypeOSTypes"&""&"[[tTypeCode]]" 
after tXMLTemplate
    put 
""&"CFBundleTypeRole"&"Editor"&"" 
after tXMLTemplate

    -- add document types under parent  at end
    repeat for each line tDocType in tDocTypes
  put item 1 of tDocType into tDocName
  put item 2 of tDocType into tIconFile
  put item 3 of tDocType into tExtension
  put item 4 of tDocType into tTypeCode
  put merge(tXMLTemplate) into tNodeContents
  revXMLAppend tTreeID, "/plist/dict/array",tNodeContents
    end repeat
    -- output updated plist
    get empty -- clear 'it' for any possible error from revXMLText 
that places the error in 'it'

    put revXMLText(tTreeID,,true) into tXMLText
    if it is not empty then
  answer error "Error writing updated XML plist 
file."&""

    end if
    put uniDecode(uniEncode(tXMLText),"UTF8") into URL 
("file:")

  end if
    end if


___
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: Reading key values in info.plist file iOS or Mac using XML library?

2020-11-12 Thread Paul Dupuis via use-livecode
I have an on standaloneSaved handler that reads and writes an updated 
info.plist for my standalone that adds additional document types since 
the standalone builder only allows a single document type.


On 11/12/2020 7:30 PM, matthias rebbe via use-livecode wrote:

Hi,

does anyone know if it is possible to use the xml library to read values from 
an info.plist file?


Regards,

Matthias


-
Matthias Rebbe
Life Is Too Short For Boring Code


___
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: Windows startup issue

2020-11-10 Thread Paul Dupuis via use-livecode

On 11/10/2020 7:45 PM, J. Landman Gay via use-livecode wrote:
But Paul's suggestion that standalones include the entire error list 
isn't a bad one, though I'd like it to be optional. Users don't care 
what the descriptions are and I can look them up, but some might want 
those included. 


I imagine that they could be added to the Inclusions - if on automatic, 
use of the "scriptExecutionErrors" in your code would lead to automatic 
inclusion. If on manual, you get to include them or not.



___
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: Windows startup issue

2020-11-10 Thread Paul Dupuis via use-livecode

On 11/10/2020 2:14 AM, Richard Gaskin via use-livecode wrote:

J. Landman Gay wrote:

> On 11/9/20 3:54 PM, Richard Gaskin via use-livecode wrote:
>> And WTH happened to LC's error reporting dialog?
>
> Standalones have always reported this way on both desktop and mobile.
> It is up to the developer to include the translated references if
> they want to see those. Generally I don't bother, I provide the
> optional built-in ability to send email to support or save a file.
> I can translate the numbers myself since the meanings usually mean
> nothing to the end-user anyway.

I've been using my own error-reporting for so long I can't recall 
seeing the default standalone handling.


I have made a couple of quickies where I just used LC's error 
reporting, but clumsy as that design is at least the output from the 
"Send Report" button is more useful than the raw list of triplet 
integers.


How has such ungraceful error handling become acceptable?

Why is the least useful thing the easiest for new developers to do?

Shouldn't it be easy for LC devs to deliver a great application 
experience?




One big thing that LC could do to let developer's improve error handling 
and standalone troubleshooting would be to include the 
"scriptExecutionErrors" in Standalones. I know it is along list, but 
would it really add that many more bytes to Standalones relative to the 
current engine size?


I know you can replicate having the error text present by copying the 
scriptExecutionErrors to a custom property in your standalone, but then 
you have to be sure to update it with each engine release. To just have 
it included when you build a standalone would be much better.



___
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: Windows startup issue

2020-11-09 Thread Paul Dupuis via use-livecode
The first things is to determine what the error codes mean. I forget off 
teh top of my head, but I things of the first 2 numbers one is a line 
number and the other an error code?


Hopefully someone can chime in who knows for sure. Knowing the errors 
will tell you more about what the likely cause may be.


I suspect it is some sort of permissions issue. In all most all 
instances where we have run into a weird startup issue with just one 
customer, it has turned out to be permissions related. For example, does 
you application create any preferences or license files or temporary 
files? Or try to save anything to disk behind the scenes (i.e. not a 
user driven file save dialog)? If so, chances are the place you are 
trying to write to is read-only.


It could be many other things, but this has been the most common issue 
like this we've run into.



On 11/9/2020 4:10 PM, Marty Knapp via use-livecode wrote:

I have a customer who is having a weird issue with a Windows app built in LC 
(9.6.1). It worked fine for about a month, it works fine here for me all the 
time and it works fine for all our other customers.

On startup is begins to launch then gets a bunch of errors:

269,76,1
262,67,1
252,67,1
241,67,1
353,0,0
573,68,1
253,68,1
241,67,1
353,0,0

But it only happens for this *one* person. They have the latest version of 
Windows 10, have tried multiple installs and uninstalls, turned off virus 
software, etc. I have downloaded from the same link I've sent him, installed 
and it runs fine for me and all our other customers.

I know it's along shot, but has anybody seen anything like this or offer any 
advice?
---
Marty
___
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: Code Signing and Kernel Mode drivers

2020-11-08 Thread Paul Dupuis via use-livecode
The basic windows code signing cert works fine. You do not need the more 
expensive "EV" certificate.


On 11/8/2020 12:58 PM, General 2018 via use-livecode wrote:

Hi ,

Are the standard Livecode .dll that are included with the standalone Kernel 
mode drivers ??

The reason for asking is that codesigning for Windows 10 needs a more expensive 
certificate if kernel mode drivers signing is required.

Regards
Cam
___
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: Slightly OT: Windows Code Signing

2020-10-26 Thread Paul Dupuis via use-livecode

Thank you Matthias,

I did notice the unexpectedly large price on Sectigo direct and purchase 
a 3 year through comodosslstore.com for about $212.50 USD, so at an okay 
price for me. Mine is just a plain signing cert, not the EV.


What I ran into that was very frustrating was the browser requirements. 
You would think - especially with the vagueness of browsers supporting 
certain features - that they would make an app to do their own CSR 
generation at the start of the process and the same app can do the 
download at the end


I do not have any older version of IE (on VMs or otherwise). I did 
download Firefox 68 (current release is 82!, but 68 is only from early 
2019) but could not get it to work. Finally I was able to download my 
cert via Safari under Mojave and move it to my Windows 10 via Dropbox 
and under Windows 10 use the MMC (Microsoft Management Console) to 
import it and export it in p12 (.pfk) format for use in signing 
Standalones. Success, but what a pain to go through.


If anyone has found a Issuer that will just let you download the code 
signing cert as a .p12 pr .pfk file, I'd like to know.


On 10/26/2020 2:25 PM, matthias rebbe via use-livecode wrote:

Hi Paul,

first of all buying directly through Sectigo is expensive. If you purchase from 
one of Sectigo's partners you'll get it much cheaper.
I've  purchased in July a 3year code signing certificate ( not the ELV) for 207 
Euro for all 3 years. The certifcate was also delivered by Sectigo. And i was 
able to download the certificate on my Windows 10 VM with Internet Explorer, if 
i remember right. I even cannot remember that a special version of Mozilla was 
required.
They only mentioned, that you cannot fetch your certificate with MS Edge, 
Chrome and Safari.
I've did the complete purchase process on my Windows 10 VM.

Regards,
Matthias


-
Matthias Rebbe
Life Is Too Short For Boring Code


Am 26.10.2020 um 18:32 schrieb Paul Dupuis via use-livecode 
:

My Windows Code signing cert for signing LiveCode standalones has expired.

I purchased it from instantsll.com (3 year) which has become sectigo.com and it 
appears that they never moved over old accounts since my prior username, email, 
and password do not work nor does the email work for password recovery.

So I bought a new one from comodosslstore.com (which turns out is also 
sectigo.com). Verification was quick and automate - no problem.

Now my cert is ready, but the download/install instructions requires Internet 
Explorer 11 or Firefox 68 or older (Firefox is at version 82 and Microsoft Edge 
is what comes with Windows 10 not Internet Explorer 11

Their support documentation is conflicting and terrible (IMHO).

It is not too late to cancel the order and buy elsewhere. Does anyone have a 
recommendation for a supplier of Windows Code Signing certs that have a simple 
and straight forward process for buying AND getting the .p12 file you 
ultimately need for code signing?

This is kind of urgent since we are unable to sign until we get a new cert.

___
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


Slightly OT: Windows Code Signing

2020-10-26 Thread Paul Dupuis via use-livecode

My Windows Code signing cert for signing LiveCode standalones has expired.

I purchased it from instantsll.com (3 year) which has become sectigo.com 
and it appears that they never moved over old accounts since my prior 
username, email, and password do not work nor does the email work for 
password recovery.


So I bought a new one from comodosslstore.com (which turns out is also 
sectigo.com). Verification was quick and automate - no problem.


Now my cert is ready, but the download/install instructions requires 
Internet Explorer 11 or Firefox 68 or older (Firefox is at version 82 
and Microsoft Edge is what comes with Windows 10 not Internet Explorer 11


Their support documentation is conflicting and terrible (IMHO).

It is not too late to cancel the order and buy elsewhere. Does anyone 
have a recommendation for a supplier of Windows Code Signing certs that 
have a simple and straight forward process for buying AND getting the 
.p12 file you ultimately need for code signing?


This is kind of urgent since we are unable to sign until we get a new cert.

___
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: Bug: jumping stack windows (when supress messages is off)

2020-10-11 Thread Paul Dupuis via use-livecode

https://support.apple.com/guide/mac-help/work-with-app-windows-mchlp2469/mac

Could it just be macOS's windows alignment feature?

On 10/11/2020 8:28 AM, David Bovill via use-livecode wrote:

Hi Bernd, the bug is not to do with the standard window snap. This is 
unresponsive try to any mouse clicks and a big jump across half the screen 
without any other windows present. Check the video to see.
On 10 Oct 2020, 22:15 +0100, Niggemann, Bernd via use-livecode 
, wrote:

Hi David,

What I see on Mojave is that e.g. TextEdit or Safari show a similar behavior.
Open 2 windows in TextEdit. Move one close to the other and they will snap into 
place, if the tops of those two windows are almost horizontally aligned they 
will snap into place.

Same goes for Safari with two windows open. And the same happens in the IDE.
If that is what you describe on a single monitor setup then it is an operating 
system thing.

Kind regards
Bernd
___
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: Bug: jumping stack windows (when supress messages is off)

2020-10-09 Thread Paul Dupuis via use-livecode

Sorry,

When I read you posts and saw "windows" I thought you were talking about 
this happening on Microsoft Windows.


I have seen something similar on macOS, but only when you have dual 
monitors and the second monitor has it's top positioned higher than the 
primary monitor.







On 10/9/2020 10:23 AM, Paul Dupuis via use-livecode wrote:
Window 10 has a snap to feature on by default that will try to snap 
any window of any application to the edges and resize it to have the 
screen (or perhaps other options) if the windows is being dragged and 
the mouse moves close to a screen edge. I have not explored the 
feature fully, so I am not sure of the details.




On 10/9/2020 9:48 AM, David Bovill via use-livecode wrote:

I’m getting pretty curious about this bug :)

Testing  mouse clicks- and not stacks jumping position when moving 
their location - I find that a stack that is successfully moved 
between the four quadrants of the screen - accepts mouse clicks 
accurately in the bottom-left, top-right and bottom right quadrants - 
but in the top-eft quadrant the mouse-click interactions are offset 
vertically in a way that is compatible with the stack jump. So if you 
manage to locate the. Stack without it jumping - in the top-left 
quadrant the mouse clicks are off.


Monitor settings are set for default value of the MacBook Pro 
display. I think I’ll make a short video of this behaviour.
On 9 Oct 2020, 14:35 +0100, David Bovill , 
wrote:

Also tested on Livecode 8.1.5 with same results.
On 9 Oct 2020, 14:00 +0100, David Bovill , 
wrote:
Windows intermittently jump to a location on the screen when I move 
windows. It’s got too annoying to ignore.


• Is anyone else having this problem?

I am testing this on Mojave and Livecode 9.6.1 rc2. I am testing 
this without any of my own code such just was IDE stacks. This I 
“think” is quite a long standing bug that I suspect is related to 
the global coordinate system as I have been working around this for 
quite a while now.



Detail
The location of the jump seems to be the same horizontal x 
location. But with the vertical value being reset to the halfway 
point.


I am testing by. Simply moving the message box. It is intermittent 
- so occurring about once every 5 moves, and strangely is happening 
only when the top left of the stack window is within the top left 
quadrant of the screen. Using. The following code int eh message 
box I find the top of the message box stack is always 492 after a 
jump (see below). This appears to be related to half the screen 
less the decorations like menu?

> > put the screenrect & CR & the rect of stack” Message box"
> >
> > 0,0,1680,1050
> > 215,492,634,640
As a further indication that the problem is due to the IDE, I find 
that creating a test stack (no scripts or controls) exhibits the 
same behaviour - but this behaviour can be suppressed by choosing 
“Suppress Messages” from the “Development” menu. This suppression 
has no effect on the message box or other IDE windows which still 
jump intermittently.


The problem is most intense when working with multiple screens. For 
at least a couple of years stacks I create and place on second or 
third monitors receive mouse clicks in the wrong location. This 
happens on different machines, and different. Monitor setups. Only 
tested on Macs.


I am currently creating a multiscreen app - so taking the tracking 
down. Of this bug more seriously. The current tests are one on my 
laptop without external monitors, and having restarted the computer 
(several times). Applications other than Livecode don’t suffer this 
problem.


How should I report this bug - should I submit a video / screen 
recording?



___
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: Bug: jumping stack windows (when supress messages is off)

2020-10-09 Thread Paul Dupuis via use-livecode
Window 10 has a snap to feature on by default that will try to snap any 
window of any application to the edges and resize it to have the screen 
(or perhaps other options) if the windows is being dragged and the mouse 
moves close to a screen edge. I have not explored the feature fully, so 
I am not sure of the details.




On 10/9/2020 9:48 AM, David Bovill via use-livecode wrote:

I’m getting pretty curious about this bug :)

Testing  mouse clicks- and not stacks jumping position when moving their 
location - I find that a stack that is successfully moved between the four 
quadrants of the screen - accepts mouse clicks accurately in the bottom-left, 
top-right and bottom right quadrants - but in the top-eft quadrant the 
mouse-click interactions are offset vertically in a way that is compatible with 
the stack jump. So if you manage to locate the. Stack without it jumping - in 
the top-left quadrant the mouse clicks are off.

Monitor settings are set for default value of the MacBook Pro display. I think 
I’ll make a short video of this behaviour.
On 9 Oct 2020, 14:35 +0100, David Bovill , wrote:

Also tested on Livecode 8.1.5 with same results.
On 9 Oct 2020, 14:00 +0100, David Bovill , wrote:

Windows intermittently jump to a location on the screen when I move windows. 
It’s got too annoying to ignore.

• Is anyone else having this problem?

I am testing this on Mojave and Livecode 9.6.1 rc2. I am testing this without 
any of my own code such just was IDE stacks. This I “think” is quite a long 
standing bug that I suspect is related to the global coordinate system as I 
have been working around this for quite a while now.


Detail
The location of the jump seems to be the same horizontal x location. But with 
the vertical value being reset to the halfway point.

I am testing by. Simply moving the message box. It is intermittent - so 
occurring about once every 5 moves, and strangely is happening only when the 
top left of the stack window is within the top left quadrant of the screen. 
Using. The following code int eh message box I find the top of the message box 
stack is always 492 after a jump (see below). This appears to be related to 
half the screen less the decorations like menu?

> > put the screenrect & CR & the rect of stack” Message box"
> >
> > 0,0,1680,1050
> > 215,492,634,640

As a further indication that the problem is due to the IDE, I find that 
creating a test stack (no scripts or controls) exhibits the same behaviour - 
but this behaviour can be suppressed by choosing “Suppress Messages” from the 
“Development” menu. This suppression has no effect on the message box or other 
IDE windows which still jump intermittently.

The problem is most intense when working with multiple screens. For at least a 
couple of years stacks I create and place on second or third monitors receive 
mouse clicks in the wrong location. This happens on different machines, and 
different. Monitor setups. Only tested on Macs.

I am currently creating a multiscreen app - so taking the tracking down. Of 
this bug more seriously. The current tests are one on my laptop without 
external monitors, and having restarted the computer (several times). 
Applications other than Livecode don’t suffer this problem.

How should I report this bug - should I submit a video / screen recording?


___
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: formattedwidth/height does not work with some fonts

2020-10-07 Thread Paul Dupuis via use-livecode
It is different symptoms from this bug 
(https://quality.livecode.com/show_bug.cgi?id=22882) but it could be 
related in the code?


I recommend filing a bug report and I will be happy to add a note 
connecting the two bugs. The more issues found surrounding "the 
formattedWhatever" functions, the more likely we may see action at 
fixing them sooner rather than later.



On 10/7/2020 10:03 AM, Klaus major-k via use-livecode wrote:

Hi all,

looks like formattedheight/formattedwidth does not work with some fonts!?

See screenshot, I even added a little generous offset to make sure the text 
does not
get cut off, but e.g. "Damascus Light" (and others) do not respect formattedXXX?


Any hints and workarounds very welcome!


Best

Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: Canvas Limited to 32767

2020-10-06 Thread Paul Dupuis via use-livecode
You would think with 32K px at 72px/inch being like 450 inches that the 
32K limit would not be an issue, but I have run into it as well


I have written a custom graph (like a bar graph for example sake) that 
is generally fine with most customer data. However, on one customer data 
set it started blowing up. It turns out that one of the bars was "huge" 
(an the order of 400k px) at the zoom level where they could see the 
details in the remaining bars. So, in this case the researchers wanted 
to "zoom" in on noise in a larger data set, causing that larger data to 
become huge in a graph.


And yes, you can code in bounds limits and attaching labels to indicate 
a bar is out of bound or exceeds display area, etc., but I do agree that 
for a number of applications having a large drawing area would be a big 
improvement.



On 10/6/2020 2:28 PM, Ralph DiMola via use-livecode wrote:

Desktop and mobile. It's a scrolling group with many sub-groups each with 1
or more fields. Sometimes the height of the main group > 32767.

It's the result of a proximity search and in dense areas users are getting
hosed by this limit. Customer is screaming (but don't they always).

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 Richard Gaskin via use-livecode
Sent: Tuesday, October 06, 2020 2:01 PM
To: use-livecode@lists.runrev.com
Cc: Richard Gaskin
Subject: Re: Canvas Limited to 32767

Ralph DiMola wrote:

  > I just ran head first into this. Could someone explain why other than  >
moving from an int16 to an int32 this is such a challenge? This should  >
have been addressed during the refactoring of the engine.

Is this for the weird recommended mobile workaround of putting a text field
into a group just to have it scroll, or something else?

--
   Richard Gaskin
   Fourth World Systems
   Software Design and Development for the Desktop, Mobile, and the Web
   
   ambassa...@fourthworld.comhttp://www.FourthWorld.com


___
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: Problem an Repeat Loop

2020-09-28 Thread Paul Dupuis via use-livecode

On 9/28/2020 8:42 AM, Sannyasin Brahmanathaswami via use-livecode wrote:

  repeat with x = 2 to sTotalSceneCount

put line x of sImageList into tPath
go to card x
 set the filename of sStoryImage to tPath
 set the itemDelimiter to “|”
put item x of sQuoteList into fld “mainText”
  end repeat


something like this? It might be easier to help if you explained what 
you are trying to do. Have all the cards in this stack been created 
already? i.e. do you have sTotalSceneCount cards? Does each card contain 
a field called "mainText" and an image called "slideImage"?


set the itemDelimiter to “|”
repeat with x = 2 to sTotalSceneCount
   set the filename of img "slideImage" of card x to line x of sImageList
   set the text of fld "mainText" of card x to item x of of sQuoteList
end repeat


___
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: How to delete cards but card 1

2020-09-28 Thread Paul Dupuis via use-livecode

repeat with i = the number of cards down to 2
  delete card i
end repeat

On 9/28/2020 9:02 AM, Sannyasin Brahmanathaswami via use-livecode wrote:

repeat forever
   go last card
   delete this card
end repeat

I have tried everything in the manual

??
BR

___
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: Accessing files on a local network file server - BEST PRACTICE?

2020-09-25 Thread Paul Dupuis via use-livecode

Well, at least you have a server to test it on. Thank you.

I am trying to resurrect a Windows 2003 Server VM and a Windows 7 VM 
configured to have it's home directory on the server. I just got both to 
run (finally) yesterday and just (at the end of teh day today) figured 
out what the admin password was to the 2003 server.


Maybe by sometime next week, I'll be able to test some code.


On 9/25/2020 7:26 PM, Bob Sneidar via use-livecode wrote:

After a little experimenting it appears that open file does not create a new 
file on OS X mount points! I can open a file that already exists but it will 
not create a new file. You learn something new every day!

Bob S



On Sep 25, 2020, at 4:21 PM, Bob Sneidar via use-livecode 
 wrote:

Hmmm. Neither does open file for read…

Bob S



On Sep 25, 2020, at 4:20 PM, Bob Sneidar  wrote:

Even worse, if the mount point is mounted it does not create the file.

Bob S



On Sep 25, 2020, at 4:18 PM, Bob Sneidar via use-livecode 
 wrote:

Unfortunately, if it fails no error is generated, and nothing is in the result 
or the it variable.

Bob SW


On Sep 25, 2020, at 3:56 PM, Ralph DiMola via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On my Mac this form works to a Win 10 smb share

put url ("file://volumes/shareName/folder/sub-folder/file.ext")

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

___
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: Accessing files on a local network file server - BEST PRACTICE?

2020-09-25 Thread Paul Dupuis via use-livecode

Thanks Bob,

Yes, the error messages you get on a failed file open are pretty generic.

I am thinking that whether Mac or Win, the key is to check for whether 
there is a folder:


/volumes/mountpoint/ (osx)
or
//server/mountpoint/ (win)

For a given path tPath, I can tell if it is a windows server bu looking 
at the 1st two characters of tPath and if they are // then I can try t 
pull off //server/mountpoint and test for a folder by that name exists.


However, on OSX,

/volumes/mountpoint/ looks just like any local path.


On 9/25/2020 6:12 PM, Bob Sneidar via use-livecode wrote:

QUALIFIER: this is in Livecode on a Mac. Mac mount points work differently than 
Windows. However using the form /volumes/mountpoint/folderpath/filename I get 
the simple error “Can’t open that file.” No detail about WHY I cannot open it. 
I can see how it would be helpful if the result contained “path not 
accessible”, “write access denied”, “file already exists” etc.

Bob S


On Sep 25, 2020, at 2:28 PM, Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

OK using your convention I cannot even open a file with the server mounted and 
an actual file that DOES exist! (//servername/mountpoint/pathtofile/filename)

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



___
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: Accessing files on a local network file server - BEST PRACTICE?

2020-09-25 Thread Paul Dupuis via use-livecode

On 9/25/2020 2:42 PM, J. Landman Gay via use-livecode wrote:
I know very little about Windows network addresses, but from the 
example you gave, I'd check to see if (slash-delimited) item 1 of the 
path is a single letter followed by a colon.




Thanks for thought.

In a Windows server environment (i.e many corporation, government 
agencies, etc.), computer are often set so tat their specific "User" 
directories (Documents, Desktop, "Home", etc.) at on a server rather 
than local disk. So a path to a file called "somefile.txt" is a user's 
Documents folder looks like:


//s1.somedomain.com/mountPoint//Documents/somefile.txt

The question is, if you execute the line of  LiveCode script:

if there is a file 
"//s1.somedomain.com/mountPoint//Documents/somefile.txt" then

  -- true
else
  -- false
end if

In the "true" case, the file is there, which means the server and 
network are both accessible. Yea! proceed with whatever.


In the "false" case, you do not know whether the FILE is missing OR the 
NETWORK is disconnected or the SERVER is down.


It is in the "false" case that I am looking for approaches (if there are 
any) to tell the difference between

1) the file is missing
and
2) the network or server is down.

Bernard has a suggestion of keeping an invisible file. Being hidden, it 
is unlike that it could be removed by intent or accident and so, if the 
file I am looking for "somefile.txt" does not exists, I could test for 
the hidden file. If that exists, I know my file is missing and the 
server and network are still up. If the hidden file also does not 
exists, the server or network is "probably" down.


I could probably improve on Bernard's suggestion by testing for:

if there is a folder "//s1.somedomain.com/mountPoint/" then
  -- the server is up
else
  -- the server or network is down OR or the user has been fired and 
their account delete!

end if

I was hoping someone out there had actually dealt with LiveCode working 
with files on a Windows network server and have a definite approach. 
Maybe testing for the user's folder is the definitive way OR the 
mountPoint folder may be even better?


-- Paul

___
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


Accessing files on a local network file server - BEST PRACTICE?

2020-09-24 Thread Paul Dupuis via use-livecode
This question may have an obvious answer, but I am brain dead today, so 
here goes:


I have a app installed with some customers in a Windows network 
environment. They have all their laptops set so that their Home 
directories are on a local network server.


So, where as on a local laptop, specialFolderPath("documents") might 
return "C:/Users//Documents" as the path, for them 
specialFolderPath("documents") returns something like 
"//s1.somedomain.com/mountPoint//Documents"


We save a number of folders and files in the user's Documents folder. In 
some cases, if the file is not present (i.e. if there is a file tFile is 
false) we regenerate the file from a default.


Sometime, the server is offline or the user is disconnected from the 
network.


What is a good way to differentiate between:

1) one of these files is not present so must be regenerated, i.e

if there is not a file (specialFolderPath("documents")) then
  -- regenerate the file tFile at location specialFolderPath("documents")

Versus

2) The Server (//s1.somedomain.com/ is disconnected to down?

So that in case (1) , we regenerate the file and in case (2) we present 
a warning that the server is disconnected or down?


Mu gut says this should be simple, but I just can not wrap my brain 
around it today.


___
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: Converting from unicode to ASCII

2020-09-23 Thread Paul Dupuis via use-livecode

On 9/22/2020 6:48 PM, J. Landman Gay via use-livecode wrote:
I have a stack with an index. When a user clicks a line, a handler 
uses the clicktext to create a file name which is always the clicktext 
plus the ".livecode" extension. The stack is then downloaded from an 
AWS server and displayed.


We are now translating some stacks to other languages which require 
unicode text. AWS recommends not using accented characters in file 
names, so we need to translate the clicktext into plain ASCII.


Is there a good way to do that without using a lookup table or 
metadata? The file names doesn't need to make sense syntactically. For 
example,


   l’Académie française -> lAcademiefrancaise.livecode

...or similar, whatever works. The user will never see the file name.



You should probably use the same model as LiveCOde uses to match files 
names returned from the files("detailed-utf8") function:


urlEncode(textEncode(normalizeText(,"NFC"),"utf8"))

Converts:
Russian-русский-Lipsum.docx

To:
Russian-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9-Lipsum.docx

For what your doing, I think that using:

urlEncode(textEncode(,"utf8")) -> gets 

and

textDecode(urlDecode(),"utf8") -> gets 

should be enough.


___
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: Converting from unicode to ASCII

2020-09-22 Thread Paul Dupuis via use-livecode

On 9/22/2020 6:58 PM, Devin Asay via use-livecode wrote:

But it that doesn’t help, and if nobody ever sees the filenames, why not just 
loop through the string and delete anything that’s not in ASCII range?


Well, if the name is in Chinese,  you would delete the entire name.

___
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: HOw to get htmltext from the field to display in another field

2020-09-17 Thread Paul Dupuis via use-livecode

OR

set the text of fld "Dest" to the htmText of fld "Src"


IF you want to see what the htmlText (i.e. the tags) of fld 
"Src"actually is.



On 9/17/2020 3:31 PM, Ralph DiMola via use-livecode wrote:

BR,

set the htmltext of fld "Dest" to the htmlText of fld "Src"

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 Sannyasin Brahmanathaswami via use-livecode
Sent: Thursday, September 17, 2020 3:14 PM
To: How LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: HOw to get htmltext from the field to display in another field

--set the htmltext of fld "mainText" into fld "checkHTML"

put text of fld "mainText" into  fld "checkHTML"


??

___
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: How do we set layers for groups

2020-09-17 Thread Paul Dupuis via use-livecode

see the 'relayer' command in the dictionary


On 9/17/2020 2:34 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

if the layer of fld "checkHtml" > 3 then
   set the layer of fld "checkHtml" to 3
else
   set the layer of fld "checkHtml" to 20 
end if

# do not work.

stack "SlideShowSetUp": execution error at line 107 (Object: can't set layer 
(card not open, or control in group)), char 1

??

___
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: sudo apt-get install livecode

2020-09-14 Thread Paul Dupuis via use-livecode

On 9/13/2020 10:39 PM, Eric A. Engle via use-livecode wrote:

  I just get tired of downloading the silly installer app etc. why isn't it in 
a repo?

any way i will google it but if there is a terminal command line interface set 
of commands which will gksudo aptitude livecode OR SIMILAR please tell me


It probably isn't in a 'repo' because I, like probably a number of other 
people on this list who use LiveCode a lot, have no idea what 'gksudo 
aptitude livecode' is other than probably some Linux commands.


I'd much rather download and run the installer than need to learn some 
more esoteric commands to install the software.


___
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: text manipulation with Chinese characters (unicode): guide?

2020-09-09 Thread Paul Dupuis via use-livecode
As mentions, Unicode in a field just works (there is a known issue with 
Thai word breaks and another with printing Hindi)


If you want to get Chinese (traditional or simplified) into a field, you 
can:


1)  get the text from a Utf8 ot utf16 text file and textDecode it i.e 
put url ("file:") into tContent; put 
textDecode(tContent,"utf8") into fld "someField"
2) get the text from an RTF file, like the above, but set the rtfText of 
the field to the imported rtf data
3) use a 3rd party library, like Wordlib (see the livecode store) to 
read Microsoft Word .docx or Open Office .odt files



On 9/8/2020 11:55 PM, Eric A. Engle via use-livecode wrote:

Hi!

I would like to be able to copy and paste into fields and scripts Chinese 
characters, which are of course unicode and then manipulate the resulting 
strings.

Is this possible in livecode? How? Are there any good Recent guides to working 
with unicode in 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: formattedRect, formattedLeft, formattedWidth of chunks

2020-09-01 Thread Paul Dupuis via use-livecode
If you control the content, it is probably not an issue. In our case, 
the content and the ranges (char x to y) are set by the people that use 
our product - we have no control - so we end up with customer's trying 
to do their research and suddenly our product hard crashes, sometimes 
resulting in lost work. They don't understand why since bunches of other 
documents they are working with all process fine. Even the document that 
is causing the crash may seem fine UNTIL they add a bookmarked range 
that includes the tabs. As tabs are invisible in MS-Word and a lot of 
MS-Word user are not really skilled at formatting, they may end up with 
tabs in their documents that they are not even aware they are there.


This one really was a pain to track down as we had to get a customer, 
with the crashing, who was willing to provide their whole research study 
so we could reproducethe error in-house and then tracing it down in the 
IDE took a very long time to go through the 1000's of lines of code to 
find the crash on the 'formattedRect' call.



On 9/1/2020 5:49 PM, Bob Sneidar via use-livecode wrote:

I have a great many of these. I’ll keep a lookout.

Bob S


On Sep 1, 2020, at 6:25 AM, Paul Dupuis via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

formattedWidth

___
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


formattedRect, formattedLeft, formattedWidth of chunks

2020-09-01 Thread Paul Dupuis via use-livecode
Just a heads up to anyone else out there who may be having VERY hard to 
track down crashes in LC 9.x.x.


The following functions: formattedRect, formattedLeft, formattedWidth 
when operating on chunk expressions (i.e. char X to Y of field Z) can 
cause an engine crash for certain field content.


This is present in all versions of LC 9.x.x (actual back to some version 
of LC8)


The issue is when the chuck contains tab characters.

See https://quality.livecode.com/show_bug.cgi?id=22882

FYI: formattedTop and formattedHeight of chunks still work.


___
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: Playing movies in LC_ Docs??

2020-08-20 Thread Paul Dupuis via use-livecode
Yes, there is a lot of information that circulates on the forums or 
lists or in people's head that probably should be in the LC documentation


In the LC9.x.x series, the Player supports any audio or video formats 
supported by Apple Video Foundation (AVF) on macOS - google the apple 
developer docs for AVF formats supported by macOS version. The Player 
supports any audio of video formats supported by DirectShow on Windows. 
Google DirectShow formats supported to find those.


NOTE while there is over lap, there are also formats supported only on 
one platform or the other.


Also, unfortunately, if you are planning on doing anything more complex 
that placing a video in a player and letting the user play it, you 
should search the LiveCode quality center for player bugs - there are 
many dozens. Some minor, some more serious.




On 8/20/2020 6:15 PM, William Prothero via use-livecode wrote:

Folks:
I’m building an app that needs to play movies. It’s a desktop app that I need 
to work on Mac and Windows. But, when looking at the dictionary and the 
lessons, all I get is references to Quicktime and the dictionary is hopelessly 
uninformative about what formats are required.

I haven’t done this in a while. But, when I searched my emails from the users 
list, the most recent reference I have is 2016. What the heck? The dictionary 
entries are ancient and the lesson is totally useless. Sorry if I’m being 
critical about this, but “what the heck is up with movie players??”. Have I 
missed something? I really hope so.

Best,
Bill

William A. Prothero
https://earthlearningsolutions.org


___
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: Old stack will not save or save as...

2020-08-19 Thread Paul Dupuis via use-livecode

On 8/19/2020 12:02 PM, Bob Sneidar via use-livecode wrote:

Just a shot in the dark, suppress messages before opening?




Good guess, but no winner. However, your suggestion did put me on to the 
answer.


The stack was set to "modeless". If I execute in the message box

save stack "XYZ" as "C:/Users/MyUser/Desktop/XYZ.livecode" -- no lock. 
No error, but no save.


However, after I execute in the message box:

topLevel "XYZ" -- everything now works. The File save and save as menus 
items as enable and behave correctly.


Why I can't save or save as a modeless stack in IDE is a mystery to me.

It is also a mystery to me how Bob suggesting "suppress messages" led my 
brain to look at a stacks Modality, but it did, so thank you Bob!



___
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


Old stack will not save or save as...

2020-08-19 Thread Paul Dupuis via use-livecode

I have a really old stack (the file ends in .mc for Metacard)

When I open it in LiveCode, the save and save as are disabled in the 
File menu. This us under Windows and the same in LC 4.6.4, LC 6.7.11 and 
in LC 9.6.0, the Save and Save As are enabled, but when I select the 
stack and try to Save As... it thinks it is saving "revRefactor" not my 
stack.


My stack opens and I can see and edit UI objects, properties and 
scripts. I just don't seem to be able to save it.


Just changing the extension to .rev or .livecode makes the stack 
unreadable in LC464, but it will still open in LC960, but still can save 
or save as (File menu items greyed out)


Anyone seen this? Know what to do?


___
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: More Standalone Building Weirdness...

2020-08-14 Thread Paul Dupuis via use-livecode
The stack where building a Windows Standalone just stays on "Attaching 
Engine..." forever had no 'closeStack' handlers at all.


I added the following:

on closeStack
   -build close issue--
   if the environment is "development" and \
 there is a stack "revStandaloneProgress" and \
 the mode of stack "revStandaloneProgress" > 0 then
  exit closeStack
   end if
   ---
   pass closeStack
end closeStack

An there was no change in behavior. Under LC960 (I have not tried other 
versions), it builds the standalone, but then just remains on "Attaching 
engine..." and I have to force LC to exit.


If no one else has seen anything like this, then it is probably 
something about the stack. I don't have problems building other 
standalones in LC960.



On 8/13/2020 1:06 PM, JeeJeeStudio via use-livecode wrote:

Put this in every stack you build, and i mean the "build close issue" part
in the on closeStack Handler

It was in one of the release notes.

Maybe that is holding your build to complete



on shutdownRequest
answer question "Are you sure you want to stop?" with "Y" or "N"
if it is "Y" then
   pass shutdownRequest
end if
end shutdownRequest

on closeStack
-build close issue--
if the environment is "development" and \
  there is a stack "revStandaloneProgress" and \
  the mode of stack "revStandaloneProgress" > 0 then
   exit closeStack
end if
---
lock messages
quit --triggers shutdownrequestmessage, if not handled then it hangs
pass closeStack
end closeStack

Op wo 12 aug. 2020 om 20:32 schreef Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com>:


I have a stack that when I build into a Windows Standalone (only
Windows) in LC 9.6.0 under Windows, the dialog that says "Attaching
Engine..." never finishes.

The Standalone gets built and runs properly, but the "Attaching
engine..." dialog in the building process never finishes (waiting over
an hour for a tiny stack) and I have to bring up teh Task Manager and
force the LiveCode app to exit.

Anyone seen anything like this? Have any idea what causes it?

Since the app does get built and runs fine, and I am under a deadline, I
don't really have time to troubleshoot it. It is easier to just force LC
to exit, but if someone has seen this and knows the cause, please let me
know.

Thanks in advance.

___
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


More Standalone Building Weirdness...

2020-08-12 Thread Paul Dupuis via use-livecode
I have a stack that when I build into a Windows Standalone (only 
Windows) in LC 9.6.0 under Windows, the dialog that says "Attaching 
Engine..." never finishes.


The Standalone gets built and runs properly, but the "Attaching 
engine..." dialog in the building process never finishes (waiting over 
an hour for a tiny stack) and I have to bring up teh Task Manager and 
force the LiveCode app to exit.


Anyone seen anything like this? Have any idea what causes it?

Since the app does get built and runs fine, and I am under a deadline, I 
don't really have time to troubleshoot it. It is easier to just force LC 
to exit, but if someone has seen this and knows the cause, please let me 
know.


Thanks in advance.

___
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: Building a Windows standalone without tsNet?

2020-08-12 Thread Paul Dupuis via use-livecode

Thank you Matthias and Ralph.

In general, I am more of a Windows person than a macOS person, but one 
thing I really wish Windows would adopt is .exe folder, like macOS .app 
folders so that things like the Externals folder and anything else the 
app needed could app "appear" to be inside the .EXE



On 8/12/2020 1:21 PM, matthias rebbe via use-livecode wrote:

As Ralph wrote,

execute this in message box

dispatch "revunloadlibrary" to stack tsnetliburl

and then build your standalone.


-
Matthias Rebbe
Life Is Too Short For Boring Code


Am 12.08.2020 um 17:59 schrieb Ralph DiMola via use-livecode 
:

Paul,

Disable:
dispatch "revunloadlibrary" to stack tsnetliburl

Enable:
dispatch "revloadlibrary" to stack tsnetliburl

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 Paul Dupuis via use-livecode
Sent: Wednesday, August 12, 2020 11:40 AM
To: How to use LiveCode
Cc: Paul Dupuis
Subject: Building a Windows standalone without tsNet?

I have a very simple stack that I want to build a Windows standalone for
(.exe). I do not use any internet/networking related commands or functions
in my scripts

The standalone builder for LC9.6.0 insists on including the "Externals"
folder with tsNet dll in it.

Can some one remind me how I tell the LC not to include tsNet? I knew it
once, have forgotten, and can't find in anywhere in any documentation.

Thank you in advance.

___
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: Building a Windows standalone without tsNet?

2020-08-12 Thread Paul Dupuis via use-livecode

On 8/12/2020 11:59 AM, Ralph DiMola via use-livecode wrote:

Paul,

Disable:
dispatch "revunloadlibrary" to stack tsnetliburl


If I execute this in the message box in the IDE does that then prevent 
the Standalone builder from including it? Or do I need to execute this 
in the startup of the Standalone itself?





Enable:
dispatch "revloadlibrary" to stack tsnetliburl

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 Paul Dupuis via use-livecode
Sent: Wednesday, August 12, 2020 11:40 AM
To: How to use LiveCode
Cc: Paul Dupuis
Subject: Building a Windows standalone without tsNet?

I have a very simple stack that I want to build a Windows standalone for
(.exe). I do not use any internet/networking related commands or functions
in my scripts

The standalone builder for LC9.6.0 insists on including the "Externals"
folder with tsNet dll in it.

Can some one remind me how I tell the LC not to include tsNet? I knew it
once, have forgotten, and can't find in anywhere in any documentation.

Thank you in advance.

___
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


Building a Windows standalone without tsNet?

2020-08-12 Thread Paul Dupuis via use-livecode
I have a very simple stack that I want to build a Windows standalone for 
(.exe). I do not use any internet/networking related commands or 
functions in my scripts


The standalone builder for LC9.6.0 insists on including the "Externals" 
folder with tsNet dll in it.


Can some one remind me how I tell the LC not to include tsNet? I knew it 
once, have forgotten, and can't find in anywhere in any documentation.


Thank you in advance.

___
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: Ansi-Pantsy

2020-06-30 Thread Paul Dupuis via use-livecode

On 6/30/2020 5:18 AM, Richmond via use-livecode wrote:
Why does fontLanguage return ANSI for English language fonts instead 
of romething like 'Roman'?


There is a fundamental mismatch between 'ANSI' and Unicode.

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


I asked a similar question back on June 5th under the subject "Unicode 
and languages" and Mark Waddingham provided the following answer 
(essentially the fontLanguages function no longer applies)


--
Unicode doesn't deal in languages but 'scripts' e.g. English and French 
are both written in the Latin script, whereas Ukrainian can be written 
in either the Latin or Cyrillic script.


LiveCode gives you access to the unicode properties of all codepoints 
(as held by ICU) via the 'codepointProperty(codepoint, property)' function.


e.g. codepointProperty("A", "Script") => "Latin"
 codepointProperty(numToCodepoint(0x03B1), "Script") => "Greek"

This might at least help to cut out trying to spellcheck things which 
are definitely not the languages you do have dictionaries for.

--

___
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


Mora Catalina permissions woes....

2020-06-29 Thread Paul Dupuis via use-livecode

List Folks: A head up of a Catalina issue:

If your code signed Standalone is trying to access stacks that are 
OUTSIDE the app bundle under Catalina, sometimes Catalina will not 
properly detect your apps need for access. You will not get an "App 
wants access to blah blah: Allow or Deny" dialogs and you app will throw 
a script error (if you have assumed successful access and not coded for 
errors)


In our case, we have the App (bundle) and a folder of stacks that sits 
next to it, both in a containing folder that is what is installed where 
the user installs it. So


FOLDER: OurAppFolder
> OurApp.app
>FOLDER: OurStacks
>> Some library stacks

We construct a full path to each library stack in "OurStacks" in a 
variable called tLibrary and when we execute

if there is a file tLibrary then
  start using tLibrary
end if
for the 1st library, we get a script error on the start using statement. 
The test for existence does return true.


start: can't find object

If you go to Apple (menu) > System Preferences (menu item) > Security & 
Privacy (panel) > Privacy (tab) > Full Disk Access and grant 
"OurApp.app" access, then subsequent launches work flawlessly.


This is clearly a Catalina entitlements/permissions issue.

We have distilled a test stack and have seen the error occur multiple 
times. The problem is we have not found a recipe that reproduces the 
error 100% reliably.


I have seen discussions that suggest Apple has provided NO entitlement 
you can code sign your app with to allow full disk access. They see 
individual folder access (like Documents, Desktop, etc.) and Full Disk 
Access (which subsumes all individual folder access) as being only 
grantable by the user.


QUESTIONS:

1) Any one else run into any situations where Catalina is failing to 
detect and ask for ANY given entitlement?


2) Any one else run into failures in detecting and asking for disk 
access entitlements?


3) If you have this problem, do you you tell customers to grant the app 
full disk access before running it? If so, how do you phrase that in a 
way that makes them comfortable and works?


4) Does anyone know of an entitlement for macOS Catalina that allows 
full disk access? Or even access to say the Applications folder?



P.S. If we can produce a recipe that is reliable, we will file a bug 
report on this. At the very least, LC may want to update "start using" 
to return an error code so you don't have to trap it with a try...end 
try block.





___
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: Platform Divergence

2020-06-23 Thread Paul Dupuis via use-livecode
We make and sell a desktop application (Windows and macOS) for a niche 
research market. I expect when Apple does their migration to a common 
processor and OS, Apple Developer's will have to go through all of Apple 
hoops for all their platforms.Most of our customer don't care about UI 
widget animations. They want the app to do certain functions and do them 
well and quickly to work with their data. As long as the UI is 
effective, whether it conforms precisely to Microsoft or Apple UI 
guidelines is secondary. So, even if you only care about desktops, your 
app will have to be sold through Apple's single App Store, conform to 
all screen sizes on all their devices, and follow all their UI 
guidelines, etc.


At that point, given that Windows is 2/3rd of our market and macOS 
1/3rd, we'll drop support for macOS sadly. I say sadly because our 
application originated way back in the late 1980 as a HyperCard App for 
MacOS.


But, to your point, your concern IS valid for those people wanting Apps 
from you that they insist MUST conform to all of Apple's esoteric 
requirements. It is likely it will become increasingly harder for the 
LiveCode ideal of develop once and deploy everywhere.



On 6/23/2020 2:56 PM, Jim Lambert via use-livecode wrote:

This year’s WWDC shows Apple is moving to a unified ‘system' for all their 
products: Mac, iPhone, iPad, Apple Watch, AppleTV.
The Apple development environment promises to produce a single app capable of 
running on all, or almost all, of Apple devices. This unification promises to 
be quite convenient for Apple developers.

In contrast, over the last decade or so there has been an ever increasing 
divergence in UX between major operating systems: Apple, Windows, Linux, 
Android. The days when systems were so similar that you could rely on the 
commonality of a handful of UI elements across platforms seems over to me. 
That’s troubling because such commonality is fundamental to LiveCode’s approach 
- write once, run everywhere.

In watching WWDC sessions it’s pretty clear that even simple UI elements have 
become more like UX elements having intrinsic and complex properties, such as 
certain visual and behavioral animations. Users readily learn to expect these 
behaviors. Yet such things are increasing difficult to fake with LiveCode’s 
basic palette of objects.

Enter LiveCode Builder and LC Widgets. They offer the promise of 
platform-specific UI elements - a promise fulfilled with some simple elements 
like iOS Native Button or Android Native Field. But I’m concerned that as 
platforms diverge in the interface experiences they present to users, that LC 
and LC developers will have difficulty satisfying users' divergent expectations.

Is my concern valid?

Jim Lambert


___
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: Catalina Entitlements or Permissions (was Possible Catalina problem)

2020-06-17 Thread Paul Dupuis via use-livecode

Arghh!

So I am Googling and Googling and hunting around the Apple Developer 
site to try to find a comprehensive list of macOS entitlements so I can 
code sign my app with the the entitlements my app needs to not generate 
errors under Catalina.


I want to execute: codesign --verbose --deep --force --sign 
"" --entitlements 
 
with an entitlements.plist file with entitlemenst to grant my app 
certain disk access, internet access, email access, and finder integration.


Finally, I find this article that basically says Apple has no 
comprehensive list - their published developer documentation has not 
kept up with the additions they have been making in point release 
updates to macOS: 
https://eclecticlight.co/2019/02/26/entitlements-how-apps-get-back-what-theyve-given-up/


The lack of an up-to-date comprehensive entitlements list was apparently 
bad enough that a guy by the name of Jonathan Levin built a database to 
keep track of them since Apple couldn't (or wouldn't), so at least there 
is this hand database at http://newosxbook.com/ent.jl


Now, if only I could figure out from the database which ones I need to add.

Perhaps, it is time to switch to Mark Talluto's suggestion to use 
AppWrapper!



On 6/16/2020 6:28 PM, Paul Dupuis via use-livecode wrote:

Hi Panos,

Thank you very much. The discussion in the bug entry answered  lot of 
my questions. I have one last thing I hope you or someone can point me 
two, which is a list of Apple macOS "entitlements"


From the bug entry I see:

com.apple.security.device.audio-input

com.apple.security.device.camera


I need to figure out the ones for email access, finder integration 
(drag/drop), internet access, and disk access.


We've seen Catalina ask the user for:

1. HyperRESEARCH requests access to the Internet (if Apple Firewall is
   turned on). - We assume this is because out app needs to check for
   new versions and updates and for license management.
2. HyperRESEARCH requests access to the "Finder". - We assume this is
   to receive AppleEvents (system messages) if a Study file is double
   clicked or dragged and dropped on HyperRESEARCH to open the Study.
3. HyperRESEARCH requests access to your "Contacts". We assume this is
   for access to send an email for an error report if an error occurs.
   Our App does not accessing any names or addresses.

I have tried Google for macOS or Catalina and entitlements but all I 
seem to be able to find is articles from the user's perspective, not 
developers information.





On 6/15/2020 12:21 PM, panagiotis merakos via use-livecode wrote:

Hello Paul,

I guess you can sign the standalone mac app with entitlements, i.e. 
use a

file that will contain all the necessary entitlements, and include it in
the params passed to the codesign command. See this report for more 
details:


https://quality.livecode.com/show_bug.cgi?id=22660

Kind regards,
Panos
--

On Mon, 15 Jun 2020 at 14:56, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


We're having some macOS Catalina permissions/entitlements issues

We have applications that we deliver for Catalina where the application
(LiveCode standalone) is code-signed. It is then packaged in an
installers (LiveCode standalone) and the installer is code signed. That
is then placed in a DMG, which is code-signed, notarized, and stapled.

This has worked for us since October when Catalina was released.

It still works, except sometimes, after successful downloading and
installation, when the applications is first launched, Catalina does 
not

ask for the permissions the Application needs. Instead certain handler
throw an execution error. The handlers that produce the errors on
startup when Catalina fails to ask for permissions have the 
following in

common:

The set the defaultFolder to folders such as:

/Library/PreferencePanes
/Users//Library/Preferences -- this is using the code: the
home folder & "/Library/PreferencePanes/"
or
/private/var/folders/fj/0llnt4vs44vfzy4r97k_wngcgp/T/TemporaryItems
-- this is 'the temporary folder' on Mojave or Catalina. On Mavericks
and earlier teh temporaty folder was
/Users//Library/Caches/TemporaryItems

After setting the defaultFolder, the code gets 'the files' or 'the
folders' and fails (actually we've not pinned down whether it fails on
set the defaultFolder OR on the call to 'the files/folders')

Going to Apple (menu) > System Preferences (menu item) > Security &
Privacy (control) > Privacy (tab) and selecting Full Disk Access and
adding our applications prevents these errors from occuring.

The issue is clearly with Catalina failing to detect and ask for the
correct permissions. This is a known issue a number of developers have
run into. See https://forums.developer.apple.com/thread/125438 as one
example where an Apple support person admits that detecting what
permissions a process is requesting that is tied back

Re: Catalina Entitlements or Permissions (was Possible Catalina problem)

2020-06-16 Thread Paul Dupuis via use-livecode

Hi Panos,

Thank you very much. The discussion in the bug entry answered  lot of my 
questions. I have one last thing I hope you or someone can point me two, 
which is a list of Apple macOS "entitlements"


From the bug entry I see:

com.apple.security.device.audio-input

com.apple.security.device.camera


I need to figure out the ones for email access, finder integration 
(drag/drop), internet access, and disk access.


We've seen Catalina ask the user for:

1. HyperRESEARCH requests access to the Internet (if Apple Firewall is
   turned on). - We assume this is because out app needs to check for
   new versions and updates and for license management.
2. HyperRESEARCH requests access to the "Finder". - We assume this is
   to receive AppleEvents (system messages) if a Study file is double
   clicked or dragged and dropped on HyperRESEARCH to open the Study.
3. HyperRESEARCH requests access to your "Contacts". We assume this is
   for access to send an email for an error report if an error occurs.
   Our App does not accessing any names or addresses.

I have tried Google for macOS or Catalina and entitlements but all I 
seem to be able to find is articles from the user's perspective, not 
developers information.





On 6/15/2020 12:21 PM, panagiotis merakos via use-livecode wrote:

Hello Paul,

I guess you can sign the standalone mac app with entitlements, i.e. use a
file that will contain all the necessary entitlements, and include it in
the params passed to the codesign command. See this report for more details:

https://quality.livecode.com/show_bug.cgi?id=22660

Kind regards,
Panos
--

On Mon, 15 Jun 2020 at 14:56, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


We're having some macOS Catalina permissions/entitlements issues

We have applications that we deliver for Catalina where the application
(LiveCode standalone) is code-signed. It is then packaged in an
installers (LiveCode standalone) and the installer is code signed. That
is then placed in a DMG, which is code-signed, notarized, and stapled.

This has worked for us since October when Catalina was released.

It still works, except sometimes, after successful downloading and
installation, when the applications is first launched, Catalina does not
ask for the permissions the Application needs. Instead certain handler
throw an execution error. The handlers that produce the errors on
startup when Catalina fails to ask for permissions have the following in
common:

The set the defaultFolder to folders such as:

/Library/PreferencePanes
/Users//Library/Preferences -- this is using the code: the
home folder & "/Library/PreferencePanes/"
or
/private/var/folders/fj/0llnt4vs44vfzy4r97k_wngcgp/T/TemporaryItems
-- this is 'the temporary folder' on Mojave or Catalina. On Mavericks
and earlier teh temporaty folder was
/Users//Library/Caches/TemporaryItems

After setting the defaultFolder, the code gets 'the files' or 'the
folders' and fails (actually we've not pinned down whether it fails on
set the defaultFolder OR on the call to 'the files/folders')

Going to Apple (menu) > System Preferences (menu item) > Security &
Privacy (control) > Privacy (tab) and selecting Full Disk Access and
adding our applications prevents these errors from occuring.

The issue is clearly with Catalina failing to detect and ask for the
correct permissions. This is a known issue a number of developers have
run into. See https://forums.developer.apple.com/thread/125438 as one
example where an Apple support person admits that detecting what
permissions a process is requesting that is tied back to your user
visible app (something Apple calls 'responsibility tracking') is really
hard.

For iOS and Android, you can specify entitlements or requested
permissions in the Standalone Builder Settings. How do you do this for
macOS Catalina?

Does anyone know if there is a way to specify entitlements for a macOS
desktop app built in LiveCode? I have been googling and googling and can
seem to find anything. I found one discussion on stackExchange that seem
to imply that the PLIST file could be edited to specify entitlements. I
have tried the Apple Developer site, but SO MUCH of it is orient towards
people with lots of Apple Developer experience and focuses of C and
SWIFT and Apple specific technologies I don't understand.

I can edit the XML in a PLIST file in the standalone bundle IF I only
knew what to add?


___
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 
pre

Catalina Entitlements or Permissions (was Possible Catalina problem)

2020-06-15 Thread Paul Dupuis via use-livecode

We're having some macOS Catalina permissions/entitlements issues

We have applications that we deliver for Catalina where the application 
(LiveCode standalone) is code-signed. It is then packaged in an 
installers (LiveCode standalone) and the installer is code signed. That 
is then placed in a DMG, which is code-signed, notarized, and stapled.


This has worked for us since October when Catalina was released.

It still works, except sometimes, after successful downloading and 
installation, when the applications is first launched, Catalina does not 
ask for the permissions the Application needs. Instead certain handler 
throw an execution error. The handlers that produce the errors on 
startup when Catalina fails to ask for permissions have the following in 
common:


The set the defaultFolder to folders such as:

/Library/PreferencePanes
/Users//Library/Preferences -- this is using the code: the 
home folder & "/Library/PreferencePanes/"

or
/private/var/folders/fj/0llnt4vs44vfzy4r97k_wngcgp/T/TemporaryItems 
-- this is 'the temporary folder' on Mojave or Catalina. On Mavericks 
and earlier teh temporaty folder was 
/Users//Library/Caches/TemporaryItems


After setting the defaultFolder, the code gets 'the files' or 'the 
folders' and fails (actually we've not pinned down whether it fails on 
set the defaultFolder OR on the call to 'the files/folders')


Going to Apple (menu) > System Preferences (menu item) > Security & 
Privacy (control) > Privacy (tab) and selecting Full Disk Access and 
adding our applications prevents these errors from occuring.


The issue is clearly with Catalina failing to detect and ask for the 
correct permissions. This is a known issue a number of developers have 
run into. See https://forums.developer.apple.com/thread/125438 as one 
example where an Apple support person admits that detecting what 
permissions a process is requesting that is tied back to your user 
visible app (something Apple calls 'responsibility tracking') is really 
hard.


For iOS and Android, you can specify entitlements or requested 
permissions in the Standalone Builder Settings. How do you do this for 
macOS Catalina?


Does anyone know if there is a way to specify entitlements for a macOS 
desktop app built in LiveCode? I have been googling and googling and can 
seem to find anything. I found one discussion on stackExchange that seem 
to imply that the PLIST file could be edited to specify entitlements. I 
have tried the Apple Developer site, but SO MUCH of it is orient towards 
people with lots of Apple Developer experience and focuses of C and 
SWIFT and Apple specific technologies I don't understand.


I can edit the XML in a PLIST file in the standalone bundle IF I only 
knew what to add?



___
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: Possible Catalina problem...

2020-06-08 Thread Paul Dupuis via use-livecode

Torsten,

Thank you. That is encouraging. I may take you up on your offer later to 
run a test on your Catalina Mac.


-- Paul

On 6/8/2020 11:10 AM, Torsten Holmer via use-livecode wrote:

Hi Paul,

I have started three LiveCode standalones on Catalina with no problems. But 
they are just standalones created frome the IDE with no signing etc.

If you like, I can test your apps on my MacBook with Catalina in order to check 
if the problems are replicable.

CU,
Torsten



Am 08.06.2020 um 16:55 schrieb Paul Dupuis via use-livecode 
:

We have run into a possible problem. Researchware makes two applications, 
HyperRESEARCH and HyperTRANSCRIBE. We have new forthcoming versions of both 
built on LiveCode 9.5.1.

These two applications are code signed and the DMG is code signed, notarized, 
and stapled for Catalina. They both work fine on testing on macOS ranging from 
Mavericks (10.9) to Mojave (10.14).

We also only have a single Catalina system to test on. On that single system, 
each application seems to work fine, but if we run them at the same time, the 
second app to launch throws a script error on startup - and it looks like it 
may be related to network actions on startup.

We have a TON more testing to do, but I wanted to ask if anyone have seen ANY 
Catalina specific problems running multiple LiveCode standalones at the same 
time?

Our hope is that this is a problem SPECIFIC to our single Catalina mac and not 
a LC Engine or tsNet Catalina specific bug of some sort. To know that some one 
else has run multiple LC 9 standalones at the same time on Catalina and seen no 
errors would be kind of encouraging right now.






___
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


Possible Catalina problem...

2020-06-08 Thread Paul Dupuis via use-livecode
We have run into a possible problem. Researchware makes two 
applications, HyperRESEARCH and HyperTRANSCRIBE. We have new forthcoming 
versions of both built on LiveCode 9.5.1.


These two applications are code signed and the DMG is code signed, 
notarized, and stapled for Catalina. They both work fine on testing on 
macOS ranging from Mavericks (10.9) to Mojave (10.14).


We also only have a single Catalina system to test on. On that single 
system, each application seems to work fine, but if we run them at the 
same time, the second app to launch throws a script error on startup - 
and it looks like it may be related to network actions on startup.


We have a TON more testing to do, but I wanted to ask if anyone have 
seen ANY Catalina specific problems running multiple LiveCode 
standalones at the same time?


Our hope is that this is a problem SPECIFIC to our single Catalina mac 
and not a LC Engine or tsNet Catalina specific bug of some sort. To know 
that some one else has run multiple LC 9 standalones at the same time on 
Catalina and seen no errors would be kind of encouraging right now.







___
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: Unicode and languages

2020-06-05 Thread Paul Dupuis via use-livecode

On 6/5/2020 1:46 PM, Mark Waddingham via use-livecode wrote:

On 2020-06-05 18:15, Paul Dupuis via use-livecode wrote:

I don't even know if language exists in the IBM Unicode engine as some
exportable property a future version of LiveCode could expose.

Any clever ideas or thoughts on this problem are welcome.


Unicode doesn't deal in languages but 'scripts' e.g. English and 
French are both written in the Latin script, whereas Ukrainian can be 
written in either the Latin or Cyrillic script.


LiveCode gives you access to the unicode properties of all codepoints 
(as held by ICU) via the 'codepointProperty(codepoint, property)' 
function.


e.g. codepointProperty("A", "Script") => "Latin"
 codepointProperty(numToCodepoint(0x03B1), "Script") => "Greek"

This might at least help to cut out trying to spellcheck things which 
are definitely not the languages you do have dictionaries for.


Warmest Regards,

Mark.



Thank you Mark!

That is a least a start as to minimizing the problem for our customers. 
We can make a table of Scripts to Dictionaries and at least prevent 
erroneous spell checking of Chinese with an English Dictionary!




___
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


Unicode and languages

2020-06-05 Thread Paul Dupuis via use-livecode
In all the added stuff the LC7 and higher Unicode engine includes, is 
there any way to determine the LANGUAGE of a range of text?


USE-CASE

We have a tool that helps researchers transcribe text from digital 
media. It is used internationally. We have added spell checking using 
lclSpell form Live Code Labs, a LiveCode store add-on.


For lclSpell, we only have Dictionaries for a small set of languages. 
You can build you own Dictionaries for lclSpell, but we'll still only 
have Dictionaries for a small subset of the languages people transcribe 
in. We also have people who do BOTH transcription AND translations.


For example, transcribing a Chinese language media recording, typing in 
the Simplified or Traditional Chinese characters AND then translate it 
to English, typing the English translation after the transcription.


With lclSpell (or I suspect ANY LiveCode compatible spell checker) if 
you try to spell check a reasonably large chunk of text that is NOT in 
the same language as your Dictionary, it ties up LiveCode forever, or at 
least such a long time and most people would force-quit. It is after all 
marking every word as misspelled and trying to do whatever it does to 
determine  that.


Now, you can react, that the researcher should just KNOW better than to 
do Spell check a text in a language that is not their loaded Dictionary! 
However, people are people, and will do such things and expect software 
to protect them from their own mistakes. Also, with mixed transcription 
and translation, you do want to spell check the English part and skip 
the Chinese (if you do not have a Chinese Dictionary)


So, we're looking for a way to detect the LANGUAGE of a range of text, 
in a LiveCode field, to be able to then determine whether it matches the 
current (or any available) dictionary or not and act accordingly.


There is a "fontLanguage" function in LC, but that seem to predate 
Unicode Everywhere and seem pretty useless now.


For example. in a new stack, with a single scrolling field, we paste in 
a Chinese text and then execute:


put the fontLanguage of (the effective textfont of char 1 to -1 of fld 1)

and get "ansi". Even you you set the range (char 2 to 3) that is 
specifically Chinese (no white space), it still returns "ansi". The 
textFont returns empty and the effective textFont returns "Segue UI"


I don't even know if language exists in the IBM Unicode engine as some 
exportable property a future version of LiveCode could expose.


Any clever ideas or thoughts on this problem are welcome.



___
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: ADA Compliency

2020-05-28 Thread Paul Dupuis via use-livecode

On 5/26/2020 6:56 PM, Dan Friedman via use-livecode wrote:

Has anyone done anything in regards to ADA compliancy in mobile apps built with 
LiveCode?   Using the apple or android accessibility tools such as Screen 
reading, for example.




I have been periodically looking at assistive technologies for LiveCode 
built applications on desktop platforms (vs mobile) over the years. 
Certain OS bases assistive tool like screen magnifiers do work as they 
are application independent. Unfortunately, screen readers and voice 
recognition tools generally don't work with LiveCode because the 
application independent tools look to act on OS native controls which 
most LC app don't use through out.


With LC 9 and the FFI/Widgets it may be possible to build integration 
libraries for one or more of those assistive tools that require 
application specific integration, but I don't think anyone has done it.


For mobile ADA compliance, you best bet is to test your app with 
whatever OS level assistive tools are provided with iOS and Android or 
look in the associated App store for application independent assistive 
app to test with your app.


If you mobile uses all native controls it *may* work better with OS or 
3rd party assistive tool, but that is a guess. I have no mobile app 
experience.



___
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


AW: Drawing a blank on simple code...

2020-05-20 Thread Paul Dupuis via use-livecode

On 5/19/2020 6:46 PM, Phil Davis via use-livecode wrote:

You're almost there Paul!

On 5/19/20 2:18 PM, Paul Dupuis via use-livecode wrote:
I have a set of custom properties in stack "X", a lot of which begin 
with "options_"


So I assume these are members of a customPropertySet, whose name I'll 
call "myOptions".


Actually, the custom properties were NOT part of a customPropertySet, 
but were custom properties in the DEFAULT property set AND I apparently 
either never knew or had forgotten that you can not use array notation 
to set custom properties in the default property set since the default 
property set has no name. I could put the  customer properties array in 
an array variable and get the values that way, but to set them I had to 
construct a DO command. They all really should be moved to a custom 
property set (called "options" for example), but I don't have the time 
to change that much code.




___
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


Drawing a blank on simple code...

2020-05-19 Thread Paul Dupuis via use-livecode
I have a set of custom properties in stack "X", a lot of which begin 
with "options_"


I want to loop through them and get the values, so I have:

  local tDisplayList
  put the customKeys of stack "X" into tProperties
  filter lines of tProperties with "options_*"
  if tProperties is empty then exit to top

  repeat for each line tLine in tProperties
    put the customKeys[tLine] of stack "X" into tProp

    -- do stuff here
  end repeat


When I walk through this code in the debugger, I see that tProperties 
gets a list of the names of all custom properties in the "X" stack. YEA!


Then I see that that list correctly gets filtered to just those that 
begin with "options_" YEA!


Then I see the in the repeat loop the variable "tLine" get the name of 
each "options" property in succession. YEA!


PROBLEM: put the customKeys[tLine] of stack "X" into tProp DOES NOT 
fetch the value of the indicated property into tProp


I know this is simple - and I have coded it before - but I can seem to 
find my past code in prior projects and obviously am missing something.


___
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


AW: Re: I need some DataGrid performance help

2020-05-07 Thread Paul Dupuis via use-livecode
Reduced to a consistent 1.5 to 2 minutes by revising the setting of 
datagrid column properties


the columns themselves, widths, and alignments set all at one. Tooltips, 
sort type and sort direction set in a loop in revised code.


I still do not understand why in the original code, when 1st set in a 
session it took 3 min and on subsequent updates in the same session, it 
took 30 minutes. The datagrid must be slow erasing certain properties 
for updating.


Thank you to everyone who responded with advice.


___
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: I need some DataGrid performance help

2020-05-06 Thread Paul Dupuis via use-livecode

On 5/6/2020 1:53 PM, Mark Waddingham via use-livecode wrote:
In reality, 'lock messages' is a sledge-hammer and like a 
sledge-hammer it can cause fallout if not wielded carefully.




Slightly off topic, but I have run into time where I wish I could lock a 
specific message or set of messages. Something like:


Lock messages for "mouseUp,mouseDown"

Generally, like so many many things in LiveCode, you can code this with 
a flag in the handlers or a bunch of alternatives. However, I still find 
myself running into this now and then.


___
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: I need some DataGrid performance help

2020-05-06 Thread Paul Dupuis via use-livecode

On 5/6/2020 7:58 AM, zryip theSlug via use-livecode wrote:

After each call to a column property such as dgColumnWidth, the datagrid is
resized (header, column, rectangles, etc)


This I did not know. Thank you.


Instead of having them in the loop, prepare the column size, columns label,
etc and uses the table properties existing for setting all the values at
once. In this case the refresh of the datagrid is internally made only one
time.


This I did know. As I said in my initial message:

I realize that I could use: 'set the dgProp["column widths"] of grp  
to ' as a single set action vs a loop where 
I am using 'set the dgColumnWidth[tColumnName] of grp  to 
'.


However, there are only Datagid properties so set attributes for ALL 
columns for alignments, visibility, widths, and labels. Therefore, I 
have to use a loop anyway to set the tooltip, sorttype, sortdirection, 
end editability



SO, while I can change the code to set the column ALIGNMENTS and WIDTHS 
all at once, I am still stuck setting the TOOLTIP, SORTTYPE, 
SORTDIRECTION, and EDITABILITY column by column in a repeat loop. So 
what do I do about setting the TOOLTIPs? There is NO 'set the 
dgProp["column tooltips"] of grp  to '


Obviously, I can just TRY using LOCK MESSAGES (as Paul Hibbert 
suggested), but I am concerned that may cause more problems that it 
solves. Does anyone KNOW for sure?


___
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: I need some DataGrid performance help

2020-05-06 Thread Paul Dupuis via use-livecode

On 5/6/2020 6:55 AM, Pi Digital via use-livecode wrote:

What handler do you have this code? From what you are saying it seems it’s 
deploying this formatting script every time it redraws which itself is very 
inefficient and unnecessary. It should only have to deal with the data itself 
ideally.


This code is called only when the data is changed such as columns added 
or removed or rows added or removed or both.


___
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


I need some DataGrid performance help

2020-05-05 Thread Paul Dupuis via use-livecode
I have a datagid operation that should be fast that is taking a long 
time and I don't understand why.


I use a datagrid to display a table of data as part of an analysis. The 
columns are file names and the rows are selected phrases found in those 
files. The first column is the list of phrases (162 in this example). 
The remaining columns are all the file name (254 in this example). So 
each cell (2 to 254) represents a count of the number of times the 
phrase (in column 1 of the row) was found the the file that column 
represents.


I have the following code:

  set the dgColumnWidth[tRowColumnName]  of grp 
"rwMatrixObj_DataGrid" to 200
  set the dgColumnAlignment[tRowColumnName]  of grp 
"rwMatrixObj_DataGrid" to "left"
  set the dgColumnSortType[tRowColumnName]   of grp 
"rwMatrixObj_DataGrid" to "text"
  set the dgColumnIsEditable[tRowColumnName] of grp 
"rwMatrixObj_DataGrid" to false

  repeat with i=2 to the number of lines in tColumnNames
    put line i of tColumnNames into tColumnName
    set the dgColumnTooltip[tColumnName]    of grp 
"rwMatrixObj_DataGrid" to tColumnName
    set the dgColumnWidth[tColumnName]  of grp 
"rwMatrixObj_DataGrid" to 75
    set the dgColumnAlignment[tColumnName]  of grp 
"rwMatrixObj_DataGrid" to "right"
    set the dgColumnSortType[tColumnName]   of grp 
"rwMatrixObj_DataGrid" to "numeric"
    set the dgColumnSortDirection[tColumnName] of grp 
"rwMatrixObj_DataGrid" to "descending"
    set the dgColumnIsEditable[tColumnName] of grp 
"rwMatrixObj_DataGrid" to false

  end repeat

The first time this executes it takes just under 3 minutes for this size 
of data (254 columns). However, the second and each successive time in 
the same session it takes just under 30 minutes!


Any idea why it would take so long?

Thoughts on how to speed it up?

I realize that I could use: 'set the dgProp["column widths"] of grp  
to ' as a single set action vs a loop where 
I am using 'set the dgColumnWidth[tColumnName] of grp  to 
'.


However, there are only Datagid properties so set attributes for ALL 
columns for alignments, visibility, widths, and labels. Therefore, I 
have to use a loop anyway to set the tooltip, sorttype, sortdirection, 
end editability


The column names (in the variable tColumnNames) are file names. Some are 
long (longest is 113 characters) and some contain assorted punctuation. 
I wonder is the column NAMES should be somehting plain ASCII and short 
and the column LABELS contain the file names?


This is all in LiveCode 9.5.1 on Windows. Timing is approximately the 
same in a Standalone or the IDE.


Anyway, if anyone has a good idea of what is taking this 30 minutes, 
ideas would be very welcome!


___
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: OT: How to graph a specific data set?

2020-05-05 Thread Paul Dupuis via use-livecode

On 5/5/2020 11:17 AM, Prothero-ELS via use-livecode wrote:

Paul,
The first question I have is: “what are you trying to communicate with your 
chart?” The answer to that question will point to a charting strategy.
Bill


I am trying to visually call attention to those intersections with high 
occurrences.


However, the labels that I replaced with the alphabet for 
confidentiality have meaning to the researchers looking at this and they 
may equally be fascinated when a pair has NO intersections in the data.


___
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


OT: How to graph a specific data set?

2020-05-05 Thread Paul Dupuis via use-livecode

This is NOT a "How to do this in LiveCode" question.

I have a data set (below), produced by a LiveCode program and the data 
is exported to Excel.


I am trying to figure out:

1) What the "best" style of graph to visualize this data is? I thought 
perhaps a "Bubble Chart" but  - in Excel at least - does not seem to 
work for this data.



2) After determining the "best" chart style is, what charting tool (if 
not Excel) can generate that style of chart for this data?


Any tips anyone may have would be very welcome.

The data set is below. This shows that "A" intersects with B once and C 
intersects with J 4 times (as example of how to read the data). I have 
replaced the actual labels (text strings for rows and columns) with the 
English alphabet for simplicity.




	A 	B 	C 	D 	E 	F 	G 	H 	I 	J 	K 	L 	M 	N 	O 	P 	Q 	R 	S 	T 	U 	V 	W 	X 
Y 	Z
A 	0 	1 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 
0 	0 	0

B   
0   0   0   0   0   0   0   0   0   
0   0   0   0   0   0   0   0   0   0   
0   0   0   0   0   0
C   

0   0   0   0   0   1   0   4   1   
0   2   0   0   1   1   0   0   1   0   
0   1   0   1   1
D   


0   0   0   1   0   0   0   1   0   
0   0   1   0   0   0   1   0   0   0   
0   0   1   0
E   



0   1   0   0   0   0   1   0   1   
0   0   0   0   0   0   0   0   0   0   
0   0   0
F   




0   0   0   0   0   0   0   0   0   
0   0   0   0   0   0   0   0   0   0   
0   0
G   





0   0   0   0   0   0   0   0   0   
0   0   0   0   0   0   0   0   0   1   0
H   






0   0   0   0   0   0   0   0   1   
0   0   0   0   0   0   0   0   0   0
I   







0   0   0   1   0   0   0   0   0   
0   0   0   0   0   0   0   0   0
J   








0   1   0   1   0   0   0   0   0   
0   0   0   0   0   0   0   0
K   









0   0   1   0   0   0   0   0   1   
0   0   1   1   0   0   0
L   










0   0   0   2   0   0   0   0   0   
0   0   0   0   0   0
M   











0   0   0   0   0   0   0   0   0   
0   0   0   0   0
N   












0   0   0   0   0   0   0   0   0   
0   0   0   0
O   













1   0   0   0   1   0   0   0   0   
1   0   0
P   














0   0   1   0   1   0   0   0   0   
1   1
Q   















0   0   0   0   0   0   0   0   0   0
R   
















0   0   0   0   0   0   0   0   0
S   

















0   0   0   0   0   0   0   0
T   








   

Re: What is a real?

2020-04-25 Thread Paul Dupuis via use-livecode

On 4/25/2020 10:40 AM, Bob Sneidar via use-livecode wrote:

Apparently nothing is a real. Neither is anything strictly a real.


I have never heard a more philosophical statement in all my life ;-)

___
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: LC equivalent of php utf8_encode and utf8_decode ?

2020-04-13 Thread Paul Dupuis via use-livecode

On 4/13/2020 9:07 AM, jbv via use-livecode wrote:

Hello list,
Suddenly I'm having a blank : what is the LC equivalent
of utf8_encode and utf8_decode in php for a string ?

Thanks in advance
jbv

___
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


textEncode and textDecode -- see dictionary for syntax

___
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


  1   2   3   4   5   6   7   >