Re: LC Server & Server Based Stack?
Hi Mike, This seems a little crazy to me. I can have two stacks open in memory in LiveCode, and I can send a message such as “mouseUp” from one stack to a button in the other stack. The button in the other stack outputs some messages to the message box and puts a message in a field on that stack and that all works just fine. I’m able to view both stacks on the screen at the same time. (This is as it should be.) I send the same message from the server to the button and the messages which normally go into the message box end up in the display of my browser which seems a little strange but Ok I can accept that. The other message which was supposed to go into the field never gets to the field which makes it look like the button ignored that statement completely although it executed everything else it was asked to perform. That message doesn’t seem to go anywhere as it doesn’t even end up being displayed in the browser and ends up in the bit bucket in the sky. (Again, I can see the open stack on the screen at the time that I tell my browser to execute the server code.) Shouldn’t a message be a valid message no matter where it comes from? (Hence my crazy feeling about the whole thing.) So you are telling me that I can send a message to closed stack to modify it, that I should save it after the change, and then reopen the stack to view the change - yes? The file communication idea makes things a little more complex but is certainly doable. I’ve never done anything with sockets - are there any good examples out there you can point me to for this? Thanks, Rick > On Jan 20, 2017, at 10:20 PM, Mike Bonner via use-livecode > wrote: > > You can modify a stack using lc server, and save it, but that won't update > an already open stack in memory. And if you don't add code to save the > stack from lc server, even if you do reload the stack, the change won't be > there. > > One way to update a field in an open stack would be to have the stack > running a send in time loop that checks for changes to a file. (text file, > or whatever) If the last modified stamp has changed (or if the file > exists, or however you want to do it) read and parse the file, to get the > info and put it wherever it goes then clear or delete the file. You'd > still have to think about concurrency issues, but it should work. > the jacque standalone cgi method (as I mentioned in a different email) > would be cool because you could hit the webserver, open a socket to your > open stack to pass data from the server to the running stack. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: LC Server & Server Based Stack?
Yeah, thats what I'm saying. Think of it this way. If you make 2 standalones, run both, and have 1 standalone try to put text into a field of the other, it won't work because they are each running their own engine instance. If one engine instance opens several stacks they're able to talk because its all through one instance of the engine, and they're all interconnected through the engine. Lc server is an instance, and the standalone, or ide that has your open stack is an instance. So there is no direct connection between the 2. It would be like opening the same text file twice in 2 separate text editors. If you type in 1, the change doesn't appear in the other. You'd have to type in 1, save the changes then reload the text in the other to see the changes that were made. If using a file to update will work, it should be simple enough.. (and not require stacks on the server side.) Have the server write the necessary info, and have an update button on your stack that will grab the new info, or have the stack keep checking for changes every so often, and update as necessary. As far as sockets, chatrev is a pretty awesome example. If you click "resources" in the main toolbar, then select "sample projects" on the lower left, there is an "internet chat" that you can poke around with to get a handle on things. If you decide to go the socket way and the cgi (non lc server) method, i'll be little help. I'm not even sure which versions of the lc engine will work for this, but you said you already looked at jacques page, so are on the right track. I have mentioned it before, but there is the revhttpd stack.. If you don't need multithreading, it would make a great starting base. (and another way to explore sockets too) I love the thing, especially the ability to add commands to the stack that are then callable using a get request of the form cmd=commandtorun On Sat, Jan 21, 2017 at 8:47 AM, Rick Harrison via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Mike, > > This seems a little crazy to me. > > I can have two stacks open in memory in LiveCode, and I > can send a message such as “mouseUp” from one stack > to a button in the other stack. The button in the other stack > outputs some messages to the message box and puts a > message in a field on that stack and that all works just fine. > I’m able to view both stacks on the screen at the same time. > (This is as it should be.) > > I send the same message from the server to the button > and the messages which normally go into the message box > end up in the display of my browser which seems a little strange but Ok > I can accept that. The other message which was supposed to > go into the field never gets to the field which makes it look > like the button ignored that statement completely although > it executed everything else it was asked to perform. That > message doesn’t seem to go anywhere as it doesn’t even > end up being displayed in the browser and ends up in the > bit bucket in the sky. (Again, I can see the open stack > on the screen at the time that I tell my browser to execute > the server code.) Shouldn’t a message be a valid message > no matter where it comes from? (Hence my crazy feeling > about the whole thing.) > > So you are telling me that I can send a message to closed > stack to modify it, that I should save it after the change, and > then reopen the stack to view the change - yes? > > The file communication idea makes things a little more > complex but is certainly doable. > > I’ve never done anything with sockets - are there any good > examples out there you can point me to for this? > > Thanks, > > Rick > > > > > On Jan 20, 2017, at 10:20 PM, Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > You can modify a stack using lc server, and save it, but that won't > update > > an already open stack in memory. And if you don't add code to save the > > stack from lc server, even if you do reload the stack, the change won't > be > > there. > > > > One way to update a field in an open stack would be to have the stack > > running a send in time loop that checks for changes to a file. (text > file, > > or whatever) If the last modified stamp has changed (or if the file > > exists, or however you want to do it) read and parse the file, to get > the > > info and put it wherever it goes then clear or delete the file. You'd > > still have to think about concurrency issues, but it should work. > > the jacque standalone cgi method (as I mentioned in a different email) > > would be cool because you could hit the webserver, open a socket to your > > open stack to pass data from the server to the running stack. > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ ANN ] Release 8.1.3 RC-1
Thanks to the logs shared, I was able to identify the problem with DGH stoping the plugins loading process. The problem is in the DGH_Help substack (the DGH documentation) which the IDE is considering as locked. Don't ask me why, this is the only substack in DGH which has a couple of properties set, such as the cantdelete property. Setting this property to false in the inspector is solving the issue. Will update the bugzilla report with this information in case this new behavior is not something expected. Best Regards, On Sat, Jan 21, 2017 at 7:17 AM, Trevor DeVore via use-livecode wrote: > On Fri, Jan 20, 2017 at 11:26 AM, panagiotis merakos via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> >> LiveCode 8.1.3 RC 1 contains 83 bug fixes and stability improvements: >> >> - Several crashes have been fixed. >> … > > - Several clipboard-related bugs have been fixed. >> > > After getting past the plugin loading issue 8.1.3 rc-1 has been working > nicely. I was able to routinely crash previous versions of LC 8 with a > project I’m working on. I haven’t had a single crash with 8.1.3 rc-1. I’m > very happy about that! > > -- > 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 -- Zryip TheSlug http://www.aslugontheroad.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
Boring but important - selling a download product for Windows
Sorry to witter on after I’ve asked this list a lot about code signing etc so often. The excellent help I’ve had has enabled me to sign both the app I want to distribute and its installer - in fact I’ve done this twice, once for the Mac version of this app and once for the Windows version. The intention is to sell the product by offering a download from a web site, using FastSpring for the payments, and incorporating Jacque Gay’s Zygodact to provide unique activation keys. All this works fine, except for the Windows download, where Norton, Chrome and even Windows 7 all attempt to prevent either the download or the execution of the installer. Again with advice from this list, I know where some of the problems lie (though not the one with Windows, which reports the installer as having an ‘unknown publisher’ but later displays the publisher provided during the code signing!). My question is, what do other people do about this? If you generate a new desktop program for Windows and try to sell it as a download, how can you strip away all this nonsense for the average purchaser? So far all I can think of doing is to issue a warning on the web site that explains what do do if Norton ‘quarantines’ the program. Even this does not cover all the obstacles in the poor purchaser’s way. Doesn’t this affect everyone trying to offer a new executable download? [noise of grinding teeth…] TIA for any further views. Graham ___ use-livecode mailing list use-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: Boring but important - selling a download product for Windows
On 1/21/17 1:43 PM, Graham Samuel via use-livecode wrote: My question is, what do other people do about this? If you generate a new desktop program for Windows and try to sell it as a download, how can you strip away all this nonsense for the average purchaser? One of my clients said she'd had it with Windows installers and now ships the product as a zip file. The user is instructed to move the app folder out of the zip folder. This is just about the only hitch in the process, because Windows presents the zip folder as a regular folder and users think they can just double-click the app inside the zip archive. Other than instructing naive Windows users to drag the app folder out of the zip archive, there have been virtually no other issues. The signed app itself works fine without interference from the OS. Windows users have become used to installers and expect them, but if your app is self-contained and doesn't require changing registry keys or other OS-level stuff, it works pretty well. I know that's not what you asked, but that's how we solved it. -- 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: Boring but important - selling a download product for Windows
Wow, Jacque, that is such a great idea. Too late where I am to try it out tonight, but I will certainly try it tomorrow. Thanks so much Graham > On 21 Jan 2017, at 20:59, J. Landman Gay via use-livecode > wrote: > > On 1/21/17 1:43 PM, Graham Samuel via use-livecode wrote: >> My question is, what do other people do about this? If you generate a >> new desktop program for Windows and try to sell it as a download, how >> can you strip away all this nonsense for the average purchaser? > > One of my clients said she'd had it with Windows installers and now ships the > product as a zip file. The user is instructed to move the app folder out of > the zip folder. This is just about the only hitch in the process, because > Windows presents the zip folder as a regular folder and users think they can > just double-click the app inside the zip archive. > > Other than instructing naive Windows users to drag the app folder out of the > zip archive, there have been virtually no other issues. The signed app itself > works fine without interference from the OS. > > Windows users have become used to installers and expect them, but if your app > is self-contained and doesn't require changing registry keys or other > OS-level stuff, it works pretty well. I know that's not what you asked, but > that's how we solved it. > > -- > 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 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Search and replace Raw unicode html-hex-dec characters
I have *.html files that were extracted from epub documents. At our instruction, the company preparing these epubs was requested to use Unicode throughout and avoid all ANSI chars (i.e. us the Unicode for mdash and not — from the mac keyboard) If I drop these on any browser they are perfectly rendered. (see on line example here: http://www.himalayanacademy.com/media/books/living-with-siva/web/part1_06.html) When I open these as UTF-8 unicode files in BBEdit. I see the characters like this: The knowledge of how to realize this oneness and not create unwanted experiences along the way. The peerless path is following the way of our spiritual forefathers, discovering the mystical meaning of the scriptures. To make life interesting, some files were exported with the decimal form and other with the hex form (”) some of the files mix the hex style notation along side the decimal.. in the same paragraph block… browser doesn't seem to care about that, so we are getting and then later in the same paragraph: "¶ which is also exactly what you see if you look at source in the browser for the page. I need to be able to target, for search and replace, a subset of these characters. In particular, we have troublesome 1) Pilcrow (Paragraph Sign) ¶ #old "run on" paragraph mark… which we want to turn into block paragraph form: just have an extra blank line. 2) discretionary hyphens coming through from InDesign all the way into the HTML files which are ignore in browsers, but appear as dashes/hyphens in Livecode fields after textDecode… or sometimes appear after I run scripts as: "" 3) the old ligature double characters, in particule fi "fi" tied together. fi In Livecode, this just disappeard… instead "we find" I see "we nd" in the field. I suspect the character is actually there, but the font can't render it,so the LC field is just white space in that location. fulfillment Try as I might, I am unable to target these characters viaLC script…it's as if what I see in BBEdit and in the source of the page in the browser is not what gets imported using "put url " … in any form… in LC. using put url ("file:/" & "part1_ch3.html") into tText ## no search and replace I attempt will work using binfile or textDecode before insertion into the variable also doesn’t work. Here is my script (latest iteration on many variants all of which don't get the job done) global gBookFilesLocation on mouseup palette this stack set the defaultstack to the topstack put fld "TOC" into tToc repeat for each line x in tToc set the itemdel to "." put item 1 of x & "-clean.txt" into tFilename put the uBookFilesLocation of this stack into tPath #put url ("file:" & tPath & "/ops/xhtml/" & x ) into tText put url ("binfile:" & tPath & "/ops/xhtml/" & x ) into tText put textDecode(tText,"UTF-8") into tNewText # check for discretionary hyphens if tNewText contains "" then answer "Yes got unicode soft hyphen string" with "OK" exit to top # this never fires ... end if ## Attempts to replace here: replace "¶" with (cr & cr) in tNewText # never happens;may need to use ""&cr&"" replace "¶" with (cr&cr) in tNewText # Pilcrow sign for the above char: U+00B6 old name "Paragraph Sign" --we want an extra blank line. replace "" with "" in tNewText # soft hyphen replace "" with "" in tNewText # Soft hyphen - replace with nothing replace "" with " " in tNewText replace "" with " " in tNewText replace "" with " " in tNewText replace " " with " " in tNewText # remove double spaces create by breaks following a space. put textDecode(tNewText,"UTF-8") into tNewTextOut set the htmlText of fld "CurrentChapterText" to tNewTextOut put textEncode(fld "CurrentChapterText","UTF-8") into url ("binfile:" & gBookFilesLocation &"/_cleanExport1/" & tFilename) end repeat end mouseup I tried, in another text processing stack I have, just to go direct from file into script/vars and then out to file without going thru a field… that's no better. Any clues on how to approach this? Brahmanathaswami ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
TextDecode JSON array
Here's a test sample of some UTF8 I get back from a server: {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"} If I run textDecode(,"UTF8") on it, I get it back unaltered. Does anyone recognize the text encoding? It doesn't seem to be UTF8. If I then run JSONToArray on it, I get a LC array and the name is changed to this: Eduardo Ba√±uls And when I run textDecode on *that* it comes out right: Eduardo Bañuls So what's the first string? JSONtoArray seems to recognize it. I'd like to decode the JSON array completely before passing it to JSONtoArray. If I can do that, I don't have to loop through all the array keys, decoding each one individually. -- 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: TextDecode JSON array
Looks like utf16 based on this info I found here: https://codepoints.net/U+00F1?lang=en SystemRepresentation Nº 241 UTF-8 C3 B1 UTF-16 00 F1 On Sat, Jan 21, 2017 at 8:22 PM, J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > Here's a test sample of some UTF8 I get back from a server: > > {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"} > > > If I run textDecode(,"UTF8") on it, I get it back unaltered. Does > anyone recognize the text encoding? It doesn't seem to be UTF8. > > If I then run JSONToArray on it, I get a LC array and the name is changed > to this: > > Eduardo Ba√±uls > > And when I run textDecode on *that* it comes out right: > > Eduardo Bañuls > > So what's the first string? JSONtoArray seems to recognize it. I'd like to > decode the JSON array completely before passing it to JSONtoArray. If I can > do that, I don't have to loop through all the array keys, decoding each one > individually. > > -- > 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 ___ use-livecode mailing list use-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: TextDecode JSON array
On 1/21/17 9:22 PM, J. Landman Gay via use-livecode wrote: Here's a test sample of some UTF8 I get back from a server: {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"} If I run textDecode(,"UTF8") on it, I get it back unaltered. Does anyone recognize the text encoding? It doesn't seem to be UTF8. If I then run JSONToArray on it, I get a LC array and the name is changed to this: Eduardo Ba√±uls And when I run textDecode on *that* it comes out right: Eduardo Bañuls So what's the first string? JSONtoArray seems to recognize it. I'd like to decode the JSON array completely before passing it to JSONtoArray. If I can do that, I don't have to loop through all the array keys, decoding each one individually. Hm. Google says it's C/C++/Java encoding. Not sure what to do with that. -- 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: TextDecode JSON array
So LC should recognize it without alteration I'd assume, but it doesn't. Probably the leading "\u"? I'm still not sure how to handle that. On 1/21/17 9:29 PM, Mike Bonner via use-livecode wrote: Looks like utf16 based on this info I found here: https://codepoints.net/U+00F1?lang=en SystemRepresentation Nº 241 UTF-8 C3 B1 UTF-16 00 F1 On Sat, Jan 21, 2017 at 8:22 PM, J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: Here's a test sample of some UTF8 I get back from a server: {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"} If I run textDecode(,"UTF8") on it, I get it back unaltered. Does anyone recognize the text encoding? It doesn't seem to be UTF8. If I then run JSONToArray on it, I get a LC array and the name is changed to this: Eduardo Ba√±uls And when I run textDecode on *that* it comes out right: Eduardo Bañuls So what's the first string? JSONtoArray seems to recognize it. I'd like to decode the JSON array completely before passing it to JSONtoArray. If I can do that, I don't have to loop through all the array keys, decoding each one individually. -- 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 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- 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: TextDecode JSON array
That is UTF-8. I've seen older versions of Ruby on Rails would use escape sequences like that in JSON responses. -- Trevor DeVore On Sat, Jan 21, 2017 at 9:22 PM J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > Here's a test sample of some UTF8 I get back from a server: > > > >{"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"} > > > > > > If I run textDecode(,"UTF8") on it, I get it back unaltered. > > Does anyone recognize the text encoding? It doesn't seem to be UTF8. > > > > If I then run JSONToArray on it, I get a LC array and the name is > > changed to this: > > > >Eduardo Ba√±uls > > > > And when I run textDecode on *that* it comes out right: > > > >Eduardo Bañuls > > > > So what's the first string? JSONtoArray seems to recognize it. I'd like > > to decode the JSON array completely before passing it to JSONtoArray. If > > I can do that, I don't have to loop through all the array keys, decoding > > each one individually. > > > > -- > > 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 ___ use-livecode mailing list use-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: Boring but important - selling a download product for Windows
Graham, I'm glad you've been "wittering on". I code signed my first Mac application (and disk image) the other day because of your persistence. -- Scott Morrow Elementary Software > On Jan 21, 2017, at 11:43 AM, Graham Samuel via use-livecode > wrote: > > Sorry to witter on after I’ve asked this list a lot about code signing etc so > often. The excellent help I’ve had has enabled me to sign both the app I want > to distribute and its installer - in fact I’ve done this twice, once for the > Mac version of this app and once for the Windows version. ___ use-livecode mailing list use-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: TextDecode JSON array
On 22/01/2017 03:22, J. Landman Gay via use-livecode wrote: Here's a test sample of some UTF8 I get back from a server: {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"} Hi Jacque, This is valid JSON (and also valid ASCII). In JSON, any character in a string may be encoded in the form \u where is the 4-digit hexadecimal representation of a Unicode codepoint. No textDecode() operation is required. JSONImport() handles this correctly. 1) Create a stack with a field and a button 2) Put the text above into the field 3) Set the script of the button to: > local tJson > put JSONImport(field 1) into tJson > answer tJson["UserName"] 4) Enter browse mode and click the button You will get an answer dialog displaying "Eduardo Bañuls". Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Using LC server to check for existence of mp3 on our web server?
Hi, On-rev.com hosting, using LC server to present a list of our AM/FM radio programs for people to listening to on-demand. Out of a month's 20 programs, 3 or 4 might not get uploaded due to copyright issues, etc. Also, mp3's are not on the on-rev.com server, but another hosting service we use as well. Filenaming is standardized, so I know the list of programs. I want to hit the server, if the mp3 files exists, present it as an program not available" message. If I wanted to check on the existence of a small text file, it would be fast enough for me to just get it, put it into a variable and see if the variable has anything in it. But mp3's are too big, so too slow. Locally, I would simply write "if there is a file 'filename'..." -- what's the equivalent command for checking on existence of a file on a server? Thanks in advance. Tim Selander Tokyo, Japan ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode