Re: ANN: Script Editor Refactoring Support

2019-03-20 Thread Mark Wieder via use-livecode

On 3/20/19 2:53 PM, Mark Wieder via use-livecode wrote:


Here's a scenario that will probably break:
(save your work first)


Heh. In trying to fix that, I broke it more, so I just uploaded version 
2. Fun stuff, eh?


--
 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: A Question about Ask File

2019-03-20 Thread Roger Guay via use-livecode
Yes, you are so right!  I found my problem: Some of my filenames had slashes in 
them which created confusion for the filePath. Once I got rid of the slashes, 
everything worked as one would expect. BTW, it’s not really my fault . . . I 
didn’t put the slashes in the names . . .  my customer did. Swine customer!!

Roger

> On Mar 20, 2019, at 7:22 PM, Brian Milby via use-livecode 
>  wrote:
> 
> You are providing a path and a file name.  They are just not provided as 
> separate parameters.  The suggested file name must be placed at the end of 
> the path location.
> On Mar 20, 2019, 9:42 PM -0400, Roger Guay via use-livecode 
> , wrote:
>> Thank you, Herman, but by providing this solution, are you saying that one 
>> cannot specify BOTH a defaultName and a defaultFilePathin a standard ask 
>> file prompt???
>> 
>> Roger
>> 
>>> On Mar 20, 2019, at 2:21 PM, hh via use-livecode 
>>>  wrote:
>>> 
>>> Create a *full* filePath. For example:
>>> 
>>> ask file "Save as:" with imagePath("export",".png")
>>> 
>>> function imagePath f,x
>>> put the effective filename of this stack into p
>>> set itemdel to slash
>>> put 0 into z
>>> put f into last item of p
>>> repeat while there is a file p
>>> add 1 to z
>>> put f into last item of p
>>> end repeat
>>> return p
>>> end imagePath
>>> 
 Roger G. wrote:
 Now how do I also add a default name to the mix?
 
> Alex T. wrote:
> ask file prompt [with *defaultFilePath*] [with filter *types*] [as sheet]
> 
>> Roger G. wrote:
>> In the Ask File prompt, is there a way to make the “Where” field to
>> always default to a specific folder?
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-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: A Question about Ask File

2019-03-20 Thread Brian Milby via use-livecode
You are providing a path and a file name.  They are just not provided as 
separate parameters.  The suggested file name must be placed at the end of the 
path location.
On Mar 20, 2019, 9:42 PM -0400, Roger Guay via use-livecode 
, wrote:
> Thank you, Herman, but by providing this solution, are you saying that one 
> cannot specify BOTH a defaultName and a defaultFilePathin a standard ask file 
> prompt???
>
> Roger
>
> > On Mar 20, 2019, at 2:21 PM, hh via use-livecode 
> >  wrote:
> >
> > Create a *full* filePath. For example:
> >
> > ask file "Save as:" with imagePath("export",".png")
> >
> > function imagePath f,x
> > put the effective filename of this stack into p
> > set itemdel to slash
> > put 0 into z
> > put f into last item of p
> > repeat while there is a file p
> > add 1 to z
> > put f into last item of p
> > end repeat
> > return p
> > end imagePath
> >
> > > Roger G. wrote:
> > > Now how do I also add a default name to the mix?
> > >
> > > > Alex T. wrote:
> > > > ask file prompt [with *defaultFilePath*] [with filter *types*] [as 
> > > > sheet]
> > > >
> > > > > Roger G. wrote:
> > > > > In the Ask File prompt, is there a way to make the “Where” field to
> > > > > always default to a specific folder?
> >
> >
> >
> > ___
> > use-livecode mailing list
> > use-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: A Question about Ask File

2019-03-20 Thread Roger Guay via use-livecode
Thank you, Herman, but by providing this solution, are you saying that one 
cannot specify BOTH a defaultName and a defaultFilePathin a standard ask file 
prompt???

Roger

> On Mar 20, 2019, at 2:21 PM, hh via use-livecode 
>  wrote:
> 
> Create a *full* filePath. For example:
> 
> ask file "Save as:" with imagePath("export",".png")
> 
> function imagePath f,x
>  put the effective filename of this stack into p
>  set itemdel to slash
>  put 0 into z
>  put f into last item of p
>  repeat while there is a file p
>add 1 to z
>put f into last item of p
>  end repeat
>  return p
> end imagePath
> 
>> Roger G. wrote:
>> Now how do I also add a default name to the mix?
>> 
>>> Alex T. wrote:
>>> ask file prompt [with *defaultFilePath*] [with filter *types*] [as sheet]
>>> 
 Roger G. wrote:
 In the Ask File prompt, is there a way to make the “Where” field to
 always default to a specific folder?
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: Script Editor Refactoring Support

2019-03-20 Thread Geoff Canyon via use-livecode
This sounds awesome!

gc

> On Mar 20, 2019, at 10:45 AM, Mark Wieder via use-livecode 
>  wrote:
> 
> Announcing (60 days until the San Jose conference):
> 
> 


___
use-livecode mailing list
use-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: Script Editor Refactoring Support

2019-03-20 Thread Bob Sneidar via use-livecode
And I wasn't there??!? Dam me! Dam me to heck!!!

Bob S


> On Mar 20, 2019, at 12:25 , Richard Gaskin via use-livecode 
>  wrote:
> 
> Mark demo'd this at our recent LiveCode User Group in Pasadena.  It's cool.  
> You will want to download it.
> 
> -- 
> Richard Gaskin
> Fourth World Systems


___
use-livecode mailing list
use-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: Script Editor Refactoring Support

2019-03-20 Thread Bob Sneidar via use-livecode
You are the freaking bomb! 

Bob S


> On Mar 20, 2019, at 10:45 , Mark Wieder via use-livecode 
>  wrote:
> 
> Announcing (60 days until the San Jose conference):
> 
> Script Editor Refactor Plugin
>Brings refactoring support to the LiveCode Script Editor.
>Place the plugin into your user Plugins folder.
>After launching the script editor there will be a new Refactoring menuItem 
> in the Edit menu.
>The Refactoring menuItem will also appear in the contextual menu of the 
> Script Editor.
>The Refactoring menu is inspired by the JetBrains refactoring support in 
> RubyMine, etc.

___
use-livecode mailing list
use-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: Browser widget and downloading of files

2019-03-20 Thread Tore Nilsen via use-livecode
Thank you very much, this did the trick!

Best regards 
Tore

> 20. mar. 2019 kl. 22:09 skrev hh via use-livecode 
> :
> 
> on browserUnhandledLoadRequest pURl
>  -- do your thing with pURL, for example:
>  -- use libURL for showing progress
>  put url(pURL) into 
> end browserUnhandledLoadRequest

___
use-livecode mailing list
use-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: add file extension share for iOS app

2019-03-20 Thread Matthias Rebbe via use-livecode
I´ve created a more detailed lesson about the needed steps here:

http://lessons.livecode.com/m/4069/l/1069016-associating-a-file-type-file-extension-with-an-lc-ios-app

Regards,

Matthias

> Am 20.03.2019 um 01:02 schrieb Matthias Rebbe via use-livecode 
> :
> 
> I´ve managed to get it now working.
> 
> So i am now able to open an email attachment on my iOS device in my Livecode 
> App.
> 
> I´ve created a little tool, which makes it a bit easier to create/modify the 
> additional needed lines for the plist file.
> 
> I´ve uploaded it to Livecode Share and it´s called IOS-Plist-AdditionalData.
> 
> You just have to enter the needed information and the tool creates the 
> additional lines which then have to be added to the "original" info.plist.
> 
> Maybe this is of some use for the one or the other. 
> 
> 
> Regards,
> 
> Matthias
> 
> Matthias Rebbe
> 
>> Am 18.03.2019 um 21:37 schrieb Matthias Rebbe via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> Tried now yesterday and today eving, but without success.
>> 
>> I´ve created the ios standalone. copied the info.plist to the desktop and 
>> inserted this
>> 
> 
> ___
> use-livecode mailing list
> use-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: Script Editor Refactoring Support

2019-03-20 Thread Mark Wieder via use-livecode

On 3/20/19 12:04 PM, Kaveh Bazargan via use-livecode wrote:


Now to try and break them. :-)


Hmmmph... always some clown who wants to try to actually *use* stuff.

Here's a scenario that will probably break:
(save your work first)

If you have a handler in a script and a handler with the same name and 
the same parameter list in a different script in the same stack;

and if you change the signature of one of the handlers...

the calls to the handlers will be modified to match, but I *think* the 
other handler definition won't get a changed set of parameters.


Of course, if you have identical handlers in multiple scripts, it would 
be a better idea to move them up the food chain and just have one 
instance, but ymmv.


--
 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: ANN: Script Editor Refactoring Support

2019-03-20 Thread Mark Wieder via use-livecode

On 3/20/19 1:52 PM, J. Landman Gay via use-livecode wrote:

Wow. The whole thing sounds really cool but this "go back" bit is 
something I've wanted forever. You mind reader, you.




Heh. I've needed to move that over from the glx2 editor for a long time 
as well. But I specifically added it with you in mind. :)


--
 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: ANN: Script Editor Refactoring Support

2019-03-20 Thread hh via use-livecode
So useful and so clever made ... 5/5 stars!

> Mark Wieder wrote:
> Uploaded to LiveCodeShare:
> http://livecodeshare.runrev.com/stack/934/revRefactor

___
use-livecode mailing list
use-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: A Question about Ask File

2019-03-20 Thread hh via use-livecode
Create a *full* filePath. For example:

ask file "Save as:" with imagePath("export",".png")

function imagePath f,x
  put the effective filename of this stack into p
  set itemdel to slash
  put 0 into z
  put f into last item of p
  repeat while there is a file p
add 1 to z
put f into last item of p
  end repeat
  return p
end imagePath

> Roger G. wrote:
> Now how do I also add a default name to the mix?
> 
> > Alex T. wrote:
> > ask file prompt [with *defaultFilePath*] [with filter *types*] [as sheet]
> > 
> >> Roger G. wrote:
> >> In the Ask File prompt, is there a way to make the “Where” field to
> >> always default to a specific folder?



___
use-livecode mailing list
use-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: Browser widget and downloading of files

2019-03-20 Thread hh via use-livecode
> Tore N. wrote:
> Are there any ways to start a download of a file via a link in
> the browser widget? It works fine in any other browser ...

on browserUnhandledLoadRequest pURl
  -- do your thing with pURL, for example:
  -- use libURL for showing progress
  put url(pURL) into 
end browserUnhandledLoadRequest

___
use-livecode mailing list
use-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: Script Editor Refactoring Support

2019-03-20 Thread J. Landman Gay via use-livecode

On 3/20/19 12:45 PM, Mark Wieder via use-livecode wrote:

Go Back (contextual menu only)
     Not strictly part of a refactoring process, but since I was 
reworking the Edit menu anyway...

     After a "Go to definition" call, this gets you back to where you were.


Wow. The whole thing sounds really cool but this "go back" bit is 
something I've wanted forever. You mind reader, you.


--
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: A Question about Ask File

2019-03-20 Thread Roger Guay via use-livecode
Ok, that’s very reasonable and works. Now how do I also add a default name to 
the mix? If I append a defaultFileName to the defaultFilePath, it no longer 
sticks to the defaultFilePath.



Roger


> On Mar 20, 2019, at 9:25 AM, Alex Tweedly via use-livecode 
>  wrote:
> 
> 
> ask file prompt [with *defaultFilePath*] [with filter *types*] [as sheet]
> 
> 
> On 20/03/2019 16:13, Roger Guay via use-livecode wrote:
>> This should be easy, but I’m having difficulty with this:
>> 
>> In the Ask File prompt, is there a way to make the “Where” field to always 
>> default to a specific folder?
>> 
>> 
>> Thanks,
>> 
>> Roger
>> ___

___
use-livecode mailing list
use-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: localization/localisation/ of LC Community version's GUI?

2019-03-20 Thread Nicolas Cueto via use-livecode
The replies so far---for which, many thanks---are also off topic.

I want to change the language of LC "itself", i.e., the development
environment.

Its menus, such as for opening/ saving stacks, or for creating/ copying/
pasting/ deleting objects.

Its windows, such as properties, the toolbar, the script editor.

But NO localization of the script language, NOR the LC dictionary.

And NO localization of stacks themselves.

I am not asking for help with multi-lingual software development.

LC stacks, LC Windows standalones, and LC Android apps, I've created in the
past, with Japanese-only language support. And most of those stacks and
standalones were made even before LC went completely Unicode.

Hope my wording was clear enough this time.

Thank you as always.
--
Nicolas Cueto



On Tue, Mar 19, 2019, 09:19 Nicolas Cueto  wrote:

> In short, if my aim is to translate LC Community's GUI (for youngish
> Japanese students learning to program) , where might I start?
>
> Now, if something terrifyingly named "GitHub" should be part of the
> answer, all I know about that is it's a discussion start-off point for LC
> "gurus", plus a cue for me to leave the room.
>
> And, of course the Forums got a thorough going-thru. Couldn't find much,
> tho. One thing was, to emphasize that I am NOT after localization of the
> LC script language. As confusingly happened to Forum thread "Multi-Lingual
> LiveCode?
> "
> (Craig Newman, April 2014). Though that thread was nonetheless useful,
> especially for its introduction of a multi-lingual translation project for
> Telegram .
>
> Also on the Forum, though unrelated to the GUI, was Forum topic "Android
> app localization
> "
> (Max V, May 2013). Especially when the ever-helpful Brian Milby stepped
>  in, advising to (or, at least, I think he was?) modify LC stack's
> themselves (e.g., revSaveAsStandalone, revCommonLibrary). BUT that's not
> what I'm after? or is it? I don't know. Like I say, all very new.
>
> In either case, GitHub familiarization or LC stack modifications,
> please!!! a lot of hand-holding and stating the obvious.
>
> As always, thank you for any advise---perhaps including a mnemonic for
> "advise [v.?] vs. advice [n.?]".
> --
> Nicolas Cueto
>
>
>
>
___
use-livecode mailing list
use-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: Script Editor Refactoring Support

2019-03-20 Thread Matthias Rebbe via use-livecode


> Am 20.03.2019 um 20:25 schrieb Richard Gaskin via use-livecode 
> :
> Mark demo'd this at our recent LiveCode User Group in Pasadena.  It's cool.  
> You will want to download it.

Not just to download, even to use it. ;)


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


Re: ANN: Script Editor Refactoring Support

2019-03-20 Thread Richard Gaskin via use-livecode

Mark Wieder wrote:

> Script Editor Refactor Plugin
>  Brings refactoring support to the LiveCode Script Editor.
>  Place the plugin into your user Plugins folder.
>  After launching the script editor there will be a new Refactoring
>  menuItem in the Edit menu.
>  The Refactoring menuItem will also appear in the contextual menu
>  of the Script Editor.
>  The Refactoring menu is inspired by the JetBrains refactoring
>  support in RubyMine, etc.
...
> Uploaded to LiveCodeShare:
> http://livecodeshare.runrev.com/stack/934/revRefactor


Mark demo'd this at our recent LiveCode User Group in Pasadena.  It's 
cool.  You will want to download it.


--
 Richard Gaskin
 Fourth World Systems


___
use-livecode mailing list
use-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: Script Editor Refactoring Support

2019-03-20 Thread Kaveh Bazargan via use-livecode
I'm beginning to like you Mark. ;-)

Extremely useful set of tools. Now to try and break them. :-)

On Wed, 20 Mar 2019 at 18:50, JJS via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Just reading the possibilities looks awesome already. Have to check it out.
>
> Op 20-3-2019 om 19:45 schreef Jacques Hausser via use-livecode:
> > I had a dream…now it’s real ! Thanks !
> >
> > Jacques
> >
> >> Le 20 mars 2019 à 19:40, Mark Wieder via use-livecode <
> use-livecode@lists.runrev.com> a écrit :
> >>
> >> On 3/20/19 11:31 AM, Matthias Rebbe via use-livecode wrote:
> >>> Thanks for this great enhancement.
> >>> The rename handler is something i would have needed yesterday... Took
> me some time, but with your enhancement i would have been just some clicks
> and some typing.
> >> Ah... sorry about that... I was going to release it yesterday, but the
> "Go Back" feature needed a bit more tweaking.
> >>
> >> --
> >> 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
> > **
> > Prof. Jacques Hausser
> > Department of Ecology and Evolution
> > Biophore / Sorge
> > University of Lausanne
> > CH 1015 Lausanne
> > please use my private address:
> > 6 route de Burtigny
> > CH-1269 Bassins
> > tel:  ++ 41 22 366 19 40
> > mobile:   ++ 41 79 757 05 24
> > E-Mail:   jacques.haus...@unil.ch
> > ***
> >
> > ___
> > use-livecode mailing list
> > use-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



-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
use-livecode mailing list
use-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: Script Editor Refactoring Support

2019-03-20 Thread JJS via use-livecode

Just reading the possibilities looks awesome already. Have to check it out.

Op 20-3-2019 om 19:45 schreef Jacques Hausser via use-livecode:

I had a dream…now it’s real ! Thanks !

Jacques


Le 20 mars 2019 à 19:40, Mark Wieder via use-livecode 
 a écrit :

On 3/20/19 11:31 AM, Matthias Rebbe via use-livecode wrote:

Thanks for this great enhancement.
The rename handler is something i would have needed yesterday... Took me some 
time, but with your enhancement i would have been just some clicks and some 
typing.

Ah... sorry about that... I was going to release it yesterday, but the "Go 
Back" feature needed a bit more tweaking.

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

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***

___
use-livecode mailing list
use-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: Script Editor Refactoring Support

2019-03-20 Thread Jacques Hausser via use-livecode
I had a dream…now it’s real ! Thanks !

Jacques

> Le 20 mars 2019 à 19:40, Mark Wieder via use-livecode 
>  a écrit :
> 
> On 3/20/19 11:31 AM, Matthias Rebbe via use-livecode wrote:
>> Thanks for this great enhancement.
>> The rename handler is something i would have needed yesterday... Took me 
>> some time, but with your enhancement i would have been just some clicks and 
>> some typing.
> 
> Ah... sorry about that... I was going to release it yesterday, but the "Go 
> Back" feature needed a bit more tweaking.
> 
> -- 
> 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

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***

___
use-livecode mailing list
use-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: Script Editor Refactoring Support

2019-03-20 Thread Mark Wieder via use-livecode

On 3/20/19 11:31 AM, Matthias Rebbe via use-livecode wrote:

Thanks for this great enhancement.
The rename handler is something i would have needed yesterday... Took me some 
time, but with your enhancement i would have been just some clicks and some 
typing.


Ah... sorry about that... I was going to release it yesterday, but the 
"Go Back" feature needed a bit more tweaking.


--
 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: ANN: Script Editor Refactoring Support

2019-03-20 Thread Matthias Rebbe via use-livecode
Thanks for this great enhancement.
The rename handler is something i would have needed yesterday... Took me some 
time, but with your enhancement i would have been just some clicks and some 
typing.

Matthias

Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de 
https://winsignhelper.dermattes.de 

> Am 20.03.2019 um 18:45 schrieb Mark Wieder via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Announcing (60 days until the San Jose conference):
> 
> Script Editor Refactor Plugin
>Brings refactoring support to the LiveCode Script Editor.
>Place the plugin into your user Plugins folder.
>After launching the script editor there will be a new Refactoring menuItem 
> in the Edit menu.
>The Refactoring menuItem will also appear in the contextual menu of the 
> Script Editor.
>The Refactoring menu is inspired by the JetBrains refactoring support in 
> RubyMine, etc.
> 
> Rename Handler
>Allows you to rename in just the current script or all scripts in the 
> stack.
> 
> Rename Variable
>Both Rename Handler and Rename Variable change all uses of the object.
> 
> Convert Literal To Constant
>Creates a constant for the selected literal value.
>For instance, converts the string literal "hello" to
>constant kHello = "hello"
>and changes all references of "hello" to use kHello, i.e.,
>  put kHello into tVariable
>instead of
>  put "hello" into tVariable
> 
> Change Signature
>Change the parameter list for a command or function.
>For instance, change "myCommand pKey" to "myCommand pKey, pValue"
>Modifying parameters will modify calls to the handler in all scripts in 
> the stack.
> 
> Safe Delete
>Only deletes the handler/variable if nothing is using it.
>Otherwise you get a warning specifying where it's used.
> 
> Move Handler To
> Copy Handler To
>These allow you to select a new home for the selected handler.
> 
> Create Getter and Setter
>Allow external access to a script local variable.
>The handlers will be named after the variable name:
>local ArrayName
>becomes
>  command setArrayNameTo pValue
>and
>  function ArrayName()
> 
> Add Documentation
>Creates documentation for a handler in the form
>/**
>* HandlerName
>* parameters
>* Returns (if a function)
>* returnValues
>*/
>The documentation format is stored as a custom property template and can 
> be modified if desired.
> 
> Add Test
>Adds a template unit test for the selected handler to a file in the same 
> folder as the stack.
>The file has the same name as the stack with the ".tests" extension.
>The tests file is intended to be run using Ah, Software's TestRunner unit 
> testing stack.
>The unit test format is stored as a custom property template.
>Modifying it will probably cause it to cease functioning.
> 
> Convert Global To
>Script Local
>Getter and Setter
>Property
> 
> Convert Variable To
>Script Local
>Parameter
>Property
> 
> Extract To
>Creates a new handler from the selected block of code in the current 
> script.
> 
> Find Orphan Code
>Displays a list of unused local variables and uncalled handlers.
>Double-click a list item to select it in the script editor.
> 
> Undo Last Refactor
>There's a full undo first-in-last-out stack mechanism for those oops 
> moments.
>Issues a warning if you attempt to undo changes already saved to disk.
> 
> Go Back (contextual menu only)
>Not strictly part of a refactoring process, but since I was reworking the 
> Edit menu anyway...
>After a "Go to definition" call, this gets you back to where you were.
> 
> Uploaded to LiveCodeShare:
> http://livecodeshare.runrev.com/stack/934/revRefactor 
> 
> 
> -- 
> 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

___
use-livecode mailing list
use-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: Script Editor Refactoring Support

2019-03-20 Thread Paul Dupuis via use-livecode

WOW


On 3/20/2019 1:45 PM, Mark Wieder via use-livecode wrote:

Announcing (60 days until the San Jose conference):

Script Editor Refactor Plugin
    Brings refactoring support to the LiveCode Script Editor.
    Place the plugin into your user Plugins folder.
    After launching the script editor there will be a new Refactoring 
menuItem in the Edit menu.
    The Refactoring menuItem will also appear in the contextual menu 
of the Script Editor.
    The Refactoring menu is inspired by the JetBrains refactoring 
support in RubyMine, etc.


Rename Handler
    Allows you to rename in just the current script or all scripts in 
the stack.


Rename Variable
    Both Rename Handler and Rename Variable change all uses of the 
object.


Convert Literal To Constant
    Creates a constant for the selected literal value.
    For instance, converts the string literal "hello" to
    constant kHello = "hello"
    and changes all references of "hello" to use kHello, i.e.,
  put kHello into tVariable
    instead of
  put "hello" into tVariable

Change Signature
    Change the parameter list for a command or function.
    For instance, change "myCommand pKey" to "myCommand pKey, pValue"
    Modifying parameters will modify calls to the handler in all 
scripts in the stack.


Safe Delete
    Only deletes the handler/variable if nothing is using it.
    Otherwise you get a warning specifying where it's used.

Move Handler To
Copy Handler To
    These allow you to select a new home for the selected handler.

Create Getter and Setter
    Allow external access to a script local variable.
    The handlers will be named after the variable name:
    local ArrayName
    becomes
  command setArrayNameTo pValue
    and
  function ArrayName()

Add Documentation
    Creates documentation for a handler in the form
    /**
    * HandlerName
    * parameters
    * Returns (if a function)
    * returnValues
    */
    The documentation format is stored as a custom property template 
and can be modified if desired.


Add Test
    Adds a template unit test for the selected handler to a file in 
the same folder as the stack.

    The file has the same name as the stack with the ".tests" extension.
    The tests file is intended to be run using Ah, Software's 
TestRunner unit testing stack.

    The unit test format is stored as a custom property template.
    Modifying it will probably cause it to cease functioning.

Convert Global To
    Script Local
    Getter and Setter
    Property

Convert Variable To
    Script Local
    Parameter
    Property

Extract To
    Creates a new handler from the selected block of code in the 
current script.


Find Orphan Code
    Displays a list of unused local variables and uncalled handlers.
    Double-click a list item to select it in the script editor.

Undo Last Refactor
    There's a full undo first-in-last-out stack mechanism for those 
oops moments.
    Issues a warning if you attempt to undo changes already saved to 
disk.


Go Back (contextual menu only)
    Not strictly part of a refactoring process, but since I was 
reworking the Edit menu anyway...
    After a "Go to definition" call, this gets you back to where you 
were.


Uploaded to LiveCodeShare:
http://livecodeshare.runrev.com/stack/934/revRefactor




___
use-livecode mailing list
use-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: Browser widget and downloading of files

2019-03-20 Thread Stephen Barncard via use-livecode
I think one has to specifically capture the link-click and deal with it in
one's own code.
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


On Wed, Mar 20, 2019 at 10:13 AM Tore Nilsen via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Are there any ways to start a download of a file via a link in the browser
> widget? It works fine in any other browser, but not when the page is
> displayed in a browser widget.
>
> Best regards
> Tore Nilsen
> ___
> use-livecode mailing list
> use-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: password protected stack and passkey

2019-03-20 Thread JJS via use-livecode

Ok thank you Andy.

I will give that a try.

Op 20-3-2019 om 09:09 schreef AndyP via use-livecode:

The password function protects the script of your stack files so that they
are scrambled when viewed in a text editor or if they are opened in in the
LC IDE a password is required before you are able to view or edit the stack
files.

I just tried using the Standalone Application Settings option of "Encrypt
with password" and in Indy 9.0.2 this only works if you the option to "Move
substacks into individual stack files" is ticked.

A fail-safe way is  using the code below adjusted for your stack name and
password, in the message box to protect your stacks.

set the password of stack "myStack" to "myPassword"

and save

if you need to remove the password you can use

set the password of stack "myStack" to empty

and save








-
Andy Piddock


My software never has bugs. It just develops random features.

TinyIDE  a Free alternative minimalist IDE Plugin for LiveCode


Script editor Themer for LC http://2108.co.uk

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-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


ANN: Script Editor Refactoring Support

2019-03-20 Thread Mark Wieder via use-livecode

Announcing (60 days until the San Jose conference):

Script Editor Refactor Plugin
Brings refactoring support to the LiveCode Script Editor.
Place the plugin into your user Plugins folder.
After launching the script editor there will be a new Refactoring 
menuItem in the Edit menu.
The Refactoring menuItem will also appear in the contextual menu of 
the Script Editor.
The Refactoring menu is inspired by the JetBrains refactoring 
support in RubyMine, etc.


Rename Handler
Allows you to rename in just the current script or all scripts in 
the stack.


Rename Variable
Both Rename Handler and Rename Variable change all uses of the object.

Convert Literal To Constant
Creates a constant for the selected literal value.
For instance, converts the string literal "hello" to
constant kHello = "hello"
and changes all references of "hello" to use kHello, i.e.,
  put kHello into tVariable
instead of
  put "hello" into tVariable

Change Signature
Change the parameter list for a command or function.
For instance, change "myCommand pKey" to "myCommand pKey, pValue"
Modifying parameters will modify calls to the handler in all 
scripts in the stack.


Safe Delete
Only deletes the handler/variable if nothing is using it.
Otherwise you get a warning specifying where it's used.

Move Handler To
Copy Handler To
These allow you to select a new home for the selected handler.

Create Getter and Setter
Allow external access to a script local variable.
The handlers will be named after the variable name:
local ArrayName
becomes
  command setArrayNameTo pValue
and
  function ArrayName()

Add Documentation
Creates documentation for a handler in the form
/**
* HandlerName
* parameters
* Returns (if a function)
* returnValues
*/
The documentation format is stored as a custom property template 
and can be modified if desired.


Add Test
Adds a template unit test for the selected handler to a file in the 
same folder as the stack.

The file has the same name as the stack with the ".tests" extension.
The tests file is intended to be run using Ah, Software's 
TestRunner unit testing stack.

The unit test format is stored as a custom property template.
Modifying it will probably cause it to cease functioning.

Convert Global To
Script Local
Getter and Setter
Property

Convert Variable To
Script Local
Parameter
Property

Extract To
Creates a new handler from the selected block of code in the 
current script.


Find Orphan Code
Displays a list of unused local variables and uncalled handlers.
Double-click a list item to select it in the script editor.

Undo Last Refactor
There's a full undo first-in-last-out stack mechanism for those 
oops moments.

Issues a warning if you attempt to undo changes already saved to disk.

Go Back (contextual menu only)
Not strictly part of a refactoring process, but since I was 
reworking the Edit menu anyway...

After a "Go to definition" call, this gets you back to where you were.

Uploaded to LiveCodeShare:
http://livecodeshare.runrev.com/stack/934/revRefactor

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


Browser widget and downloading of files

2019-03-20 Thread Tore Nilsen via use-livecode
Are there any ways to start a download of a file via a link in the browser 
widget? It works fine in any other browser, but not when the page is displayed 
in a browser widget.

Best regards 
Tore Nilsen
___
use-livecode mailing list
use-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: A Question about Ask File

2019-03-20 Thread Alex Tweedly via use-livecode


ask file prompt [with *defaultFilePath*] [with filter *types*] [as sheet]


On 20/03/2019 16:13, Roger Guay via use-livecode wrote:

This should be easy, but I’m having difficulty with this:

In the Ask File prompt, is there a way to make the “Where” field to always 
default to a specific folder?


Thanks,

Roger
___
use-livecode mailing list
use-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

A Question about Ask File

2019-03-20 Thread Roger Guay via use-livecode
This should be easy, but I’m having difficulty with this:

In the Ask File prompt, is there a way to make the “Where” field to always 
default to a specific folder? 


Thanks,

Roger
___
use-livecode mailing list
use-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: Apple Wants Application Specific Password

2019-03-20 Thread Sannyasin Brahmanathaswami via use-livecode
Yeah really...

This shows a real gap in the Apple infrastructure, how does engineering and 
design of the access the new password UI -- how does it *not* get conveying to 
Apple Developer Support? I had three phone conversations with someone looking 
at my screen, and they still had no idea of how it worked. 

BR




Oh Steve, why did you leave us so soon? ;-)

Bob S


>On Mar 19, 2019, at 21:33 , Sannyasin Brahmanathaswami via use-livecode 
 wrote:
>There is nothing in all the documentation that explains this! Apple has 
broken its own HIG with "mystery meat" UI.
>It just that App Loader has it *own* log in, and that requires the App 
Specific password.
>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


Re: Apple Wants Application Specific Password

2019-03-20 Thread Bob Sneidar via use-livecode
Oh Steve, why did you leave us so soon? ;-)

Bob S


> On Mar 19, 2019, at 21:33 , Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> There is nothing in all the documentation that explains this! Apple has 
> broken its own HIG with "mystery meat" UI.
> 
> It just that App Loader has it *own* log in, and that requires the App 
> Specific password.
> 
> 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


Re: add file extension share for iOS app

2019-03-20 Thread Bob Sneidar via use-livecode
Good job Matthias! It always amazes me the resourcefulness of the LC community. 

Bob S


> On Mar 19, 2019, at 17:02 , Matthias Rebbe via use-livecode 
>  wrote:
> 
> I´ve managed to get it now working.
> 
> So i am now able to open an email attachment on my iOS device in my Livecode 
> App.
> 
> I´ve created a little tool, which makes it a bit easier to create/modify the 
> additional needed lines for the plist file.
> 
> I´ve uploaded it to Livecode Share and it´s called IOS-Plist-AdditionalData.
> 
> You just have to enter the needed information and the tool creates the 
> additional lines which then have to be added to the "original" info.plist.
> 
> Maybe this is of some use for the one or the other. 
> 
> 
> Regards,
> 
> Matthias
> 
> Matthias Rebbe

___
use-livecode mailing list
use-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: Localisation - Internationalization Package

2019-03-20 Thread Richard Gaskin via use-livecode

R.H. wrote:

> A bigger problem is that the date can be ambiguous. How to know if a
> month and day is actually a month or day using mm/dd/ instead of
> dd/mm/? You need to know the source of the date string to be able
> to convert it to the local settings in such cases. And no system will
> tell you that.

LiveCode's dateFormat function will help with at least that part of it:

Use the dateFormat function to obtain the general format of the
date for further processing. The dateFormat function returns a
string containing one or more formatting incantations, each of
which describes a part of the requested date format. The
possible incantations are as follows:

%a Abbreviated weekday name: the abbreviated day of the week,
as reported by the weekdayNames function
%A Full weekday name: the full day of the week, as reported
by the weekdayNames function
%b Abbreviated month name: the abbreviated month name, as
reported by the monthNames function
%B Full month name: the full month name, as reported by the
monthNames function
%d Day of the month: the day of the month as a number
%m Month number: the number of the month
%y Two-digit year: the year as a two-digit number
%Y Four-digit year: This incantation indicates the year as
a four-digit number (including the century)
%w Day of the week: A number between 1 and 7

Note: The dateFormat differs from other date/time functionality
in that the default is to return information relative to the
system locale. i.e. the dateFormat is equivalent to the system
dateFormat

https://livecode.com/resources/api/#livecode_script/dateformat

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


[ANN] Release 9.0.3

2019-03-20 Thread panagiotis merakos via use-livecode
Dear list members,

We are pleased to announce the release of LiveCode 9.0.3 STABLE.


Getting the Release
===
You can get the release at https://downloads.livecode.com/livecode/ or via
the automatic updater.


Release Contents

LiveCode 9.0.3 STABLE contains more than 65 bugfixes and improvements
compared to the previous (9.0.2) STABLE version.

The full release notes are available from:
https://downloads.livecode.com/livecode/9_0_3/LiveCodeNotes-9_0_3.pdf


Known issues

- The use of the Browser widget is not supported on Ubuntu 18.04 64 bit LTS
yet.


Feedback

Please report any bugs encountered on our BugZilla at
http://quality.livecode.com/


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


LiveCode Localization?

2019-03-20 Thread trevix via use-livecode
I have splash and working stacks
I developed for Italian and English (and more)
I have hundred of dialogs, field labels, text contents, tooltips

- On the splash screen, on first opening, I ask the language.

- Dialogs text are stored in a tab delimited text file. Each line is something 
like "98 tab Choose tab Scegli”. On first opening I save in a global only the 
chosen language tab, so that I call them with "Answer gDialogs[98]”

- Before making the standalone, I run a script that write every current label 
and old text to a text file. I import it in FileMaker, check that every item as 
a value in each language (is an update import) and export to tab file that get 
saved in a LC property.

- Upon first opening all the labels, tooltips, etc get changed according to the 
language int the working stack


Works fine!

Roberto Trevisan
Trevix Design
___
use-livecode mailing list
use-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: x-eyes

2019-03-20 Thread Klaus major-k via use-livecode
Hi Al,

