Re: XP, Vista, Choosing where to save rev files
sims wrote: If I let a Windows user choose via dialog where my app creates and saves a rev file, will any folders that can be chosen by the user be accessible to the rev app when it goes to open that file again? I'm a bit worried about users choosing to save the file into a folder that Vista will then not allow the rev app to open that file. Maybe I'm being overly paranoid ;-) But Vista seems a bit cranky. Vista *is* cranky, but I've had good results as long as I stick to folders within the user space. You can direct the user to their Documents folder by specifying the path there in the ask file dialog, using the specialFolderPath function: ask file Save file as: with specialFolderPath(Documents) That's no guarantee the user won't switch to a more troublesome folder, but in my experience many Windows users tend to stick to whatever folder you prompt them to. -- Richard Gaskin Fourth World Revolution training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com ___ 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: XP, Vista, Choosing where to save rev files
On Sep 12, 2009, at 6:17 AM, Richard Gaskin wrote: sims wrote: If I let a Windows user choose via dialog where my app creates and saves a rev file, will any folders that can be chosen by the user be accessible to the rev app when it goes to open that file again? I'm a bit worried about users choosing to save the file into a folder that Vista will then not allow the rev app to open that file. Maybe I'm being overly paranoid ;-) But Vista seems a bit cranky. Vista *is* cranky, but I've had good results as long as I stick to folders within the user space. You can direct the user to their Documents folder by specifying the path there in the ask file dialog, using the specialFolderPath function: ask file Save file as: with specialFolderPath(Documents) That's no guarantee the user won't switch to a more troublesome folder, but in my experience many Windows users tend to stick to whatever folder you prompt them to. You could use a conditional loop and test, such as on testValidity put false into successful put itty bitty string into stringToWrite repeat until successful is true ask file Save file as: with specialFolderPath(Documents) put it into userChoice if it is empty then exit to top -- user cancelled put stringToWrite into url (file: userChoice) put url (file: userChoice) into gotItBack if gotItBack is not empty then put true into successful --else user chose a file and path that could not be used -- either the filename is invalid or the folder or both end repeat --if we get here, we can use the folder and file name ... more steps end testValidity 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
Custom Widget Technique Question
I'm working on a new project and I'd like some advice on how to create custom controls to use on a graphical process display. This will display a water pipeline system with all it's tanks, pipe, valves, flow/pressure meters etc. One of the items I have to display is a water tank and I need to display how much water is in it as both a number and a graphical representation of the water level. I've got the gist of the drawing managed but I'm going to have to have several of these and I don't want to hand create them every time so I'm looking to make a water tank custom control. I need to put it somewhere, send it a current level which would update the numeric display and set the water level. I'd also like to size them so I could have big ones and small ones. That's a long introduction to my actual question. I know I can make a group of the various parts and script the updating and possibly sizing using behavior scripts but once I've created it, where to I put it? Do I create a stack with this group on it and then clone it where I need it? Do I copy and paste (via script)? I can't add it to the Rev graphic object pallet like the datagrid is now. This is not the only custom control I'm going to need so I'm looking for a generic way to handle this kind of thing. In the end, the program will not only have a display of our pipeline but I'd also like to have a separate design program to create the system diagrams in case any other pipelines want to use the program. len morgan ___ 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: Custom Widget Technique Question
Len, this sounds really cool: I'm working on a new project and I'd like some advice on how to create custom controls to use on a graphical process display. This will display a water pipeline system with all it's tanks, pipe, valves, flow/pressure meters etc. One of the items I have to display is a water tank and I need to display how much water is in it as both a number and a graphical representation of the water level. I've got the gist of the drawing managed but I'm going to have to have several of these and I don't want to hand create them every time so I'm looking to make a water tank custom control. I need to put it somewhere, send it a current level which would update the numeric display and set the water level. I'd also like to size them so I could have big ones and small ones. That's a long introduction to my actual question. I know I can make a group of the various parts and script the updating and possibly sizing using behavior scripts but once I've created it, where to I put it? Do I create a stack with this group on it and then clone it where I need it? Do I copy and paste (via script)? I can't add it to the Rev graphic object pallet like the datagrid is now. This is not the only custom control I'm going to need so I'm looking for a generic way to handle this kind of thing. In the end, the program will not only have a display of our pipeline but I'd also like to have a separate design program to create the system diagrams in case any other pipelines want to use the program. Check out the new Behaviors in v3.5. This will let you use a button script that you could put anywhere (I tend to put mine in a library or a substack, depending on whether I plan to reuse them in other apps or not), and then assign the behavior of your template group to that button script. From then on it's really easy, since all your code is in one place. Using getProp and setProp you can adjust any number of things within the group from a single property setting. And if you use v3.5's new selectGroupedControls property for groups, you can keep your layout work clean since the pointer tool will treat the group as a single object, regardless of the setting of the global property of the same name. Use copy grpDescriptor to destinationStackDescriptor to add copies of groups to your layout. Keep us posted on how this goes. I love simulations, and would love to see what you come up with. -- Richard Gaskin Fourth World Revolution training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com ___ 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: Custom Widget Technique Question
If you haven't seen Scott Rossi's work, you should. He's created some amazing controls. Buy or use for inspiration. http://www.tactilemedia.com/ click software; click TMGauge - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/9/12 Len Morgan len-mor...@crcom.net I'm working on a new project and I'd like some advice on how to create custom controls to use on a graphical process display. This will display a water pipeline system with all it's tanks, pipe, valves, flow/pressure meters etc. One of the items I have to display is a water tank and I need to display how much water is in it as both a number and a graphical representation of the water level. I've got the gist of the drawing managed but I'm going to have to have several of these and I don't want to hand create them every time so I'm looking to make a water tank custom control. I need to put it somewhere, send it a current level which would update the numeric display and set the water level. I'd also like to size them so I could have big ones and small ones. That's a long introduction to my actual question. I know I can make a group of the various parts and script the updating and possibly sizing using behavior scripts but once I've created it, where to I put it? Do I create a stack with this group on it and then clone it where I need it? Do I copy and paste (via script)? I can't add it to the Rev graphic object pallet like the datagrid is now. This is not the only custom control I'm going to need so I'm looking for a generic way to handle this kind of thing. In the end, the program will not only have a display of our pipeline but I'd also like to have a separate design program to create the system diagrams in case any other pipelines want to use the program. len morgan ___ 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 ___ 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: Custom Widget Technique Question
Thank you for this Richard. This is the kind of information I was looking for. Perhaps I can provide a library of process control custom controls as a library like some people supply custom icon libraries. I'll keep you posted on what I come up with. len Richard Gaskin wrote: Using getProp and setProp you can adjust any number of things within the group from a single property setting. And if you use v3.5's new selectGroupedControls property for groups, you can keep your layout work clean since the pointer tool will treat the group as a single object, regardless of the setting of the global property of the same name. Use copy grpDescriptor to destinationStackDescriptor to add copies of groups to your layout. Keep us posted on how this goes. I love simulations, and would love to see what you come up with. -- Richard Gaskin Fourth World Revolution training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com ___ 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 ___ 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: [ANN] tRev Feature Friday Video
Jerry Daniels wrote: Revolution users, We have new features again this week. Check out our two minute video: Cool. But I am still waiting in hope for new features that let me use tRev for editing .irev files. I'm not greedy - I don't need any integration with the On-Rev client, or even any ability to handle include files to allow clever searches for handler definitions - just enabling the open file .. and letting us have the nice editor capabilities on a basic script file would be wonderful. (btw - OK, I am greedy - it would be nice. :-) -- Alex ___ 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
OT: On-Rev html - irev conversion.
I'm about to go live with my first real on-rev (i.e. irev based) site. I have a couple of sites up already, but this is the first pre-existing site that I am converting over to take advantage of .irev scripts, and being fully dynamic. And I have a small worry . There are a couple of different ways that users of the site might have become tied into .html files - bookmarks to specific pages within the site - links on their own site to pages within the site Is there any way that I can tell the on-rev server to substitute file on http requests ? i.e. if a browser asks for abc.html, give it abc.irev I can (or could if I looked it up) put in a redirect for abc.html to abc.rev - but I don't want to do that for each individual file, I'd like to do it in one place for all files (or, ideally, all files where the .html file doesn;t exist). Thanks -- Alex. ___ 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: OT: On-Rev html - irev conversion.
Alex Tweedly wrote: Is there any way that I can tell the on-rev server to substitute file on http requests ? i.e. if a browser asks for abc.html, give it abc.irev I can (or could if I looked it up) put in a redirect for abc.html to abc.rev - but I don't want to do that for each individual file, I'd like to do it in one place for all files (or, ideally, all files where the .html file doesn;t exist). I don't know if there are restrictions with using mod_rewrite directives in .htaccess files on the on-rev.com server, but you can use them on just about any Apache server to do what you need. The adventure begins here: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html And the web is full of examples for just about anything you want to do with mod_rewrite. I've been pleasantly surprised by the range of things that can be done with it. -- Richard Gaskin Fourth World Revolution training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com ___ 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: Printing a series of numbers
Jérôme Rosat wrote: Thanks Craig and JB. My problem is not to reload the tray but to stop printing the number (and stop increasing numbers) when the tray is empty. I was probably not clear. Sorry for that but english is not my native tongue. In my company we receive approximately 300' 000 mails during a year. Currently we number each mail with a label preprinted with a number. And we stick the labels to the hand. So, what I want it is to put all mails received during the day in the tray of the printer and print a number on each mail and when the tray is empty, I need to store the last number in my stack and use this number the following day to start again to number mails. Jérôme Ah, I think I get it. You want to print a variable number of serial numbers on the documents received, which you have placed in the paper tray of your printer. The first serial number should be yesterday's last serial number plus 1. So yesterday's range might have been from 19273 to 19411 and today should start at 19412 and go through until the documents are out (say there were 100, then tomorrow's first document will be numbered 19512). Easy (ish) way: 1) Stack your documents in the paper tray and print 1000 serial numbers onto them starting from (say, as above) 19412. 2) In the morning, look at the output from the printer and determine that the print run ran out at 19511. 3) Cancel the outstanding print queue 4) Set rev to store 19512 as the new start serial number of the print run. 5) Collect up today's documents and put them in the print tray. 6) Print 1000 serial numbers onto the documents, starting at the figure recorded in step 4. 7) Go home 8) In the morning look at the output from the printer and determine that the print run ran out at 19643. 9) Cancel the outstanding print queue. 10) Set rev to store 19644 as the new start serial number of the print run. 11) onwards, repeating the appropriate steps as necessary. More technical way - possibly/probably printer/platform dependent: Find out what SNMP/html/scripting methods there are for interrogating the print queues. Some printers have an interface for reporting status, and some OS scripting can be employed. I can't give you any pointers about SNMP at all. It may be worth checking if you could get any information from the given printer by checking in a web browser. If you can, then you could probably use rev to get the url of the printer status page, and parse the data returned to extract information about the paper situation. If you did this in a repeat loop before sending your next serial number print job you could get rev to tell whether it is safe to print the next number or wait for your return to stack the new lot of documents in the paper tray. If the last print job was reported OK and the printer status says paper is not out, then add 1 to the serial number and print, else exit the repeat loop. If on Windows, you could use WMI scripting by getting rev to do a vbscript with WMI interrogation of the printer status to verify that the last print job did not fail and the status is ready and similarly you could put that script in the loop and depending on result returned from the WMI interrogation, either advance the count and print again or exit the loop and wait for you to start again with new documents the next day. If on Mac, I imagine there may be something vaguely similar in Applescript, or Linux maybe some shell scripting, but I have no idea. On Windows, there is some vbscript which you can look at, which shows some WMI interrogation on printing (as well as lots of other stuff) here: http://www.microsoft.com/technet/scriptcenter/guide/sas_prn_overview.mspx?mfr=true I don't know if any of that is useful, but hope it helps. S/O -- View this message in context: http://www.nabble.com/Printing-a-series-of-numbers-tp25351555p25418521.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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: OT: On-Rev html - irev conversion.
Richard Gaskin wrote: I don't know if there are restrictions with using mod_rewrite directives in .htaccess files on the on-rev.com server, but you can use them on just about any Apache server to do what you need. The adventure begins here: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html And the web is full of examples for just about anything you want to do with mod_rewrite. I've been pleasantly surprised by the range of things that can be done with it. Thanks Richard - looks like it can do everything I want (and a whole lot more). But I'll leave that for tomorrow The site is now live, feel free to send me comments (off-list) about www.kilmelford.com all done with irev - simple file/text based cms for articles, news stories, etc., plus dynamic building of the various lists and databases of businesses, walks, etc. (and events - but the next newsletter comes out next week, so the calendar is just about empty right now) -- Alex. ___ 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: [ANN] tRev Feature Friday Video
But I am still waiting in hope for new features that let me use tRev for editing .irev files. I'm not greedy - I don't need any integration with the On-Rev client, or even any ability to handle include files to allow clever searches for handler definitions - just enabling the open file .. and letting us have the nice editor capabilities on a basic script file would be wonderful. I would love this too, and have been considering a work-around. What about making a stack that listed all the irev files in a selected folders. When you wanted to edit one, it could create a button, set the script of that button to the contents of the irev file and start editing it. When finished, a Save button could write the script back to the irev file. However, if the script didn't compile, then this wouldn't work I guess. Cheers, Sarah ___ 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: [OT] Recover Files From OS X User Account
Thanks to all the folks who chimed in about recovering user-account files on OS X. Enabling the root user was indeed the solution that allowed me to access the user files -- while I haven't gone through all of them to see if any damage was done, they all were recovered without issue, and the drive reformatted. Annoyingly, the whole mess was initiated by a standard system update from Apple which, in the years of running their updates, has never caused an issue. Guess it was bound to happen. Make backups of your stuff! Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design ___ 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: [ANN] tRev Feature Friday Video
On Sun, Sep 13, 2009 at 9:17 AM, Sarah Reichelt sarah.reich...@gmail.com wrote: But I am still waiting in hope for new features that let me use tRev for editing .irev files. I'm not greedy - I don't need any integration with the On-Rev client, or even any ability to handle include files to allow clever searches for handler definitions - just enabling the open file .. and letting us have the nice editor capabilities on a basic script file would be wonderful. I would love this too, and have been considering a work-around. What about making a stack that listed all the irev files in a selected folders. When you wanted to edit one, it could create a button, set the script of that button to the contents of the irev file and start editing it. When finished, a Save button could write the script back to the irev file. I've just put together a stack that does this and it seems to work perfectly. I haven't tried uploading any edited files yet (does On-Rev require any particular line endings?) and it doesn't create new files yet, but if anyone wants to test it, let me know off-list and I'll email a copy. Since compiling the script seems to work fine with irev and HTML all intermingled, I guess that RunRev/Jerry has already been working on something like this. Now I just need to incorporate it with my existing FTP stack, and I'll have a system :-) Cheers, Sarah ___ 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 snow leopard
I just installed snow leopard - and now I can't launch a stack with a double click anymore from the finder. I get the dialog: Unable to open stack: stack is corrupted, check for ~ backup file. If I open the same stack within runrev with the open command, everything works as expected. If I launch the stack, I get the same problem. Any idea what goes wrong ? Till ___ 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 snow leopard
On Sun, Sep 13, 2009 at 12:42 PM, Till Bandi tba...@swissonline.ch wrote: I just installed snow leopard - and now I can't launch a stack with a double click anymore from the finder. I get the dialog: Unable to open stack: stack is corrupted, check for ~ backup file. If I open the same stack within runrev with the open command, everything works as expected. If I launch the stack, I get the same problem. It's a known issue with Snow Leopard. Open all stacks either by command (open or go) or by using the File menu. Double-clicking a stack will work if Rev is not already running, but not after that. Cheers, Sarah ___ 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