Re: put url tricks to copy files on windows

2017-06-21 Thread Mark Waddingham via use-livecode
As others have pointed out, for binfile and file urls you shouldn't include the standard '//' in front of the (absolute) path. These are not parsed by the engine as standard urls - everything after the : is parsed as the filename. On an unrelated not you don't need to twiddle with the

AW: Standalonebuilder destination folder is being ignored

2017-06-21 Thread Tiemo Hollmann TB via use-livecode
Oh yes, being able to read, sometimes helps. Thanks Jacque! Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von J. Landman Gay via use-livecode Gesendet: Dienstag, 20. Juni 2017 20:20 An: Tiemo Hollmann TB via use-livecode

Re: put url tricks to copy files on windows

2017-06-21 Thread Roger Eller via use-livecode
Without meaning to add more confusion, a Windows UNC path from a server to a file does work with the form "binfile://servername/folder/folder/filename.txt", while local access (or mapped drives) are like "binfile:C:/folder/folder/filename.txt". ~Roger On Jun 21, 2017 2:07 AM, "Mark Waddingham

Re: put url tricks to copy files on windows

2017-06-21 Thread Mike Kerner via use-livecode
also what is confusing is when I removed the // from the FROM file but left it in for the TO file, I get the same error, "can't open file", which to me implies that the file that exists can't be read, not that the TO path is wrong. On Wed, Jun 21, 2017 at 7:37 AM, Roger Eller via use-livecode <

Re: put url tricks to copy files on windows

2017-06-21 Thread Matthias Rebbe via use-livecode
to write to a file, even if it is copied, it has to be opened first. Did you try to remove the 2 slashes in the to path also? Matthias Rebbe +49 5741 31 ‌matthiasrebbe.eu ‌ > Am 21.06.2017 um 14:31 schrieb Mike Kerner via use-livecode >

Re: put url tricks to copy files on windows

2017-06-21 Thread Mike Kerner via use-livecode
Let me be clearer. I think the message could be better (or perhaps the dictionary could list the error messages and explain them), because even though we use the "open" command in LC to read from a file or create a file, the lack of the need for a "create file" command in LCS doesn't remove that

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Alex Tweedly via use-livecode
Why not just use Sublime Text editor, with Levure to allow you to use an external editor? (or plug in to that system to allow other external editors to be used) Other than the fact that I can't get the 'linter' to work (and I know that'll just be me doing something stupid and wrong :-), it

Re: Exploring A Single File Deploy on Windows

2017-06-21 Thread Mark Waddingham via use-livecode
On 2017-06-21 19:42, Richard Gaskin via use-livecode wrote: One of the things I liked about SuperCard was that Bill Appleton had written his own resource fork into his data file format. This allowed SC to store any number of data and even code (XCMDs and DFCNs) within the data fork, without

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread Paul Dupuis via use-livecode
If the browser widget is expecting an encoded URL (i.e. %20 vs a space) then instead of replacing characters, you should use the urlEncode function, as in put URLEncode(tFile) into tFile This way any characters (spaces or Unicode or whatever) that are an issue are properly encoded. On

Re: Levure??

2017-06-21 Thread Roger Eller via use-livecode
https://www.mail-archive.com/use-livecode@lists.runrev.com/msg82202.html ~Roger On Wed, Jun 21, 2017 at 4:48 PM, William Prothero via use-livecode < use-livecode@lists.runrev.com> wrote: > Could somebody post a link to info about Levure? i must have missed it > when it was first discussed. I

Re: Levure??

2017-06-21 Thread William Prothero via use-livecode
Thanks, Roger! :):) Bill P > On Jun 21, 2017, at 1:51 PM, Roger Eller via use-livecode > wrote: > > https://www.mail-archive.com/use-livecode@lists.runrev.com/msg82202.html > > ~Roger > > On Wed, Jun 21, 2017 at 4:48 PM, William Prothero via use-livecode < >

Re: Exploring A Single File Deploy on Windows

2017-06-21 Thread Mark Talluto via use-livecode
> On Jun 21, 2017, at 11:31 AM, Mark Waddingham via use-livecode > wrote: > > Since 8, standalones have loaded their externals on startup - so no script > runs before the standalone expects them to be where they should. One way to > resolve this is to send a

Re: Exploring A Single File Deploy on Windows

2017-06-21 Thread J. Landman Gay via use-livecode
On 6/21/17 1:31 PM, Mark Waddingham via use-livecode wrote: Since 8, standalones have loaded their externals on startup - so no script runs before the standalone expects them to be where they should. One way to resolve this is to send a message *before* the externals are bound, allowing the

Levure??

2017-06-21 Thread William Prothero via use-livecode
Could somebody post a link to info about Levure? i must have missed it when it was first discussed. I have no idea what Levure’s purpose is, where to get it, or …. However, it sounds (from the discussions) like it might be useful. Thanks, Bill P William A. Prothero

Android native widgets

2017-06-21 Thread Ali Lloyd via use-livecode
Further to Kevin's note about creating native widgets on Android in another thread, I thought I'd post the LCB template here that gets you all the android native widgets (that is, classes in the android.widget package - see here:

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Monte Goulding via use-livecode
> On 22 Jun 2017, at 3:20 am, Mike Bonner via use-livecode > wrote: > > Perhaps a different direction here? I think it would be helpful to me as a > perpetual newbie to have the option to insert common scripts on demand. > Maybe a context sensitive dropdown with

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Mark Talluto via use-livecode
> On Jun 21, 2017, at 4:40 PM, Monte Goulding via use-livecode > wrote: > > Hi Guys > > I have done _some_ work on an autocomplete framework which could also be used > for a snippet library. It is something we have on the radar to complete and > integrate into

Re: Exploring A Single File Deploy on Windows

2017-06-21 Thread Richard Gaskin via use-livecode
Dan Friedman wrote: > With LC 8.1 and later, we’re now using tsNet rather than libURL. > That’s fine. However, a Windows standalone that uses tsNet cannot > even launch unless tsNet.dll is in the same directory as the > standalone.exe. This makes deploying a single file on Windows >

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread JOHN PATTEN via use-livecode
It contains spaces, but no unicode that I can see. i.e. "Transportation Bus Software Laptop.pdf” Thank you! > On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode > wrote: > > Hi John, > > Does the pdf filename you select contain any unicode

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Mike Kerner via use-livecode
I like the idea of going even another step further, and having macros that we can use. An example from another tool I use adds the ability to add structures (e.g. if-then-else, repeat, etc.), and even being able to hilite text and have the macro do something with the text, for example

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread Roger Eller via use-livecode
Have you tried "my%20Pdf"? ~Roger On Wed, Jun 21, 2017 at 2:04 PM, panagiotis merakos via use-livecode < use-livecode@lists.runrev.com> wrote: > Hmm, it seems that the spaces are the culprit. I did a quick test, and > selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf" throws >

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread Mike Bonner via use-livecode
couldn't you also.. put quote & it & quote into tFile On Wed, Jun 21, 2017 at 12:24 PM, panagiotis merakos via use-livecode < use-livecode@lists.runrev.com> wrote: > @Roger > > Nice! > > This code works with filenames with spaces, too: > > on mouseUp > > local tFile > > answer file "Please

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Mike Kerner via use-livecode
I am using ST and Levure, now, and I have the linter working, and am a cheerleader for the setup. However, that is not a good solution for beginners, IMHO. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread ELS prothero via use-livecode
What about Mike Doub’s MasterLibrary? I just tried it in latest LC, and it fails because there is a function named a reserved word. But, it seems like a valuable resource that might be used as a starting point? Best, Bill William Prothero, PhD Professor Emeritus University of California, Santa

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread panagiotis merakos via use-livecode
Hi John, Does the pdf filename you select contain any unicode characters? Best, Panos -- On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi All, > > I am trying to display a PDF in a browser widget using the tutorial here: >

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Alex Tweedly via use-livecode
You're right, not a good solution for newcomers. However, I think there's a (perhaps minority) class of newcomers - more or less, those who come as experienced developers in another language / IDE - for whom a good setup would include ST + linter + just enough of Levure to provide the

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Richard Gaskin via use-livecode
Mike Bonner wrote: > Perhaps a different direction here? I think it would be helpful to me > as a perpetual newbie to have the option to insert common scripts on > demand. > Maybe a context sensitive dropdown with a mouseup framework for > buttons, for fields, textchanged, keyup, keydown.

Display PDF in Browser Widget Error?

2017-06-21 Thread JOHN PATTEN via use-livecode
Hi All, I am trying to display a PDF in a browser widget using the tutorial here: http://lessons.livecode.com/m/4071/l/727199-how-do-i-display-a-pdf-in-livecode and this code: on mouseUp local tFile answer

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Richard Gaskin via use-livecode
Making scripted elements is a great thing for scripters to do. And the one thing we all have in common here is that we're all scripters. There should be no need to make LC Ltd's C++ experts set aside work on the engine to build these instead. What prevents any of us from delivering those?

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread panagiotis merakos via use-livecode
Hmm, it seems that the spaces are the culprit. I did a quick test, and selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf" throws an error. This looks like a bug to me :) Best, Panos -- On Wed, Jun 21, 2017 at 6:50 PM, JOHN PATTEN via use-livecode <

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread panagiotis merakos via use-livecode
@Roger Nice! This code works with filenames with spaces, too: on mouseUp local tFile answer file "Please choose the file you would like to display" with type "PDF document|pdf|PDF" if it is not empty then put it into tFile replace space with "%20" in tFile set the url of widget 1 to tFile

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread JOHN PATTEN via use-livecode
Thank you! The spaces where the culprit Now working :) > On Jun 21, 2017, at 11:40 AM, Paul Dupuis via use-livecode > wrote: > > If the browser widget is expecting an encoded URL (i.e. %20 vs a space) > then instead of replacing characters, you should use the