> Am 20.03.2019 um 01:58 schrieb Alejandro Tejada via use-livecode 
> :
> 
> Hi Klaus,
> 
> Check the stack posted in this forum thread:
> http://forums.livecode.com/viewtopic.php?f=10=32358

wonderful, muchas gracias!

> Al

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: Localisation - Internationalization Package

2019-03-20 Thread AndyP via use-livecode
No t quite fitting what you want but, I found this a couple of days ago on
Product hunt and thought you may find it of interest.

https://traduora.com/   

https://github.com/traduora/traduora   



-
Andy Piddock 


My software never has bugs. It just develops random features. 

TinyIDE  a Free alternative minimalist IDE Plugin for LiveCode 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

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


Localisation - Internationalization Package

2019-03-20 Thread R.H. via use-livecode
Being "international" I also have lots of need for localization from German
to English, French, Italian, Russian. UTF-8 is my friend, first of all.

For example, in Switzerland, there are four languages and the German part
of Switzerland uses different decimal/currency number settings compared to
Germany. So, a language-specific locale read from a system does not fully
help. It is required to know about regional settings and user settings
since some users change the default settings of the OS.

By default in LiveCode, only the English/US date and number settings are
recognized as valid. A date format such as dd.mm. would not be a valid
date.

A bigger problem is that the date can be ambiguous. How to know if a month
and day is actually a month or day using mm/dd/ instead of dd/mm/?
You need to know the source of the date string to be able to convert it to
the local settings in such cases. And no system will tell you that.

If you can not read the setting from the OS regarding locale specific week
day names, month names, etc, the only way is to provide them in your
LiveCode application yourself. For me, the English always is my system
language. So, providing the English name as the key parameter will always
generate the associated language text. A function calls the array which
stores the language-specific week/month or whatever name.

When dealing with such situations, there should be an internal/system
storage and an external presentation layer. As in Excel, a date can be
formatted the way you like and presented, but internally it should be saved
and managed in a way that is presentation-independent.

For translations, I never worked with YAML files and I have to look at how
that would work. (More information may be interesting.)

I am using arrays that can be saved as files and be loaded, even put into a
database such as MySQL.

It is easy to name controls in LiveCode and change their label looking up
the path to the control and changing the label name to be
language-specific. When the user changes the language, all labels are
changed immediately. The same is true for the text in fields that can also
easily be changed the same way.

For any dialogues (ask, answer, ...) I am using an English abbreviation
that is uniquely identifying a dialogue. It helps to identify a dialogue by
name. So again, the actual text of the dialogue is associated with this
unique key, and the translation can be found in the associated array
combining the key and the language code (de_ch for German in Switzerland,
de_de for German in Germany -- they quite different).

The same I do with all error messages that are visible to the user. They
are passed to a handler which looks up the language-specific text.

Even though I like defaults taken from the OS system settings, they may not
apply to individual users.

A US citizen may travel to Europe and use a computer with a European
locale. What to do?

I always give the user the choice to select what the user wants to see. So,
there is no way around having your own layer of settings for translations,
number format, date formats, etc.

Since setting up such a locale-aware system is still a lot of work, I would
find it helpful for international users of LiveCode if we had such an
Internationalization Package to ease the work. Best practice should be
applied. It is not as trivial as it may look at first. There are many ways
of achieving the same aim using LiveCode, but a standard way of doing
things would be more helpful to everybody.

If you plan internationalization, then the best is to start setting it up
before you actually do the application specific work.

-- Think of languages you need
-- Think of date formats (language independent)
-- Think of number formats (language independent)
-- Think of other regional specifics

One consideration is that it is best practice storing values always only
once (as defined in Normalization rules of SQL databases). For example,
working with decimal numbers and their formatting, never use the displayed
format for calculations, but only the internal number format. The internal
number value is the only valid value. The displayed value is calculated
value always. For example, how will you add numbers formatted as
"10.000.000,00" as used in many European countries if you do not store the
actual value as a text-string of the number in the form of "1000.00"
internally?

(You could, of course, convert such number/date strings all the time, but
it would end up in more processing time used, and ambiguous number
representations for export/import or any outside-dealing with data. Using
several formats can mess up your whole application.)

The system looking up values or settings must be extendable and flexible,
never hard-coded. If the user changes the language, number formats, date
formats, the system should automatically respond if such settings are
supported. It should then not only present the new settings, but also allow
the user entering 

Re: password protected stack and passkey

2019-03-20 Thread AndyP via use-livecode
The password function protects the script of your stack files so that they
are scrambled when viewed in a text editor or if they are opened in in the
LC IDE a password is required before you are able to view or edit the stack
files.

I just tried using the Standalone Application Settings option of "Encrypt
with password" and in Indy 9.0.2 this only works if you the option to "Move
substacks into individual stack files" is ticked.

A fail-safe way is  using the code below adjusted for your stack name and
password, in the message box to protect your stacks.

set the password of stack "myStack" to "myPassword"

and save

if you need to remove the password you can use

set the password of stack "myStack" to empty

and save








-
Andy Piddock 


My software never has bugs. It just develops random features. 

TinyIDE  a Free alternative minimalist IDE Plugin for LiveCode 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

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