RSYNC still uses MD5 and...

2017-02-28 Thread Alejandro Tejada via use-livecode
RSYNC would be a nice and useful addition
to LiveCode engine.

https://en.wikipedia.org/wiki/Rsync

Could RSYNC be implemented fast enough
using only LiveCode scripts?

Al
___
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: Dragging widgets

2017-02-28 Thread Sannyasin Brahmanathaswami via use-livecode
@ Bob:

Right: not meant to criticize, but hopefully constructive observation about a 
specific issue… that's how we evolve, right?

 "just sayin"  that to the eyes of the user  (as Quentin said) a widget is a 
visual object/control on screen, like any other, the expectation that they can 
enter

on mousedown; grab me; end mousedown

will be very high. 

So this is a "gotcha" for newbies -- and I don't mean "kids" but experienced 
graphic designers who work all day in a visual environment: (a target market 
that IMHO opinion could be huge were LC ramp up on the visual side)  and now, 
in the new IDE(s), like HYPE from Tumult (just installed yesterday.. amazing…)

… Solutions could be simple as adding to the dictionary a disclaimer "SVG 
objects are drawn arithmetically; as such they do not behave like a block of 
rasterized pixels. In order to drag an SVG widget you need to group it first 
and then add the grab me to the group."  Or like Mike said  "fix it" 

Some things are fundamental in the UI/UX and dragging objects *any* object is 
one of them, and has been from the day we mouse down on an icon on the desktop 
and dragged it into the trash.

Just my two rain drops from Kauai where a storm is moving in, could be as much 
as 10 inches in 10 hours tonite. Yikes!

On 2/28/17, 5:32 AM, "use-livecode on behalf of Bob Sneidar via use-livecode" 
 wrote:

oh contraire. Not all images are the same. Support for each kind of image 
has to be implemented. If the industry developed a new kind of image, LC would 
be faced with incorporating that format. 

Bob S



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

Re: Is it just the IDE that crashes, or are standalone at risk?

2017-02-28 Thread Dr. Hawkins via use-livecode
On Tue, Feb 28, 2017 at 2:33 PM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> My IDE was "crashing" but I traced it to an obscure infinite loop I
> inadvertently created, by creating a handler, which triggered something in
> a datagrid behavior which automatically called the original handler. It was
> a beatch to find. I believe that LC may detect these infinite loops (by the
> number of recursions?) and bails out when it happens. (It may also have
> something to do with memory allocation).
>

No loops.  There are a pair of behaviors that relaunch themselves with
"send in" every 30 seconds or so.


>
> Also, are you using a "stable" version, or are you using developer
> previews on a regular basis?
>

All stable releases and release candidates.  I've never even launched 9,
and had to skip 6 entirely (the pirate code dots were so much worse than 5,
and 7 fixed it before 6).

As for richmond's suggestions, this is a bog-standard Sierra installation,
and there aren't any non-apple utilities installed, and 16gb ram on a
mid-2011 27" iMac, quad-core i5.

In fact, there isn't much *at all* installed, and rarely anything open but
lived ode, open office, iWork, filezilla, acrobat reader and professional,
scansnap, safari, firefox, and a brother printer driver

I use the latest 8 stable or rc, and until some 8.1.4 fixes, have to use
 7.1.4 for some combining of stacks.
-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: Dragging widgets

2017-02-28 Thread Bob Sneidar via use-livecode
As to that, everything you do on a computer, INCLUDING typing code, is an 
illusion. A DOS prompt is an illusion in it's own right. So is a light bulb on 
a panel that was turned on by some signal from a computing device. All a 
computer can really do is move numbers from one register to another in a 
predefined way. By calling the LC GUI an illusion, you are simply removing 
yourself one more layer from the last illusion. 

Now in relation to built-in support of different formats, one could say the 
same thing about a web browser, that it should "just work with any kind of 
image". Or font type then. Or video format. Or encryption algorithm. Or 
anything really. The only reason modern web browsers evolved in the first place 
was because new formats of all kinds of things became really popular or 
beneficial to the end product in some way. 

If anyone can demonstrate that thousands of potential developers turned away 
from LC because the support for SVG graphics, or the browser object, or 
anything in LC, was not up to par, they would have a good point. Better yet if 
they can produce some real numbers about all the developers who really want to 
begin programming in Livecode, and are just waiting for more robust support of 
some particular object, I'm sure they would garner serious interest. If not, 
then bringing up all the programmers who have "turned away" is frankly, a 
fallacy. 

Myself, I get a little nervous when some on the list begin to criticize RunRev 
for not supporting some thing or not in some way expected. It feels a lot like 
eating dinner with my mother who used to take us to high end French restaurants 
just so that she could complain to the chef that something wasn't done just so. 

I could be mischaracterizing the posts though. I apologise if I am overstating 
my case. I think discussions about possible bugs, or new features or better 
ways of doing things are constructive. Criticism of the amazing devs at RunRev 
when something does not work exactly as we like, is not. 



Bob S


> On Feb 28, 2017, at 14:28 , Richmond Mathewson via use-livecode 
>  wrote:
> 
> The main stregth of Livecode is that one can go on believing in the illusion 
> of the GUI.
> 
> Messing around with text-editors and images spoils that completely.
> 
> Richmond.


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


Re: Image Manipulation by javascript/HTML5 using a widget

2017-02-28 Thread Jonathan Lynch via use-livecode
Hi hh,

Thank you. There's a whole ton of javascript libraries out there that allow
some great effects. I have not yet learned webgl, but I know we could do
some very cool warps with it. I don't have much knowledge in that area, but
I look forward to all the stuff that you and others with a high-level of
image manipulation skills could create.

I also think it would also be possible to generate an animation in an html5
canvas object, but do it in a hidden browser widget. It could be set up to
export the image data from that canvas object and put it into an image in
LC, complete with transparent parts. The way I envision it, each frame
would be triggered by the completion of the transfer of the previous frame,
until a given motion is complete, using something like "send
triggerNextFrame to me in 0 seconds". This would prevent errors when LC or
JS gets ahead of the other, and would allow other messages to proceed while
the 3d animation is happening. The frame rate would vary based on the
computer's speed, but could set to a max rate, I think. That would allow us
to have 3D animations that appear directly on a card, presented through an
image object, with the position controllable by LiveCode script.

On Tue, Feb 28, 2017 at 5:11 PM, hh via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Roger E. wrote:
> >  Sounds very cool!  Where is the download link?
>
> Use "Sample Stacks" in the LC toolbar (Sort descending by date) or
> (slower) http://livecodeshare.runrev.com/ (at top if sorted by 'Newest')
>
> ___
> 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
>



-- 
Do all things with love
___
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: Is it just the IDE that crashes, or are standalone at risk?

2017-02-28 Thread Richmond Mathewson via use-livecode
I don't know which platform you are deploying either the IDE or 
standalones on; but I currently

use:

6.1.something and standalones on Mac OS 10.5.8 PPC

7.1.4, 8.1.3, 9.0.0 DP-4 andstandalones on Mac OS 10.7.5,

8.1.3 standalones on ReactOS 5 pre-release (!),

7.1.4, 8.1.3, 9.0.0 DP-5 andstandalones on Xubuntu 14.04 (32-bit), 
Xubuntu 16.04 (64-bit) and WINE


pupils of mine take home standalones of mine to use on Mac, Windows of 
all flavours, and Linux.


No crashes of either IDE or standalones.

I have a feeling that their may be something odd about the machine(s) 
you are deploying to (possibly

something else you have installed is messing around with LiveCode).

Richmond.

On 3/1/17 12:26 am, Dr. Hawkins via use-livecode wrote:

As I'm about to send this out to people, I've had a horrible thought:

Is it just the IDE that crashes on a regular basis, or do standalones crash
just as often?

*shudder*




___
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: Is it just the IDE that crashes, or are standalone at risk?

2017-02-28 Thread Bob Sneidar via use-livecode
My IDE was "crashing" but I traced it to an obscure infinite loop I 
inadvertently created, by creating a handler, which triggered something in a 
datagrid behavior which automatically called the original handler. It was a 
beatch to find. I believe that LC may detect these infinite loops (by the 
number of recursions?) and bails out when it happens. (It may also have 
something to do with memory allocation). 

Also, are you using a "stable" version, or are you using developer previews on 
a regular basis?

Bob S


> On Feb 28, 2017, at 14:26 , Dr. Hawkins via use-livecode 
>  wrote:
> 
> As I'm about to send this out to people, I've had a horrible thought:
> 
> Is it just the IDE that crashes on a regular basis, or do standalones crash
> just as often?
> 
> *shudder*
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.


___
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: Dragging widgets

2017-02-28 Thread Richmond Mathewson via use-livecode

Indeed:

On 2/28/17 11:27 pm, Quentin Long via use-livecode wrote:

On Feb 28, 2017, at 07:14 , Sannyasin Brahmanathaswami via use-livecode 
 wrote:
an image is an image is an image, whether it is png, bitmap, jpg or svg, the fact that is 
is a "widget" is secondary to the use case.

sez Bob Sneidar :
au contraire. Not all images are the same. Support for each kind of image has 
to be implemented. If the industry developed a new kind of image, LC would be 
faced with incorporating that format.

It's true that *under the hood*, LC must handle each distinct 'flavor' of image 
differently. But why should *the user* be concerned about whether a given image 
is vector or raster or RLE or what?

Consider: Numbers can be signed, unsigned, integer, or real, and the engine's internal 
workings must handle each of those 'flavors' of number differently. But in spite of those 
internal differences, *the expression "VarX + VarY" ALWAYS just works, 
REGARDLESS of which flavors of number VarX and VarY happen to be*.


Surely one of the points of LiveCode is to "protect" people who want to 
use a RAD tool from the "fiddly
bits". Ater all if we wanted to concern ourselves with the filldy bits 
we'd all be "out there" learning
C++, C#, Turbo-Whatsit and all the other programming languages that I, 
at least, have, thanks to LiveCode

so successfully managed to avoid for the last 15 years.

Now I am aware that LiveCode is in the process of trying to get itself 
taken seriously by the
hairy-chested programming brigade (real men don't do object-based 
stuff), but if that is at the price
of losing touch with their installed base of "unprogrammers" (and only 
"unprogrammers" in the sense
of being people who aren't high as kites on command-line only 
programming) as well as the very valuable niche they fill between the 
blockly community and the C++ community I belive they are making a big

mistake.

I couldn't tell you about the difference between big-Endian and 
little-Endian programming any more than
I could tell you about Michael Flatly's shoe size (what made me think of 
that example? I wonder). But I have
used LiveCode to produce quite a lot of useful stuff; and with the 
advent of SVG import and a lot of the
other exciting stuff that is on its way in LC 9 I hope to produce a lot 
more.


Nobody bothered to point out that if one opens an SVG image with a 
text-editor one can transfer its code into the prefs palette of the SVG 
widget; and I suspect they didn't because they knew full well that that

seriously sucks as a way to import an image!


As far as *the user* is concerned, a number is a number is a number, and it 
*doesn't matter* whether a number happens to be real or integer or what. Why 
can't an image be an image be an image, *regardless* of whether an image 
happens to be JPG or bitmap or what?




The main stregth of Livecode is that one can go on believing in the 
illusion of the GUI.


Messing around with text-editors and images spoils that completely.

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


Is it just the IDE that crashes, or are standalone at risk?

2017-02-28 Thread Dr. Hawkins via use-livecode
As I'm about to send this out to people, I've had a horrible thought:

Is it just the IDE that crashes on a regular basis, or do standalones crash
just as often?

*shudder*


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: Image Manipulation by javascript/HTML5 using a widget

2017-02-28 Thread hh via use-livecode
Roger E. wrote:
>  Sounds very cool!  Where is the download link?

Use "Sample Stacks" in the LC toolbar (Sort descending by date) or
(slower) http://livecodeshare.runrev.com/ (at top if sorted by 'Newest')

___
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: Image Manipulation by javascript/HTML5 using a widget

2017-02-28 Thread Roger Eller via use-livecode
Sounds very cool!  Where is the download link?


On Tue, Feb 28, 2017 at 4:53 PM, hh via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi all.
>
> There is a new sample stack by Jonathan Lynch called
> "Browser Widget Image Manipulator".
> This name could lead to underestimate a bit this stack. That's why
> I would like to point to it.
>
> This is a real clever solution, short and practicable. It uses the
> image manipulation possibilities of javascript/HTML5 via the browser
> widget. And it is, in LC 8, for shearing (and rotating) also faster
> than my 'direct' imagedata solutions for shear and rotate in LC 6.
>
> It could also be called
>
> Image Manipulation by javascript/HTML5 using a widget
>
> directly from LC, within the stack, nothing extern, no shell scripts.
> It shows a direction of how to access some of the big image and graphics
> libraries of js/HTML5.
>
> Thanks for that great example Jonathan.
>
> ___
> 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


Image Manipulation by javascript/HTML5 using a widget

2017-02-28 Thread hh via use-livecode
Hi all.

There is a new sample stack by Jonathan Lynch called
"Browser Widget Image Manipulator".
This name could lead to underestimate a bit this stack. That's why
I would like to point to it.

This is a real clever solution, short and practicable. It uses the
image manipulation possibilities of javascript/HTML5 via the browser
widget. And it is, in LC 8, for shearing (and rotating) also faster
than my 'direct' imagedata solutions for shear and rotate in LC 6.

It could also be called

Image Manipulation by javascript/HTML5 using a widget

directly from LC, within the stack, nothing extern, no shell scripts.
It shows a direction of how to access some of the big image and graphics
libraries of js/HTML5.

Thanks for that great example Jonathan.

___
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: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-02-28 Thread Bob Sneidar via use-livecode
NVM I'm a moron. It's there but I overlooked it. 

Bob S


> On Feb 28, 2017, at 12:27 , Richard Gaskin via use-livecode 
>  wrote:
> 
> I had written "shaONEdigest" only to draw attention to the "1" ("ONE"), just 
> in case you'd tried "l" ("L") instead.
> 
> It's in there.  Has been for years.  Not sure why you're not seeing it.
> 
> -- 
> Richard Gaskin


___
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: The selectedText for controls without focus

2017-02-28 Thread Bob Sneidar via use-livecode
Richard that script snippet actually helped me solve a different problem. I 
remember now why I was using traversalOn instead of lockText. I have certain 
fields I do not want users to edit, so I set the lockText to true. I then have 
a handler called enableForm that enables every field and button with a name 
that matches a column in a table. But of course I don't want users editing the 
unique ID of a record, even though I want to display it. 

Your snippet solves that problem. I just put it into field scripts I don't want 
users to edit, and use lockText for enabling/disabling fields. Works a peach. 

Bob S


> On Feb 28, 2017, at 08:05 , Richard Gaskin via use-livecode 
>  wrote:
> 
> >> on rawkeydown k
> >>   if k = 99 then
> >>  if the commandKey is "down" then copy
> >>   end if
> >> end rawkeydown


___
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: Dragging widgets

2017-02-28 Thread Quentin Long via use-livecode
> > On Feb 28, 2017, at 07:14 , Sannyasin Brahmanathaswami via use-livecode 
> >  wrote:
> > an image is an image is an image, whether it is png, bitmap, jpg or svg, 
> > the fact that is is a "widget" is secondary to the use case.
> 
> sez Bob Sneidar :
> au contraire. Not all images are the same. Support for each kind of image has 
> to be implemented. If the industry developed a new kind of image, LC would be 
> faced with incorporating that format. 

It's true that *under the hood*, LC must handle each distinct 'flavor' of image 
differently. But why should *the user* be concerned about whether a given image 
is vector or raster or RLE or what?

Consider: Numbers can be signed, unsigned, integer, or real, and the engine's 
internal workings must handle each of those 'flavors' of number differently. 
But in spite of those internal differences, *the expression "VarX + VarY" 
ALWAYS just works, REGARDLESS of which flavors of number VarX and VarY happen 
to be*.

As far as *the user* is concerned, a number is a number is a number, and it 
*doesn't matter* whether a number happens to be real or integer or what. Why 
can't an image be an image be an image, *regardless* of whether an image 
happens to be JPG or bitmap or what?

   
"Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length"

Read the webcomic at [ http://www.atarmslength.net ]!

If you like "At Arm's Length", support it at [ 
http://www.patreon.com/DarkwingDude ].

___
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: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-02-28 Thread Richard Gaskin via use-livecode

Bob Sneidar wrote:

>> On Feb 28, 2017, at 09:33 , Richard Gaskin wrote:
>> Bob Sneidar wrote:
>>
>> > I cannot find a function called sha1digest in the LC library.
>>
>> It's sha-ONE-digest, and it's been around for a while so it should
>> be there.
>>
>
> I search for SHA in the dictionary, nada. I type sha1digest in to a
> script, right click it, nada. I type shaONEdigest in a script, right
> click it, nada.

I had written "shaONEdigest" only to draw attention to the "1" ("ONE"), 
just in case you'd tried "l" ("L") instead.


It's in there.  Has been for years.  Not sure why you're not seeing it.

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


Re: Dragging widgets

2017-02-28 Thread Richmond Mathewson via use-livecode
Thank you for all the suggestions. I wnent for grouping the widget and 
the dragging the group.


I have used this in the most recent version of my Turtle Graphics stack 
that I uploaded about 30 minutes ago:


http://forums.livecode.com/viewtopic.php?f=8=28898

However, the inconsistency between the way one has to handle SVG images and
their import (crude and clunky, monochrome) and the way one imports and
handles all other image formats that LiveCode imports is a problem that 
won't

go away with a few work arounds.

Richmond.

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


Re: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-02-28 Thread Phil Davis via use-livecode
One thing I discovered just now: the items listed in the API tab of the 
Dictionary are not necessarily in alphabetic order by default. I 
discovered it by typing 'sh' into the Filter box and looking at the 
list, top to bottom. Things weren't where I expected them to be! After I 
clicked the 'Name' column header, however, the list was alphabetic by Name.


AND I found sha1Digest in there.

Phil


On 2/28/17 12:00 PM, Mark Wieder via use-livecode wrote:

On 02/28/2017 11:05 AM, Bob Sneidar via use-livecode wrote:

I search for SHA in the dictionary, nada.


It's in the dictionary.
Maybe you have a filter enabled that's masking it?



--
Phil Davis


___
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: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-02-28 Thread Phil Davis via use-livecode

However, this works:

put sha1Digest("dfgdfgdghgdhfgh")

So we know it's there.

FWIW -
Phil Davis


On 2/28/17 11:05 AM, Bob Sneidar via use-livecode wrote:

I search for SHA in the dictionary, nada. I type sha1digest in to a script, 
right click it, nada. I type shaONEdigest in a script, right click it, nada.

Bob S



On Feb 28, 2017, at 09:33 , Richard Gaskin via use-livecode 
 wrote:

Bob Sneidar wrote:


I cannot find a function called sha1digest in the LC library.

It's sha-ONE-digest, and it's been around for a while so it should be there.

--
Richard Gaskin


___
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



--
Phil Davis


___
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: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-02-28 Thread Mark Wieder via use-livecode

On 02/28/2017 11:05 AM, Bob Sneidar via use-livecode wrote:

I search for SHA in the dictionary, nada.


It's in the dictionary.
Maybe you have a filter enabled that's masking it?

--
 Mark Wieder
 ahsoftw...@gmail.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


Re: Dragging widgets

2017-02-28 Thread hh via use-livecode
> Richmond wrote:
> So . . . can any one tell me how to effect a "grab" (which is the same 
> whether with a PNG image, a button or a graphic object) with a widget?

There is one way that is acting similar to a "grab": Put the following
into your card's script. Works for widgets and any 'usual' control that
doesn't block mouseDown.

on mouseDown
   if the short name of the target is "svgTURTLE" then # <-- use any filter
  put the mouseControl into mC; put false into mUp
  put the clickH - item 1 of the loc of mC into dx
  put the clickV - item 2 of the loc of mC into dy
  repeat until the mouse is up
 set loc of mC to (the mouseH-dx,the mouseV-dy)
  end repeat
end if
end mouseDown

Using a "send in time" is not possible for that, because the click is then
passed 'in between' to the control/widget. You sadly have to poll the mouse.


___
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: Calendar widget does not work in LC 9 dp5

2017-02-28 Thread Klaus major-k via use-livecode
Hi Bob,

> Am 28.02.2017 um 20:14 schrieb Bob Sneidar via use-livecode 
> :
> 
> I remember a post about widgets compiled in one version not being compatible 
> with another version. There is a procedure for correcting this, but I do not 
> recall off the top of my head. I think it involves removing the widget, 
> finding the widget file, opening and resaving it in the newer version of LC, 
> and then re-adding it. 

yes, I also remember this "procedere", but will leave these actions to the 
creator of the widget,
which happens to be an employee of Livecode, Elanor Buchanan.
So it is another change in format of widgets?

And yes, the "Widget store" may really need a little clean-up! 8-)

> Bob S
> 
> 
>> On Feb 28, 2017, at 11:09 , Klaus major-k via use-livecode 
>>  wrote:
>> 
>> Hi friends,
>> 
>> yesterday I opened the "Widget store" in LC and installed the "Calendar 
>> widget" 
>> without any errors in LC 9 dp5.
>> 
>> But when I drag a calendar onto my card, there i only an empty rectangle 
>> where the 
>> calendar is supposed to be.
>> 
>> Any hints why this does not work?
>> Or SHOULD it work? If yes what have I done wrong?
>> Again a change in format of widgets?
>> 
>> Should I do a bug report?

Best

Klaus

--
Klaus Major
http://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


Re: Calendar widget does not work in LC 9 dp5

2017-02-28 Thread Bob Sneidar via use-livecode
I remember a post about widgets compiled in one version not being compatible 
with another version. There is a procedure for correcting this, but I do not 
recall off the top of my head. I think it involves removing the widget, finding 
the widget file, opening and resaving it in the newer version of LC, and then 
re-adding it. 

Bob S


> On Feb 28, 2017, at 11:09 , Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> yesterday I opened the "Widget store" in LC and installed the "Calendar 
> widget" 
> without any errors in LC 9 dp5.
> 
> But when I drag a calendar onto my card, there i only an empty rectangle 
> where the 
> calendar is supposed to be.
> 
> Any hints why this does not work?
> Or SHOULD it work? If yes what have I done wrong?
> Again a change in format of widgets?
> 
> Should I do a bug report?
> 
> 
> Best
> 
> Klaus


___
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: Dragging widgets

2017-02-28 Thread Randy Hengst via use-livecode
I’ve not messed with widgets at all… but, with graphics in this situation I 
would either put

on mouseDown
 grab me
end mouseDown

in the group script…

OR put

on mouseDown
 grab the owner of me
end mouseDown

in the script of each object within the group.

be well,
randy

> On Feb 28, 2017, at 12:56 PM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> I tried grouping my SVG widget, and that allows me to drag the group:
> 
> on mouseDown
>   grab me
> end mouseDown
> 
> HOWEVER, when I wish to move the SVG widget itself it vanishs as it moves 
> outwith
> the boundaries of the group.
> 
> NOW: whether I can group my "Turtle" SVG widget and then have my Turtle 
> Graphics code move
> the group and rotate the widget within the group remains to be seen . . .
> 
> Yup, that works!
> 
> Richmond.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

Re: The selectedText for controls without focus

2017-02-28 Thread Bob Sneidar via use-livecode
Oh right you are! The thing that was throwing me is double-clicking does not 
work, but I can triple click and it selects the whole chalupa and I can copy 
it. I can also drag select. This will work. 

Bob S


> On Feb 28, 2017, at 10:52 , J. Landman Gay via use-livecode 
>  wrote:
> 
> On 2/28/17 9:58 AM, Bob Sneidar via use-livecode wrote:
>> I just think that LC should work like virtually every other forms
>> based app I've ever used, where being editable is not a prerequisite
>> for copying text.
> 
> Did you try the field settings I suggested? It does work, it's already 
> built-in:
> 
> autoHilite = true
> traversalOn = true
> locktext = true
> 
> This allows selecting and copying but not editing.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.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


Calendar widget does not work in LC 9 dp5

2017-02-28 Thread Klaus major-k via use-livecode
Hi friends,

yesterday I opened the "Widget store" in LC and installed the "Calendar widget" 
without any errors in LC 9 dp5.

But when I drag a calendar onto my card, there i only an empty rectangle where 
the 
calendar is supposed to be.

Any hints why this does not work?
Or SHOULD it work? If yes what have I done wrong?
Again a change in format of widgets?

Should I do a bug report?


Best

Klaus
--
Klaus Major
http://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


Re: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-02-28 Thread Bob Sneidar via use-livecode
I search for SHA in the dictionary, nada. I type sha1digest in to a script, 
right click it, nada. I type shaONEdigest in a script, right click it, nada. 

Bob S


> On Feb 28, 2017, at 09:33 , Richard Gaskin via use-livecode 
>  wrote:
> 
> Bob Sneidar wrote:
> 
> > I cannot find a function called sha1digest in the LC library.
> 
> It's sha-ONE-digest, and it's been around for a while so it should be there.
> 
> -- 
> Richard Gaskin


___
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: Dragging widgets

2017-02-28 Thread Richmond Mathewson via use-livecode

I tried grouping my SVG widget, and that allows me to drag the group:

on mouseDown
   grab me
end mouseDown

HOWEVER, when I wish to move the SVG widget itself it vanishs as it 
moves outwith

the boundaries of the group.

NOW: whether I can group my "Turtle" SVG widget and then have my Turtle 
Graphics code move

the group and rotate the widget within the group remains to be seen . . .

Yup, that works!

Richmond.

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


Re: The selectedText for controls without focus

2017-02-28 Thread J. Landman Gay via use-livecode

On 2/28/17 9:58 AM, Bob Sneidar via use-livecode wrote:

I just think that LC should work like virtually every other forms
based app I've ever used, where being editable is not a prerequisite
for copying text.


Did you try the field settings I suggested? It does work, it's already 
built-in:


autoHilite = true
traversalOn = true
locktext = true

This allows selecting and copying but not editing.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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


Re: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-02-28 Thread Richard Gaskin via use-livecode

Bob Sneidar wrote:

> I cannot find a function called sha1digest in the LC library.

It's sha-ONE-digest, and it's been around for a while so it should be there.

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


the screenpixelscale on Microsoft SurfaceBook?

2017-02-28 Thread Trevor DeVore via use-livecode
Does anyone have access to a Microsoft SurfaceBook with an Intel HD 520
card at 3000x2000 running the latest version of Windows 10? If so can you
tell me what LiveCode 8 reports for the screenPixelScale property if the
display scaling is set to 200% or 150%? I had a bug report today that makes
me think that the property is returning the wrong value.

If you aren’t familiar with where the display scaling is set see this web
page:

https://www.thurrott.com/windows/windows-10/4597/windows-10-feature-focus-display-scaling

Thanks,

-- 
Trevor DeVore
Outcome & ScreenSteps
www.outcomeapp.io - www.screensteps.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

Re: FTP file upload with non-ascii characters in filename

2017-02-28 Thread Matthias Rebbe via use-livecode

It seems it´s not a problem with non-ascii in general.

If i first put the content of the file, which i want to upload and which 
contains non-ascii chars in its filename, 
into a variable and urlencode the filename of the target file, then i am able 
to upload the file using "liburlftpupload tData, tTargetURL" without problems.

But if i use "liburlftpfileupload tSourceFilePath, tTargetURL” to upload the 
same file using source file path and target URL, then i get an error.
It works with files wihtout non-ascii chars in their filenames.

Is it possible that there is a problem with libURL and non-ascii filenames?

Regards,
Matthias


> Am 28.02.2017 um 17:14 schrieb J. Landman Gay via use-livecode 
> >:
> 
> Maybe textDecode(filename) would work.
> 
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com 
> 
> HyperActive Software   | http://www.hyperactivesw.com 
> 
> 
> 
> 
> On February 28, 2017 10:01:47 AM Matthias Rebbe via use-livecode 
> > wrote:
> 
>> 
>>> Am 28.02.2017 um 16:36 schrieb Bob Sneidar via use-livecode 
>>>  
>>> >> >>:
>>> 
>>> Is the need because the files already exist, or is it because you cannot 
>>> control the source of the files? If possible, the files should probably be 
>>> renamed on the other end to make them "compatible" with all file systems. 
>>> If not, then maybe urlEncode/urlDecode or the ISO functions may work for 
>>> you.
>>> 
>> 
>> Thanks Bob. That´s what i am doing right now.
>> 
>> As i cannot guarantee that my customer won´t use such filenames, i will 
>> implement a function that removes and replaces all characters that are 
>> non-ascii.
>> 
>> Although, i am wondering how ftp clients like transmit are able to handle 
>> such non-ascii characters. Anyway.
>> 
>> Regards,
>> 
>> Matthias
>> 
>>> Bob S
>>> 
>>> 
 On Feb 28, 2017, at 24:23 , Matthias Rebbe via use-livecode 
  
 >> wrote:
 
 Hi,
 
 i need to upload files with non-ascii characters in the filename and this 
 has to work on Win and Mac OS X.
 
 
 
 Regards,
 
 Matthias
 ___
 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 
>>>  
>>> >> >
>> 
>> 
>> 
>> Matthias Rebbe
>> Bramkampsieke 13
>> 32312 Lübbecke
>> Tel  +49 5741 31
>>  +49 160 5504462
>> Fax: +49 5741 310002
>> eMail: matth...@m-r-d.de  
>> >
>> 
>> BR5 Konverter - BR5 -> MP3 > >
>> ___
>> 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:

Re: FTP file upload with non-ascii characters in filename

2017-02-28 Thread J. Landman Gay via use-livecode

Maybe textDecode(filename) would work.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On February 28, 2017 10:01:47 AM Matthias Rebbe via use-livecode 
 wrote:




Am 28.02.2017 um 16:36 schrieb Bob Sneidar via use-livecode 
>:


Is the need because the files already exist, or is it because you cannot 
control the source of the files? If possible, the files should probably be 
renamed on the other end to make them "compatible" with all file systems. 
If not, then maybe urlEncode/urlDecode or the ISO functions may work for you.




Thanks Bob. That´s what i am doing right now.

As i cannot guarantee that my customer won´t use such filenames, i will 
implement a function that removes and replaces all characters that are 
non-ascii.


Although, i am wondering how ftp clients like transmit are able to handle 
such non-ascii characters. Anyway.


Regards,

Matthias


Bob S


On Feb 28, 2017, at 24:23 , Matthias Rebbe via use-livecode 
> wrote:


Hi,

i need to upload files with non-ascii characters in the filename and this 
has to work on Win and Mac OS X.




Regards,

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





Matthias Rebbe
Bramkampsieke 13
32312 Lübbecke
Tel +49 5741 31
+49 160 5504462
Fax: +49 5741 310002
eMail: matth...@m-r-d.de 

BR5 Konverter - BR5 -> MP3 
___
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: Dragging widgets

2017-02-28 Thread Mike Bonner via use-livecode
Sounds like the widget needs to be tweaked to allow for dragging. Its over
my head, if someone with a clue could do the modification and explain it,
I'd really appreciate the lesson.

On Mon, Feb 27, 2017 at 5:36 AM, Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I have a stack containing an image and an SVG widget:
>
> both contain the script:
>
> on mouseDown
>   grab me
> end mouseDown
>
> this means that end-users in standalones are able to drag around the
> image, and when they
> release their mouse button the image stays where they placed it.
>
> This does NOT work with the widget.
>
> Why?
>
> Richmond.
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Dragging widgets

2017-02-28 Thread Paul Hibbert via use-livecode
I would really love to see LC’s image handling improved, not just for SVG, 
although that would be a huge bonus, but for raster images too. I would happily 
put money into crowdfunding for this, provided the promises were kept of course.

Anyway, this is probably not the answer you are looking for, but one workaround 
until this problem is addressed, is to group your widget and then add your grab 
code to the group script.

It’s my understanding that widgets are not high on the priority list for bug 
fixes, so a workaround may be your only option if you need this anytime soon.

Paul

> On Feb 28, 2017, at 4:58 AM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> So . . . can any one tell me how to effect a "grab" (which is the same 
> whether with a PNG image, a button
> or a graphic object) with a widget?

___
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: The selectedText for controls without focus

2017-02-28 Thread Richard Gaskin via use-livecode

Bob Sneidar wrote:

> On Feb 24, 2017, at 22:09 , Richard Gaskin wrote:
>>
>> on rawkeydown k
>>   if k = 99 then
>>  if the commandKey is "down" then copy
>>   end if
>> end rawkeydown
>
> For that matter I could just check the status of the "state" property
> (view | new | edit) to allow/disallow editing. Not saying there are
> not workarounds. I just think that LC should work like virtually
> every other forms based app I've ever used, where being editable is
> not a prerequisite for copying text.

The purpose of that script is not to allow copying, but to disallow 
cutting and pasting.


LC is a programming toolkit, and a very flexible one, with a wider range 
of GUI messages than most other scripting languages. The price of 
flexibility is the need to write code now and then.


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


Re: FTP file upload with non-ascii characters in filename

2017-02-28 Thread Matthias Rebbe via use-livecode

> Am 28.02.2017 um 16:36 schrieb Bob Sneidar via use-livecode 
> >:
> 
> Is the need because the files already exist, or is it because you cannot 
> control the source of the files? If possible, the files should probably be 
> renamed on the other end to make them "compatible" with all file systems. If 
> not, then maybe urlEncode/urlDecode or the ISO functions may work for you. 
> 

Thanks Bob. That´s what i am doing right now.

As i cannot guarantee that my customer won´t use such filenames, i will 
implement a function that removes and replaces all characters that are 
non-ascii.

Although, i am wondering how ftp clients like transmit are able to handle such 
non-ascii characters. Anyway. 

Regards,

Matthias

> Bob S
> 
> 
>> On Feb 28, 2017, at 24:23 , Matthias Rebbe via use-livecode 
>> > wrote:
>> 
>> Hi,
>> 
>> i need to upload files with non-ascii characters in the filename and this 
>> has to work on Win and Mac OS X.
>> 
>> 
>> 
>> Regards,
>> 
>> Matthias 
>> ___
>> 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 
> 



Matthias Rebbe
Bramkampsieke 13
32312 Lübbecke
Tel +49 5741 31
+49 160 5504462
Fax: +49 5741 310002
eMail: matth...@m-r-d.de 

BR5 Konverter - BR5 -> MP3 
___
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: The selectedText for controls without focus

2017-02-28 Thread Bob Sneidar via use-livecode
For that matter I could just check the status of the "state" property (view | 
new | edit) to allow/disallow editing. Not saying there are not workarounds. I 
just think that LC should work like virtually every other forms based app I've 
ever used, where being editable is not a prerequisite for copying text. 

Bob S


> On Feb 24, 2017, at 22:09 , Richard Gaskin via use-livecode 
>  wrote:
> 
> on rawkeydown k
>   if k = 99 then
>  if the commandKey is "down" then copy
>   end if
> end rawkeydown
> 
> -- 
> Richard Gaskin


___
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: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-02-28 Thread Bob Sneidar via use-livecode
err... This does not work. I cannot find a function called sha1digest in the LC 
library. 

Bob S


> On Feb 27, 2017, at 02:49 , Peter TB Brett via use-livecode 
>  wrote:
> 
> Or, in LiveCode:
> 
>function HmacSha1(pKey, pData)
>return sha1digest(pKey & sha1digest(pKey & pData))
>end HmacSha1
> 
> If you are doing this, then the current attack on SHA-1 does not affect the 
> security of your system at all [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


Re: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-02-28 Thread Bob Sneidar via use-livecode
Thanks for that Peter! I've been thinking about a way to encrypt data for 
storage in database systems for things like passwords and server credentials. 
Now to figure out how to decrypt it...

Bob S


> On Feb 27, 2017, at 02:49 , Peter TB Brett via use-livecode 
>  wrote:
> 
>function HmacSha1(pKey, pData)
>return sha1digest(pKey & sha1digest(pKey & pData))
>end HmacSha1


___
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: Script Editor fixable? (was: Configuring a Sublime Text project to notify LiveCode IDE about updates to script only stacks)

2017-02-28 Thread Bob Sneidar via use-livecode
Only in hushed whispers. 

Bob S


> On Feb 27, 2017, at 01:40 , Simon Knight via use-livecode 
>  wrote:
> 
> Thanks for the decode - I did wonder why the forerunner of the CIA was being 
> talked about ;-)
> 
> OSS - Office of Strategic Services
> 
> Simon
> 
> Simon Knight


___
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: Script Editor fixable? (was: Configuring a Sublime Text project to notify LiveCode IDE about updates to script only stacks)

2017-02-28 Thread Bob Sneidar via use-livecode
Well in this context, Sardines is definitely out. 

Bob S


> On Feb 26, 2017, at 05:24 , Simon Knight via use-livecode 
>  wrote:
> 
> I try and follow these threads but please take care with the use of 
> abbreviations / acronyms.  Some I’ve worked out others I’ve no idea : OSS 
> open source S?

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

Re: Dragging widgets

2017-02-28 Thread Bob Sneidar via use-livecode
oh contraire. Not all images are the same. Support for each kind of image has 
to be implemented. If the industry developed a new kind of image, LC would be 
faced with incorporating that format. 

Bob S


> On Feb 28, 2017, at 07:14 , Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> an image is an image is an image, whether it is png, bitmap, jpg or svg, the 
> fact that is is a "widget" is secondary to the use case.
> 
> Enter an enhancement request.


___
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: FTP file upload with non-ascii characters in filename

2017-02-28 Thread Bob Sneidar via use-livecode
Is the need because the files already exist, or is it because you cannot 
control the source of the files? If possible, the files should probably be 
renamed on the other end to make them "compatible" with all file systems. If 
not, then maybe urlEncode/urlDecode or the ISO functions may work for you. 

Bob S


> On Feb 28, 2017, at 24:23 , Matthias Rebbe via use-livecode 
>  wrote:
> 
> Hi,
> 
> i need to upload files with non-ascii characters in the filename and this has 
> to work on Win and Mac OS X.
> 
> 
> 
> Regards,
> 
> Matthias 
> ___
> 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: Dragging widgets

2017-02-28 Thread Sannyasin Brahmanathaswami via use-livecode
You are not wrong. 

SVG *is* an image and ideally, should behave like any graphic object.  

Also, for the sake of LC future: These are the kind of things that make newbies 
"run away" from the product.. because they expect things to work, but they 
don't, the frustration level can be severe an image is an image is an image, 
whether it is png, bitmap, jpg or svg, the fact that is is a "widget" is 
secondary to the use case.

Enter an enhancement request.

 

On 2/28/17, 2:41 AM, "use-livecode on behalf of Graham Samuel via use-livecode" 
 wrote:

I think that some people (like me and very possible Richmond) want to use 
SVG graphics as effortlessly-resized images. In this context, we don’t really 
care to think of them as widgets at all (I hope Richmond agrees!). What we want 
is a class of images which are implemented as SVGs but which function in the 
same way as other images with respect to mouse messages etc.

Does this make sense or have I entirely got the wrong end of the stick 
(wouldn’t surprise me)?



___
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: FTP file upload with non-ascii characters in filename

2017-02-28 Thread Dr. Hawkins via use-livecode
On Tue, Feb 28, 2017 at 4:07 AM, Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Because i do not like spaces in URLs. I know, that i could replace it with
> %20, but i prefer “_” instead.
>

I live by the adage that *any* punctuation in a filename other than space
or underscore is borrowing trouble.


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: Script Editor fixable? (was: Configuring a Sublime Text project to notify LiveCode IDE about updates to script only stacks)

2017-02-28 Thread Sannyasin Brahmanathaswami via use-livecode
Atom is nice, true, but I had a license for ST2 from 2014 and it worked!  plus 
"multiple cursors" and related multi-line handling  is awesome, I not seeing 
that in 
Atom (maybe there is a package for that…)  but, keep us posted on a syntax 
package updates.


On 2/28/17, 4:18 AM, "use-livecode on behalf of Mike Kerner via use-livecode" 
 wrote:

ST3 is "annoy ware" - it will bug you to register and pay, but you don't
have to.
I've been working on the indent rules, and have discovered that Atom is
almost like a prettier version of ST3.  After I have this working in ST3,
I'm going to go back to Atom and fix them over there.  Even the python
script that Trevor wrote to connect ST3-saves to LC seems to be portable.
I haven't had a look at Notepad++ or BBE, yet, to see what can/has to be
done to make all of this work in those environments.



___
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: Script Editor fixable? (was: Configuring a Sublime Text project to notify LiveCode IDE about updates to script only stacks)

2017-02-28 Thread Mike Kerner via use-livecode
ST3 is "annoy ware" - it will bug you to register and pay, but you don't
have to.
I've been working on the indent rules, and have discovered that Atom is
almost like a prettier version of ST3.  After I have this working in ST3,
I'm going to go back to Atom and fix them over there.  Even the python
script that Trevor wrote to connect ST3-saves to LC seems to be portable.
I haven't had a look at Notepad++ or BBE, yet, to see what can/has to be
done to make all of this work in those environments.

On Mon, Feb 27, 2017 at 8:27 PM, Sannyasin Brahmanathaswami via
use-livecode  wrote:

> Thanks for the thorough reply Trevor.
>
> I left Sublime Text when it was "2" years ago…thinking it was an EOL'd
> tool but here you say "Sublime Text 3"
>
> Oh… sweet, my Sublime Text 2 license works!
>
> OK I'll try it..since Atom and Visual Studio still don't quite gel for my
> work flow…
>
>
> On 2/23/17, 4:33 AM, "use-livecode on behalf of Trevor DeVore via
> use-livecode"  use-livecode@lists.runrev.com> wrote:
>
> Overall I feel like Sublime Text reduces friction while I’m working. I
> feel
> like I can work much faster.
>
> ___
> 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
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Dragging widgets

2017-02-28 Thread Richmond Mathewson via use-livecode
I have mentioned several times how I would like SVG import to be as 
simple as PNG import,
and all handling subsequently as simple as other image formats. I 
suspect the price of being able
to rotate SVG images (set the angle) in a way which means they don't go 
"all fuzzy" is that they

cannot be handled like other images.

So . . . can any one tell me how to effect a "grab" (which is the same 
whether with a PNG image, a button

or a graphic object) with a widget?

Very Possible Richmond.

On 2/28/17 2:41 pm, Graham Samuel via use-livecode wrote:

I think that some people (like me and very possible Richmond) want to use SVG 
graphics as effortlessly-resized images. In this context, we don’t really care 
to think of them as widgets at all (I hope Richmond agrees!). What we want is a 
class of images which are implemented as SVGs but which function in the same 
way as other images with respect to mouse messages etc.

Does this make sense or have I entirely got the wrong end of the stick 
(wouldn’t surprise me)?

Looking at that very interesting thread in the forum, I feel less comfortable 
than I ever have done about the development trajectory of LiveCode. I mean, 
extensions (like widgets) are fine, but what is not so fine IMHO is that 
‘legacy’ ways of working should be deprecated when they have served developers 
so well for so long. OTOH I am getting old, so maybe that’s why I feel 
disturbed about it. You may see GOM (Grumpy Old Man) entering into the alphabet 
soup.


Graham


On 28 Feb 2017, at 04:10, hh via use-livecode  
wrote:

This is not a bug because a widget is not an ordinary control:
Nearly all user interaction has to be allowed and scripted.
I implemented a kind of "grab" in some of my LC8-widget examples.

You can for example also Not focus on a widget from LC Script (that's
why the browser widget is 'robust' against commands like "click").

To the current handling of elementary mouse messages by widgets/LCB
see for example here, in the LC Builder forum

http://forums.livecode.com/viewtopic.php?f=93=24369=mousedown

I don't know what's updated since then because the widget format changed
again with LC 9, so I wait first for a stable release before going on.


___
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: Dragging widgets

2017-02-28 Thread Graham Samuel via use-livecode
I think that some people (like me and very possible Richmond) want to use SVG 
graphics as effortlessly-resized images. In this context, we don’t really care 
to think of them as widgets at all (I hope Richmond agrees!). What we want is a 
class of images which are implemented as SVGs but which function in the same 
way as other images with respect to mouse messages etc.

Does this make sense or have I entirely got the wrong end of the stick 
(wouldn’t surprise me)?

Looking at that very interesting thread in the forum, I feel less comfortable 
than I ever have done about the development trajectory of LiveCode. I mean, 
extensions (like widgets) are fine, but what is not so fine IMHO is that 
‘legacy’ ways of working should be deprecated when they have served developers 
so well for so long. OTOH I am getting old, so maybe that’s why I feel 
disturbed about it. You may see GOM (Grumpy Old Man) entering into the alphabet 
soup.


Graham

> On 28 Feb 2017, at 04:10, hh via use-livecode  
> wrote:
> 
> This is not a bug because a widget is not an ordinary control:
> Nearly all user interaction has to be allowed and scripted.
> I implemented a kind of "grab" in some of my LC8-widget examples.
> 
> You can for example also Not focus on a widget from LC Script (that's
> why the browser widget is 'robust' against commands like "click"). 
> 
> To the current handling of elementary mouse messages by widgets/LCB
> see for example here, in the LC Builder forum
> 
> http://forums.livecode.com/viewtopic.php?f=93=24369=mousedown
> 
> I don't know what's updated since then because the widget format changed
> again with LC 9, so I wait first for a stable release before going on.
> 
> 
> ___
> 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: FTP file upload with non-ascii characters in filename

2017-02-28 Thread Matthias Rebbe via use-livecode
Thanks Simon, but this does not fix the problem.
> Am 28.02.2017 um 10:59 schrieb Simon Knight via use-livecode 
> >:
> 
> Hi
> 
> First I am not sure why your code replaces spaces with underscores in tFile.
> 
Because i do not like spaces in URLs. I know, that i could replace it with %20, 
but i prefer “_” instead.

Regards,
Matthias

> Next I have an application that displays lists of filenames in a folder.  The 
> user clicks on a filename and it is displayed in a browser object on the 
> card.  In order to get this to work I had to convert the displayed and 
> selected file name to one that the OS actually uses at a lower level by using 
> these lines of code:
> 
> put GetSourcefolder() & "/" & tFilename into tMyFilePath
> 
> replace " " with "%20" in tMyFilePath
> 
> replace "|" with "%7C" in tMyFilePath
> 
> 
> I make no claims that the problem is restricted to these two characters but 
> this might be a starting point.  Also different OS’s have different rules on 
> the characters used in file names, so you need to account for the OS the 
> server is running and google for character substitutions used in file names.
> 
> Skids
> 
> 
>> On 28 Feb 2017, at 08:23, Matthias Rebbe via use-livecode 
>> > wrote:
>> 
>> Hi,
>> 
>> i need to upload files with non-ascii characters in the filename and this 
>> has to work on Win and Mac OS X.
>> 
>> My script works fine when uploading files with ascii filenames, but as soon 
>> as i select a file with non-ascii characters in its filename i get an error
>> 
>> What do i have to do with the filenames/filepath (target and source) before 
>> doing the upload?
>> 
>> My script looks like this:
>> 
>> answer tFile "select file..."
>> if it is empty then exit to top
>> put it into tFilePath
>> replace backslash with slash in tFilePath
>> set the itemdelimiter to slash
>> put item -1 of tFilePath into tFile
>> replace " " with "_" in tFile
>> put "ftp://username:passw...@ftpserver.com/ 
>>  
>> > >"& tFile into tURL
>> liburlftpupload tFilePath,tURL   
>> 
>> I´ve tried to urlencode tDatei.
>> 
>> 
>> I am pretty sure there is something more.
>> 
>> Regards,
>> 
>> Matthias 
>> ___
>> 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 
> 


Matthias Rebbe
Bramkampsieke 13
32312 Lübbecke
Tel +49 5741 31
+49 160 5504462
Fax: +49 5741 310002
eMail: matth...@m-r-d.de 

BR5 Konverter - BR5 -> MP3 
___
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: Where did the cErrorsList go?

2017-02-28 Thread Mike Bonner via use-livecode
I found it by digging through the scripts of ide stacks. (I first looked
for stacks with "error" in the name, but ended up finding it in the
revidelibrary stack.  There is a function "revIDELookupError()" that had
the needed code.)

On Tue, Feb 28, 2017 at 4:20 AM, panagiotis merakos via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks for you comment Ben. BTW there is a dictionary entry for the
> "scriptExecutionErrors" in LC 9 DP-5. We probably have to backport it into
> LC 8.1.x.
>
> On Tue, Feb 28, 2017 at 11:08 AM, Ben Rubinstein via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Thanks for pointing that out Panos, I've added the additional issues in
> > the dictionary to that report.
> >
> > Ben
> >
> >
> > On 28/02/2017 11:02, panagiotis merakos via use-livecode wrote:
> >
> >> Hi all,
> >>
> >> There is a bug report about this issue:
> >>
> >> http://quality.livecode.com/show_bug.cgi?id=19171
> >>
> >> Best,
> >> Panos
> >> --
> >>
> >> On Tue, Feb 28, 2017 at 10:18 AM, Ben Rubinstein via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>
> >> Thanks Thierry and Mike! That's it. And better than the old approach.
> >>>
> >>> How do you know about this? AFAICT it isn't listed in the dictionary
> >>> anywhere (whereas the old approach is still recommended).
> >>>
> >>> I'll report a docs snag.
> >>>
> >>> thanks,
> >>>
> >>> Ben
> >>>
> >>>
> >>> On 27/02/2017 17:36, Mike Bonner via use-livecode wrote:
> >>>
> >>> I'm not sure if its the same thing, but you might try "put line xx of
> the
>  scriptexecutionerrors"
> 
>  On Mon, Feb 27, 2017 at 9:11 AM, Ben Rubinstein via use-livecode <
>  use-livecode@lists.runrev.com> wrote:
> 
>  For years I've been accustomed to interpreting the error reported in a
> 
> > 'catch' statement using
> >
> > put line xx of the cErrorsList of card 1 of stack "revErrorDisplay"
> >
> >
> > In 8.1.3, AFAICT, the stack "revErrorDisplay" has no such property.
> >
> > The dictionary still recommends this technique.
> >
> > Was there a flaw in the building process, or has there been a change
> > (not
> > yet reflected in the documentation)?
> >
> > TIA,
> >
> > Ben
> >
> 
> >
> > ___
> > 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: Where did the cErrorsList go?

2017-02-28 Thread panagiotis merakos via use-livecode
Thanks for you comment Ben. BTW there is a dictionary entry for the
"scriptExecutionErrors" in LC 9 DP-5. We probably have to backport it into
LC 8.1.x.

On Tue, Feb 28, 2017 at 11:08 AM, Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks for pointing that out Panos, I've added the additional issues in
> the dictionary to that report.
>
> Ben
>
>
> On 28/02/2017 11:02, panagiotis merakos via use-livecode wrote:
>
>> Hi all,
>>
>> There is a bug report about this issue:
>>
>> http://quality.livecode.com/show_bug.cgi?id=19171
>>
>> Best,
>> Panos
>> --
>>
>> On Tue, Feb 28, 2017 at 10:18 AM, Ben Rubinstein via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>> Thanks Thierry and Mike! That's it. And better than the old approach.
>>>
>>> How do you know about this? AFAICT it isn't listed in the dictionary
>>> anywhere (whereas the old approach is still recommended).
>>>
>>> I'll report a docs snag.
>>>
>>> thanks,
>>>
>>> Ben
>>>
>>>
>>> On 27/02/2017 17:36, Mike Bonner via use-livecode wrote:
>>>
>>> I'm not sure if its the same thing, but you might try "put line xx of the
 scriptexecutionerrors"

 On Mon, Feb 27, 2017 at 9:11 AM, Ben Rubinstein via use-livecode <
 use-livecode@lists.runrev.com> wrote:

 For years I've been accustomed to interpreting the error reported in a

> 'catch' statement using
>
> put line xx of the cErrorsList of card 1 of stack "revErrorDisplay"
>
>
> In 8.1.3, AFAICT, the stack "revErrorDisplay" has no such property.
>
> The dictionary still recommends this technique.
>
> Was there a flaw in the building process, or has there been a change
> (not
> yet reflected in the documentation)?
>
> TIA,
>
> Ben
>

>
> ___
> 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: Where did the cErrorsList go?

2017-02-28 Thread Ben Rubinstein via use-livecode
Thanks for pointing that out Panos, I've added the additional issues in the 
dictionary to that report.


Ben

On 28/02/2017 11:02, panagiotis merakos via use-livecode wrote:

Hi all,

There is a bug report about this issue:

http://quality.livecode.com/show_bug.cgi?id=19171

Best,
Panos
--

On Tue, Feb 28, 2017 at 10:18 AM, Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:


Thanks Thierry and Mike! That's it. And better than the old approach.

How do you know about this? AFAICT it isn't listed in the dictionary
anywhere (whereas the old approach is still recommended).

I'll report a docs snag.

thanks,

Ben


On 27/02/2017 17:36, Mike Bonner via use-livecode wrote:


I'm not sure if its the same thing, but you might try "put line xx of the
scriptexecutionerrors"

On Mon, Feb 27, 2017 at 9:11 AM, Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:

For years I've been accustomed to interpreting the error reported in a

'catch' statement using

put line xx of the cErrorsList of card 1 of stack "revErrorDisplay"


In 8.1.3, AFAICT, the stack "revErrorDisplay" has no such property.

The dictionary still recommends this technique.

Was there a flaw in the building process, or has there been a change (not
yet reflected in the documentation)?

TIA,

Ben



___
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: Where did the cErrorsList go?

2017-02-28 Thread panagiotis merakos via use-livecode
Hi all,

There is a bug report about this issue:

http://quality.livecode.com/show_bug.cgi?id=19171

Best,
Panos
--

On Tue, Feb 28, 2017 at 10:18 AM, Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks Thierry and Mike! That's it. And better than the old approach.
>
> How do you know about this? AFAICT it isn't listed in the dictionary
> anywhere (whereas the old approach is still recommended).
>
> I'll report a docs snag.
>
> thanks,
>
> Ben
>
>
> On 27/02/2017 17:36, Mike Bonner via use-livecode wrote:
>
>> I'm not sure if its the same thing, but you might try "put line xx of the
>> scriptexecutionerrors"
>>
>> On Mon, Feb 27, 2017 at 9:11 AM, Ben Rubinstein via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>> For years I've been accustomed to interpreting the error reported in a
>>> 'catch' statement using
>>>
>>> put line xx of the cErrorsList of card 1 of stack "revErrorDisplay"
>>>
>>>
>>> In 8.1.3, AFAICT, the stack "revErrorDisplay" has no such property.
>>>
>>> The dictionary still recommends this technique.
>>>
>>> Was there a flaw in the building process, or has there been a change (not
>>> yet reflected in the documentation)?
>>>
>>> TIA,
>>>
>>> Ben
>>>
>>> ___
>>> 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: Where did the cErrorsList go?

2017-02-28 Thread Ben Rubinstein via use-livecode

Thanks Thierry and Mike! That's it. And better than the old approach.

How do you know about this? AFAICT it isn't listed in the dictionary anywhere 
(whereas the old approach is still recommended).


I'll report a docs snag.

thanks,

Ben

On 27/02/2017 17:36, Mike Bonner via use-livecode wrote:

I'm not sure if its the same thing, but you might try "put line xx of the
scriptexecutionerrors"

On Mon, Feb 27, 2017 at 9:11 AM, Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:


For years I've been accustomed to interpreting the error reported in a
'catch' statement using

put line xx of the cErrorsList of card 1 of stack "revErrorDisplay"


In 8.1.3, AFAICT, the stack "revErrorDisplay" has no such property.

The dictionary still recommends this technique.

Was there a flaw in the building process, or has there been a change (not
yet reflected in the documentation)?

TIA,

Ben

___
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: FTP file upload with non-ascii characters in filename

2017-02-28 Thread Simon Knight via use-livecode
Hi

First I am not sure why your code replaces spaces with underscores in tFile.

Next I have an application that displays lists of filenames in a folder.  The 
user clicks on a filename and it is displayed in a browser object on the card.  
In order to get this to work I had to convert the displayed and selected file 
name to one that the OS actually uses at a lower level by using these lines of 
code:

put GetSourcefolder() & "/" & tFilename into tMyFilePath

replace " " with "%20" in tMyFilePath

replace "|" with "%7C" in tMyFilePath


I make no claims that the problem is restricted to these two characters but 
this might be a starting point.  Also different OS’s have different rules on 
the characters used in file names, so you need to account for the OS the server 
is running and google for character substitutions used in file names.

Skids


> On 28 Feb 2017, at 08:23, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Hi,
> 
> i need to upload files with non-ascii characters in the filename and this has 
> to work on Win and Mac OS X.
> 
> My script works fine when uploading files with ascii filenames, but as soon 
> as i select a file with non-ascii characters in its filename i get an error
> 
> What do i have to do with the filenames/filepath (target and source) before 
> doing the upload?
> 
> My script looks like this:
> 
> answer tFile "select file..."
> if it is empty then exit to top
> put it into tFilePath
> replace backslash with slash in tFilePath
> set the itemdelimiter to slash
> put item -1 of tFilePath into tFile
> replace " " with "_" in tFile
> put "ftp://username:passw...@ftpserver.com/ 
> "& tFile into tURL
> liburlftpupload tFilePath,tURL
> 
> I´ve tried to urlencode tDatei.
> 
> 
> I am pretty sure there is something more.
> 
> Regards,
> 
> Matthias 
> ___
> 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

FTP file upload with non-ascii characters in filename

2017-02-28 Thread Matthias Rebbe via use-livecode
Hi,

i need to upload files with non-ascii characters in the filename and this has 
to work on Win and Mac OS X.
 
My script works fine when uploading files with ascii filenames, but as soon as 
i select a file with non-ascii characters in its filename i get an error

What do i have to do with the filenames/filepath (target and source) before 
doing the upload?

My script looks like this:

answer tFile "select file..."
if it is empty then exit to top
put it into tFilePath
replace backslash with slash in tFilePath
set the itemdelimiter to slash
put item -1 of tFilePath into tFile
replace " " with "_" in tFile
put "ftp://username:passw...@ftpserver.com/ 
"& tFile into tURL
liburlftpupload tFilePath,tURL  

I´ve tried to urlencode tDatei.


I am pretty sure there is something more.

Regards,

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