HD Windows Video Formats

2017-06-21 Thread Jeff Reynolds via use-livecode
Hi, Just curious what video wrappers and codecs folks are using for HD (1080) for windows 10 playback (surface) with the directshow drivers native now in livecode. its an odd set listed in the directshow format page

RIP Dan Shafer

2017-06-21 Thread Jerry Jensen via use-livecode
We lost Dan Shafer yesterday. He did a lot for LiveCode. I’m sure anybody who met him will miss him. .Jerry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: Levure??

2017-06-21 Thread Mike Kerner via use-livecode
Here's the wiki https://github.com/trevordevore/levure/wiki Here's Trevor's youtube channel, where you can see some levure videos https://www.youtube.com/channel/UCluXVDvheCjGSJmCMssc0fw On Wed, Jun 21, 2017 at 4:54 PM, William Prothero via use-livecode < use-livecode@lists.runrev.com> wrote:

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Mike Bonner via use-livecode
Cool! thanks Monte! On Wed, Jun 21, 2017 at 5:48 PM, Mark Talluto via use-livecode < use-livecode@lists.runrev.com> wrote: > > On Jun 21, 2017, at 4:40 PM, Monte Goulding via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Hi Guys > > > > I have done _some_ work on an

Widgets as Buttons

2017-06-21 Thread Sannyasin Brahmanathaswami via use-livecode
Re: using widgets for buttons like disclosure triangles. On mobile they seem very unresponsive. Jacque says you have to actually tap the pixels inside the defined svg area. We had this discussion before relative to using small graphics as buttons. So, are we back to making small groups with a

Re: Desktop Fork Menu for Mobile Picker

2017-06-21 Thread Sannyasin Brahmanathaswami via use-livecode
OH… never mind… "popup menu at" How could I have forgotten that (by work on mobile most of this year..) BR On 6/20/17, 4:50 AM, "use-livecode on behalf of Sannyasin Brahmanathaswami via use-livecode" wrote:

Re: put url tricks to copy files on windows

2017-06-21 Thread Matthias Rebbe via use-livecode
I don´t want to sound like a know-it-all, but revcopyfile also uses just the shell to copy the files: replace "\" with "/" in pDestFile replace "\" with "/" in pSrcFile if there is a directory pDestFile then set the itemDel to "/" if char -1 of pDestFile is "/" then delete char -1 of

Re: put url tricks to copy files on windows

2017-06-21 Thread Roger Eller via use-livecode
I knew that, but didn't want to sound like a know-it-all. ;-p ~Roger On Wed, Jun 21, 2017 at 10:17 AM, Matthias Rebbe via use-livecode < use-livecode@lists.runrev.com> wrote: > I don´t want to sound like a know-it-all, but revcopyfile also uses just > the shell to copy the files: > >

Re: put url tricks to copy files on windows

2017-06-21 Thread Roger Eller via use-livecode
You could also try the revCopyFile and revCopyFolder commands. I normally only use the URL syntax to save new data I've created in a variable to a file. When copying existing files/folders I either use "get shell" to call native commands, or the built-in revCopyFile. ~Roger On Wed, Jun 21,

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Sannyasin Brahmanathaswami via use-livecode
Kevin, Thanks for jumping in, very inspiring work you have all been doing recently. One has to wonder if anyone sleeps in Edinborough! I've been having a running conversation with Richard on how to make small solutions available to the whole community, in the spirit of "this would make

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Mike Bonner via use-livecode
Perhaps a different direction here? I think it would be helpful to me as a perpetual newbie to have the option to insert common scripts on demand. Maybe a context sensitive dropdown with a mouseup framework for buttons, for fields, textchanged, keyup, keydown. Maybe backed by a personal snippet

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Andre Garzia via use-livecode
Going back to the original issue of "not applying the empty mouseup handler", wouldn't a frontscript running on a plugin on the IDE be enough to remove those scripts by interfeering with the IDE Editor at runtime? (PS: I have a thing for dangerous scripts...) On Wed, Jun 21, 2017 at 12:03 PM,

Re: put url tricks to copy files on windows

2017-06-21 Thread Mike Kerner via use-livecode
There is some caveat to revcopyfile that I ran into when I went the url binfile way, but I forget what it is. It might have been the directory separators being platform-dependent, but it was months ago. On Wed, Jun 21, 2017 at 10:34 AM, Roger Eller via use-livecode <