Re: Transcript and/or ECMA - guess who started it?
Ken Ray wrote/ schreef: Actually, Sjoerd, it is probably possible for the parser to understand the context so that a different operator may not be needed at all. Of course this is possible. I just don't like a symbol to have a context-dependent meaning. When I read my script aloud, I want to be able to just pronounce an '=' as 'is'. (if myname is sjoerd then beep) When another meaning is introduced, I will sometimes have to pronounce '=' as 'becomes'. I know, many languages use this technique, but it is a very special and beautiful property of xTalks, that one can read a script aloud, and understand the meaning, without special syntax knowledge. Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Transcript and/or ECMA - guess who started it?
MisterX wrote/ schreef: local afld=fld test Please don't adopt this ugly C-like syntax... Put into works fine. And if you want to have a shorter operator for this, use :=, like Pascal. I mean, because of using '=' for 'becomes', they had to use '==' (huu, very ugly) for a comparison. xTalks handle this nicely ('=' for a comparison), so don't clutter the language up with 'is' what should be 'becomes'. Just my 2ct, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revdberr: invalid database type
On Fri, 30 Jan 2004 06:09:08 -0800 (PST), Jan Schenkel wrote I had the same problem a while back when I was experimenting with the cgi-engine ; the quick solution is to copy the database drivers into the same dir as the engine and the cgi-scripts. I tried this (with or w/o issuing revSetDatbaseDriverPath); no luck. I'm using engine version 2.51G buildnumber 1. This same engine works perfectly on another server, strange isn't it? The cleaner way is to use the command 'revSetDatabaseDriverPath' to point to the correct directory on your server before making any calls to the revdb functions. I know, this is the way it worked before (on the other server). Could it be some permission problem? (I don't know how *.so files (drivers) are used in Linux. Do they need special permissions to be mounted or something like that (I'm a Linux newbie, please share your knowlege)?) Hope this helped, Jan Schenkel. Thanks so far, Sjoerd Op 't Land ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
revdberr: invalid database type
Hello all, At the moment I'm desperatly trying to get a database connection to work from within a CGI script. I keep getting the 'revdberr: invaldid database type' as connection ID. The database type supplied is correct (tried both 'MySQL' and 'mysql'). I also tried if Revolution has the permissions to acces the specified database-drivers directory, and I can read from the *.so files. What can be the problem here? Is there any way to check for the supported database types? Thanks in advance for any help, Sjoerd Op 't Land ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Playing a Music CD
[EMAIL PROTECTED] wrote/ schreef: snip It appears that Revolution/Transcript can't directly access a music CD, but is there some utility or plug-in that can? Just Play-Pause-Stop type controllers aren't enough; I need to specify start and stop times at runtime. What about using AppleScript to do this job? Thanks, Mark Greenberg Regards, / Groeten, Sjoerd BTW You know you are using HTML? ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Screenmouseloc
Richard D. Miller wrote/ schreef: Can't get the screenmouseloc() command A bit more precise, the screenmouseloc is a global property (a bit like a function, but it is settable. to work under OS 9.2, even enclosing the coordinates in quotes. Does this work for others? I guess you mean setting it here. On MacOS 9.0.4 (here) it doesn't work. I heard something like that it only worked on Windows. Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: iCalendar/vCalendar (OT: joke)
[EMAIL PROTECTED] wrote/ schreef: So what standards body issued the U for voltage? SI (system internationale) And, is U still expressed in volts? Yes. I propose to stop this OT-thread. If you have any questions about electronics, mail me or search the web, but let's stop posting it here. Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: iCalendar/vCalendar (OT: joke)
Dar Scott wrote/ schreef: I don't know what iCalendar/vCalendar is, but I think it will have units of conductance, the inverse of resistance (ohms). ohms^-1 (although V isn't the symbol for voltage anymore, it now is U) Dar Scott Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Question about CGI
james lewes wrote/ schreef: I realize this is off-topic, but I am trying to figure out how to attach a search engine to my website, so that visitors can search it for content, does anyone have a suggestion Well, I think a have... If you want to write a script for this yourself in Transcript, you would indeed have to use the Transcript CGI interpreter and you home-cooked script (you could also consider using a pre-fab search engine from Google or something). A detailed guide is on http://www.runrev.com/revolution/developers/articles/tipoftheweek/6.html More questions? Feel free to ask. Good luck! Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Relational database capabilities?
Paolo Basile wrote/ schreef: In a database like FileMakerPro I'd think about different files (students, grades, assignements, and so on) and about a Master interface which links all of them showing the useful fields in each situation. Is it possible to create something similar with Revolution? Please help me to understand, thanks. When you want relational databases, I think you'd better use an external relational database (e.g. FMPro), and use the RunRev database connectivity (more in the Docs) to connect to this database. RunRev could the be a front-end for your datbase). Paolo Basile Italy Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Repost: ODBC -- Excel
Hello all, I've been here some while, bit mainly working with MetaCard, so thats why you didn't hear very much from me... My question: Did anyone succeed making an ODBC connection with an Excel sheet? I configured the control panel ODBC 32-bin (Win98) for a System-DSN using the Excel driver... but I can't seem to make a connection from within RunRev. Any hints/ suggestions? Thanks in advance, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: externals collection
Shao Sean wrote/ schreef: the external collection listed at http://www.xworlds.com/metacard/external.htm costs 50$, is it still supported? can it still be purchased? If I'm not mistaken, it's free now, you can ask for a registration code at the metacard company. Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Execute DOS commands from Rev?
Richard Harrison wrote/ schreef: Hi there, Is there anyway to execute a DOS command from Rev? try shell(command) E.g.: answer The directory contains: return shell(dir) Thanks in advance! Rick Harrison Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: / in menuItem
Kurt Kaufman wrote/ schreef: I need to use the / character as part of a menuItem. Is there an escape character that I can use such that RR won't interpret the / as designating a keyboard shortcut? Already tried //? Wild guess... Thanks, Kurt Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: sound images
Nicholas Thieberger wrote/ schreef: While on the topic of sound in runrev, does anyone have a way of displaying a soundwave and selecting a bit of it and returning the start/end point of the chunk? I want to display a 45 minute sound file and be able to transcribe it and have time alignment of each transcribed chunk. snip I guess you should first understand how the .wav of .aiff (or .au) fileformat works, and then usse a polygone to display the points. Thanks Nick Thieberger Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rev conference
Devin Asay wrote/ schreef: snip To get an idea of your level of interest, tick one of the items below: ( ) I will definitely come to a Revolution workshop at Macworld NY. ( ) I would consider coming to a Revolution workshop at Macworld NY. (x) Other: I won't come because NY is too far (read: too expensive) for student like me. Are there any people interested in attending such a conference in Europe? I'd be willing to organise this if there is enough support to do this in Holland. Thanks. I think this could be a great thing for the Rev community if it comes off. Devin Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Return all paths, recursively to deepest level
Sivakatirswami wrote/ schreef: Aloha: I think about 2 years ago Kevin or Richard sent me a script that would return the full path for all folders and files, recursively down from the current working directory... but I can't seem to find that script... Also I can't seem to find the archives any more for the metacard card list serve... [snip] I made something myself, have a look below. Your list would be possible with: answer folder Choose dir to dig... if the result is Cancel the exit to top put relPath(deepFiles(it),it) into field tFiles Regards, / Groeten, Sjoerd --- SCRIPT --- function deepFiles startDir set the cursor to busy if it is Cancel then exit to top set the directory to startDir local tFiles repeat for each line tFile in the files put startDir / tFile into line (the number of lines in tFiles + 1) of tFiles end repeat repeat for each line tDir in line 2 to -1 of the directories put deepFiles(startDir / tDir) into line (the number of lines in tFiles + 1) of tFiles set the directory to startDir end repeat return tFiles end deepFiles function relPath absFiles,absDir repeat for each line tFile in absFiles put oneRelPath(tFile,absDir) into line (the number of lines in relFiles + 1) of relFiles end repeat return relFiles end relPath function oneRelPath absFile,absDir set itemDel to / repeat forever if item 1 of absDir = item 1 of absFile then delete item 1 of absFile delete item 1 of absDir else put repeatString(../,the number of items in absDir) before absFile exit repeat end if end repeat return absFile end oneRelPath function repeatString rString,rTimes local repeatedString repeat for rTimes times put rString after repeatedString end repeat return repeatedString end repeatString ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scrollbar
Ken Ray wrote/ schreef: The closest I can come to what you want is: set the style of sb 1 to scale set the startValue of sb 1 to 1 set the endValue of sb 1 to 3 set the thumbSize of sb 1 to 1 set the pageInc of sb 1 to 2 set the lineInc of sb 1 to 1 -- this is ignored in scales though The scrollbar has this script: on scrollbarDrag set the thumbPos of me to (the thumbpos of me) end scrollbarDrag This sort of snaps to the proper thumbpositions, but it flickers as it's doing so. I'll keep hunting for a better solution, but it would be great if Rev had a snapToPage property (or equivalent) that would take the flickering away. It flickers because you try to execute the handler continuously. A solution might be using the mouseUp handler: on scrollbarDrag put the thumbPos of me into field 1 end scrollbarDrag on mouseUp set the thumbpos of me to round(the thumbpos of me) end mouseUp It then will only snap when released, but it may be acceptable. Ken Ray Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: CGI Creation
Tim Bobo wrote/ schreef: Can anyone point me in the direction of any documentation about how to use Revolution for CGI creation? Well, I'm working on a primer on that subject. It's going to be at http://www.mctools.org/~slash/index.html -- Tim Bobo http://www.leftbrainmedia.com [EMAIL PROTECTED] Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Uploading a file the webform way
Terry Vogelaar wrote/ schreef: I know it is possible to upload files using the FTP-protocol. I also know it is possible to send messages to a web server just like a HTML-form would send messages. But is it also possible to upload files that way? Like a HTML-form that has a INPUT type=file? (I realize not all listers will understand what I am talking about; sorry.) I think I realise what you're talking about, and it ought to be possible, but I also heard there were some pitfalls. Just try to make such a form and see what input you get. (Using the echo.mt script, for example.) Terry Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Menus
Robert Presender wrote/ schreef: Hi, I want to determine the number of menu items of a particular menu by script but have been unable to find a Transcript syntax that will do it. ( Mac OS 9.2.2, RR 1.1/1.1.1b1) I assume that your talking about the menus of the RunRev IDE. Then an expression like: put button File of group revMenubar of stack revMenuBar Will result in (try to type this in the Message Box): --- New Mainstack (New Substack Open Stack.../O Open Recent Stack (None Found (Close/W (Close and Remove From Memory... - (Import As Control Image File.../ Snapshot Audio File... Video File... Text File... (EPS File... - All Images In Folder... All Audio Files In Folder... (New Referenced Control Image File... Quicktime-Supported File... - All Images In Folder... - (Save/S (Save As... (Move Substack to File... (Revert to Saved... - Build Distribution... - Page Setup... (Print Card.../P (Print Field... - Quit/Q --- And an expression like: put the number of lines in button File of group revMenubar of stack revMenuBar Will result in the number of menuItem (also the nested ones, the 'subItems'). You may want to filter them and/or the separators, '-', out, but this is the basic. Will appreciate any help. Regards ... Bob Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Number or not?
Terry Vogelaar wrote/ schreef: Hello all, Simple question: is there a way to verify if a variable is a number? AppleScript makes a difference between 2 and 2, but it also does not accept string-parameters without quotes. So I want to put quotes around a parameter only when it is not a number. Any suggestions? Try this one (untested): function formatVar vContents if isNumber(vContents) then return vContents else return quote vContents quote end formatVar Terry Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Playing Sound Clips
Try: On Signal Play Clip a wait until the sound is done Play Clip b wait until the sound is done Play Clip c end Signal Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: go to several stcks in same window
rawKeyDown keyNumber keyDown keyName keyName is an ASCII char (8bit) keyNumber is a key ID number (16 bit) charToNum(keyName) will return a number between 0 and 2^8 numToChar(keyNumber) shouldn't return anything, because the input can possibly be a number higher than 2^8, so won't be a valid ASCII number. Hope this clarifies some things... Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Read serial data?
David Vaughan wrote/ schreef: Is it possible to read serial data on a Mac with USB ports? In the Transcript dictionary it refers only to reading Modem and Printer ports which are the old Serial/LocalTalk ports, and I am wondering if these commands will transpose to reading from the USB or if there is another command or technique. At present, this is not possible with RR itself and I don't know about some external for this. thanks David Vaughan Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: base64
Dan Friedman wrote/ schreef: Greetings once again... I am using the base64Encode/Decode as a way to do a simple encryption. All I really am trying to do is prevent the user from opening a text file in text editor and see the data. In doing this, I have experienced some problems on the Mac (the PC is fine). It appears that if the Microsoft Component Library is not installed, it fails (sometimes). Anyone ever heard of any problems with base64Encode on the Mac? Or, is there a better way I should be encrypting my text files? No (I am on a Mac), and I even think this can't have anything to do with the MCL. When exactly do you experience the problems? What else can be causing the error messages? As always, I thank you in advance, Dan Friedman Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to set the linktext?
Chipp Walters wrote/ schreef: Is there an easy way to set the linkText of a text string in a field using the RunRev interface? Guess it ain't there. Should be, anyway. Also a feature (toggle-able) for auto-linking would be nice. (When I type http://* , www.*, *.com, *@* in a field, it automatically becomes a link, an a revGoUrl script is inserted. Thanks for any help, Chipp Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Certian Folder Filter
Mike Brown wrote/ schreef: Can Rev play an Mp3 file? I just tried the script listed below and got nothing but noise. Sometimes, MC (rev) doesn't play sounds via the 'play' command (you'll hear some painful noise), but does via a player. Mike Brown Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: setting the default folder to the folder where the stack is..
Scott Rossi wrote/ schreef: Recently, Sjoerd Op 't Land wrote: So, optimized we'd get: function getFolderFromFilename tFilename set itemDel to / return item 1 to -2 of tFilename / end function getFolderFromFilename The above could be even shorter: function getFolderFromFilename tFilename set itemDel to /;return item 1 to -2 of tFilename / end getFolderFromFilename True, but it doesn't make it faster nor more readable. It still 'counts' for two lines. Also note that the last line should not include the word function Sure. (I wasn't really awake at that moment ;-) Regards, Scott Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: setting the default folder to the folder where the stack is..
Devin Asay wrote/ schreef: At 7:44 AM -0800 12/13/01, Niklas wrote: How do you set the default folder to the same folder where the stack is? I suppose its just to use the filename of this stack and remove the filename..? I am using the starterkit. so if its possible to do it with two statements, that would be grand! /Niklas I often put this function into my stack script to provide a simple way to get the path to the current folder: [snip] With your solution, it would still cost Niklas some lines in his stack script. Another solution would be: set itemDel to / set the directory to item 1 to -2 of the fileName of this stack (Have used the starter kit for some years, so... ;-) Hope this helps. Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rotate?
Mike McKenzie wrote/ schreef: Is it possible to rotate an object or text lable? AFAIK, it's only possible to rotate images. Of course you could then convert another kind of object to an image, and then rotate that. Hope this is of some use. Thanks! Michael McKenzie Director of Advertising Ruby-Gordon Inc. Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Stupid Unix tricks
Bill Vlahos wrote/ schreef: There are some command line programs I would like to put in a nice UI. It seems like Revolution would make this pretty easy except I don't see in the documentation how to write it. Is there a way to program Rev for command line functions directly? I would like to send commands and read and display the results in Rev and would rather not simply AppleScript the Terminal app. I only need to do this for Mac OS X but I suspect the principal would be the same for other platforms too. AFAIK, you can use the shell() function on Wintel/*NIX platforms, except MacOS (X), unfortunately. Bill Vlahos Jet Propulsion Laboratory Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Running a batch file in DOS
Jerry Daniels wrote/ schreef: I couldn't figure out how to get the C/ part of the script to work and time was running out, so the cmd window remained open behind the PowerBuilder app that I opened. Does set hideConsoldeWindows to true help? Thanks, again for the help. Jerry Regards, / Groeten, Sjoerd ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution