Re: Creating files on on-rev
Hi, Thanks for the suggestions everyone. Sarah - This command is used from an irev file located on the server. Do I still have to set permissions somewhere on the server? Mike - Your suggestion does not work for me so I'm suspecting either a config or permissions issue. The videos I'm referring to are the ones accessed via the on-rev site http://www.screencast.com/users/Runtime_Revolution/folders/On-Rev/media/a0e3 c89f-ef90-4805-aa6e-d320c4b419d7# Bjvrnke - Thanks - I appreciate that you meant for me to change the permissions just for tests. I did not change the global permissions, rather I created a new directory with full permissions and ran tests from there. Again, it did not work Regards Kevin Kevin Wrote: On Kevin's on-rev how to videos, he uses put something after URL file:log.txt which is apparently meant to create a text file on the server. I've tried it but no such file appears anywhere. Sarah Wrote: It depends where the script is. If this command is used from an irev file on the server, then it will work fine as is. If it is on your computer, then you need to use ftp commands and supply a user name password, e.g. put something into URL (ftp: username : password @myname.on-rev.com/folder/log.txt) While this is a permissions problem, I would not recommend Bjvrnke's solution of just opening access to your folder. Mike Wrote: With the file a.irev on the server we can make a file appear by typing http://taishan.on-rev.com/a.irev in your browser. --- -- a.irev on server --- html ?rev put duke holds on into url file:a.txt put job finished ? /html -- address in browser http://taishan.on-rev.com/a.irev Might that be what you are interested in doing? BTW, where are those how-to's by Kevin? Mike Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Creating files on on-rev
On Kevin's on-rev how to videos, he uses put something after URL file:log.txt which is apparently meant to create a text file on the server. I've tried it but no such file appears anywhere. He goes on to use this when sending mail (which is what I'm attempting to do) but I'm unable to test the mail as the original file is not created. I'm aware of issues others have had sending mail I don't understand the syntax for this URL - is it right? Or perhaps my configuration (Freyr) is wrong? regards Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Odd colour effects with mac plug in
Thanks everyone who took the time to answer my last post below. I built a revlet which views fine on all my windows boxes and while it viewed Ok on the mac (leopard) I still had the old problem of the dialogue appearing behind safari when the revlet opened a find file dialogue. Wondering if this had been fixed, I downloaded the latest plug in from the mother ship and sure enough, it works! Except that all text in the revlet is now bright blue where it should be black and cyan where it should be red. Interestingly, any plug in dialogues also display blue text. The exception appears to be text within a drop down menu or combo box. This displays fine. Based on the answers and suggestions, I did a bit of testing. This does appear to be an issue seen on PowerPC processors but this never used to be the case. As I mentioned before, the original plug-in had the dialogue box issue (and perhaps others) but the text colour was fine. The dialogue has been fixed but the font colour has changed. It's not only the revlet that shows the issue, any plug in dialogue also has the problem so there's nothing I can do to the revlet to change this. Not complaining, these things happen and I'm sure this issue will be resolved at some point but, and this is my question, how will I know? Where do I go to find what's been fixed and when new releases have been made? regards Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Odd colour effects with mac plug in
I built a revlet which views fine on all my windows boxes and while it viewed Ok on the mac (leopard) I still had the old problem of the dialogue appearing behind safari when the revlet opened a find file dialogue. Wondering if this had been fixed, I downloaded the latest plug in from the mother ship and sure enough, it works! Except that all text in the revlet is now bright blue where it should be black and cyan where it should be red. Interestingly, any plug in dialogues also display blue text. The exception appears to be text within a drop down menu or combo box. This displays fine. Any ideas? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Getting mouseColor from outside the app window
Hi, I want to sample the color under the cursor and am using set the cursor to cross repeat until the mouseClick set the backgroundColor of graphic sample to the mouseColor put the mouseColor into fld rgb end repeat set the cursor to arrow This works fine within the confines of the rev app window but is it possible to sample a color from anywhere on the screen? Using the above script captures the color outside the rev app window and puts the color into the graphic as the mouse moves but the mouseClick is ignored when the cursor is outside the app window Seems logical that it should act this way but there must be a way to get round this. I'd be grateful for any pointers Regards Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Problems with libURLftpUploadFile
Hi all, Had no takers on this one so I thought I'd repost it I have a problem where: Put fld contains FTP path into tURL libURLftpUploadFile c:/myfile.txt, tURL ,showStatus works fine but. Put fld contains FTP path into tURL Put c:/myfile.txt into tFilepath libURLftpUploadFile tFilepath, tURL , showStatus Results in c:/myfile.txt instead of the correct data being written into the uploaded text file The same happens if I use libURLftpUpload So, is it not possible to use 2 variables? Or am I missing something Regards Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Problems with libURLftpUploadFile
Thanks Pierre I had preferred to use libURLftpUploadFile because I could set up a callback to work a scrollbar, do other things when pStatus is downloaded etc However, I seem to have got it working now. FYI, Put fld contains FTP path into tURL Put c:/myfile.txt into tFilepath libURLftpUploadFile tFilepath, tURL , showStatus does not work Put fld contains FTP path into tURL Put c:/myfile.txt into nURL libURLftpUploadFile nURL, tURL , showStatus works fine! Only difference is the name of the variable - wonder why? Thanks anyway Kevin Pierre wrote Try this working 24/7 there (Rev Ent 3.5, OS X 10.5.8) put url (binfile: path_to_thefile_to_upload) into url (your_ftp_server_credenti...@address the_remote_path / the_uploaded_file_name)) if url (FTP_Server_Address.../the_uploaded_file_name) is then beep Cheers, P. Le 4 sept. 09 ` 16:37, Kevin Stallibrass a icrit : Hi all, I have a problem where: Put fld contains FTP path into tURL libURLftpUploadFile c:/myfile.txt, tURL ,showStatus works fine but. Put fld contains FTP path into tURL Put c:/myfile.txt into tFilepath libURLftpUploadFile tFilepath, tURL , showStatus Results in c:/myfile.txt instead of the correct data being written into the uploaded text file The same happens if I use libURLftpUpload So, is it not possible to use 2 variables? Or am I missing something Regards Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: problems with libURLftpUploadfile
Thanks Jim, This is really good advice which I'll try this evening. I does put me in a bit of a quandary though as my original script now works just by changing the variable name.(no idea why) This will probably fail at the worst moment knowing my luck so I'll try your suggestion and report back. Regards Kevin Stallibrass Jim Ault Wrote: My quick guess is that you are seeing the following... -1- libURLftpUploadFile c:/myfile.txt, tURL ,showStatus sending a string to be used by libURLftpUploadFile -2- libURLftpUploadFile tFilepath, tURL ,showStatus allowing the function to 'evaluate' the string inside the variable This probably results in either empty if the file 'myfile.txt' does not exist the contents of myfile.txt read from the hard drive --- Try this variation put c:/ into tFilepath put myfile.txt into tFilename --now concatenate to form the param at the time of sending libURLftpUploadFile ( tFilepath tFilename), tURL ,showStatus This is confusing, I know, but when working with interpretive languages, these nuances are part of the landscape. They have their purpose since there are times when this is exactly what you want. Power programmers use this to their advantage when the literal path and filename is not known but discovered at runtime on different hard drives. Hope this works for you. Let us know. If not I will do a little digging into the libURLftpUploadFile in the library to see how Rev uses the first param. Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Problems with libURLftpUploadFile
Hi all, I have a problem where: Put fld contains FTP path into tURL libURLftpUploadFile c:/myfile.txt, tURL ,showStatus works fine but. Put fld contains FTP path into tURL Put c:/myfile.txt into tFilepath libURLftpUploadFile tFilepath, tURL , showStatus Results in c:/myfile.txt instead of the correct data being written into the uploaded text file The same happens if I use libURLftpUpload So, is it not possible to use 2 variables? Or am I missing something Regards Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: to use Revolution
Hi Kenji, I'm using put http://kenjikojima.com/Photo/ http://kenjikojima.com/Photo/%20myImage.jpg myImage.jpg into tName set the fileName of image nameOfImage to tName and it works for me. I've had success with Set the filename of image nameOfImage to myImage.jpg But when the revlet is loaded on your server, the revlet look for this image in the same folder as the revlet. Not ideal so I prefer to set an absolute path as in example 1 Kevin Stallibrass Technical Specialist Robert Horne Kenji Kojima wrote: I cannot set image filename of revLet. I tried them. set the filename of image 1 to myImage.jpg set the filename of image 1 to http://kenjikojima.com/Photo/ http://kenjikojima.com/Photo/%20myImage.jpg myImage.jpg And used Network of Standalone Application setting. But I could not show the image. It was just a gray image object. Does anybody know how I can show an image. Thanks, -- Kenji Kojima the environment before printing this electronic communication ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Revlet default folder
Thanks a million Martin this was more info than I expected and most welcome. I normally create a separate folder for such files but the point is that the default folder in runrev studio is always the same folder that contains the app (unless you change it) With rev media 4, building for the web, the default appears to be the desktop of the machine that downloads displays the revlet within a web browser Also in answer to Ricks' question, sorry but I'm not using an OSX Server, this is just a standard web service (running on Unix) the revlets are viewed on a web browser using the rev-web plug in Regards Kevin Stallibrass Martin Blackman wrote: check out this link for info on folder paths http://www.sonsothunder.com/devres/revolution/tips/file010.htm Even for a desktop app its not normally considered good practice to save prefs to the same directory as the app ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Revlet default folder
I have saved one of my rev programs for the web. The program stores some preferences in a .txt file in the default folder next to the app. When saving for the web and putting the revlet on my webserver, the app still works correctly but I've noticed that the default folder now becomes the desktop storing the .txt file there. This happens on both mac with safari and XP with IE (I've not tried any other combinations). This is great because a standard rev app will still work correctly with no alterations but I feel I'm likely to annoy a lot of users by cluttering up their desktop. I feel that a better place for the default folder is the temporary internet files folder so that when this folder is emptied via the web browser, my files will be removed at the same time. Trouble is, I've no idea of a global path I could use which would work on all supported browsers/OS's - is there one? Regards Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Revlet behaving badly in Safari
Andre Garzia wrote: Folks, RRE.app is Runtime Revolution Environment, aka, the web plugin. RRE probably mean you have an Alpha version of the plugin, the ones that were seeded to conference going pioneers. If this is so, then, trying to load a revLet will render the browser unresponsive. The file format changed I think, the .revlet files are different from that the alpha plugin loaded. The dialog appearing behind the browser is a bug that RunRev is aware of and trying to fix. cheers andre Thanks Andre for pointing out the answer on this one - it has saved me a lot of investigative time but my question has prompted the disappointed comments from Richmond who tried to help out. My experience so far with revWeb has been so positive that I'm already an advocate, actively spreading the word to previous non Rev users. To read Richmond's comments is slightly worrying and a reminder to me that we're still on alpha and that maybe I should calm down a little. All I can say to Richmond is persevere - it's worth waiting for Regards Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Revlet behaving badly in Safari
I have a small (test) revlet that gets a folder path using the standard answer folder statement. The app works fine as a standalone on both Win XP/Vista and OSX 10.5.7 However, building the app as a revlet gives me a problem with OSX 10.5.7 and Safari in that when the answer folder script is run, the correct dialog appears BEHIND the safari browser. Each time the code is run, another dialog appears, again behind the Safari window. The last of these dialogs can be closed but there is no way I can get rid of the earlier ones without restarting. Exactly the same thing happen with any command that causes an OS window to appear including when using do somethingas Applescript so I presume this must a global thing that I'm missing There are no issues with the revlet running on XP/Vista with IE If you care to look, http://www.roberthorneprofiles.co.uk/apps/test.html - try the 'Set' button but only press it once if you don't want to risk dialogs that won't close Your thoughts appreciated Thanks Kevin Stallibrass Colour Management Specialist Paperlinx Digital Solutions ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Belated Thankyou
Hi, I posted a question end of last year and thought that no one had replied. Although I was watching carefully for a reply, I missed one from Jan Schenkel which I have just stumbled upon. This gives me the solution I was after so thank you Jan Jan Wrote: Hi, I've build a standalone which simply adds a new line of text to a file located on an ftp site, then displays the entire file in a text box. It works fine but when I close the application, windows holds on to the process and I have to force quit it via task manager. [snip] Regards Kevin Stallibrass Hi Kevin, Revolution doesn't automatically quit when the alst window is closed, if there are any 'pendingMessages' - these are messages that are put onto the event queue to be executed at a later time: send TickleMePink to me in 10 seconds Are you using any 'send in time' constructs? If your application is just one window, you can make your life easy and add the following message handler to your stack script: ## on closeStack -- we don't want to quit when we close the window inside the IDE if the environment is not development then quit end if end closeStack ## This way, when your stack window is closed, the engine will effectively quit, even if there are pending messages. Hope this helped, Jan Schenkel ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Help - Windows process won't quit
Hi, I've build a standalone which simply adds a new line of text to a file located on an ftp site, then displays the entire file in a text box. It works fine but when I close the application, windows holds on to the process and I have to force quit it via task manager. The problem only happens if an upload has been made so I presume that a something is being left open somewhere - I just can't find it! Here's what I'm doing.. put cr the short date cutInternetTime tab fld name tab newCtemp tab fld one tab fld two tab fld three tab fld four tab fld five into urlData put ftp://myftp:; fld password @ftp.myftp.co.uk/htdocs/log/myfile.txt into myURL put urlData after URL myURL put URL http://www.myWeb/log/onyxlogfile.txt; into fld table Any light you can shed on this would be gratefully received as I'm running out of hair Regards Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution