Re: number of columns in a table field

2006-05-30 Thread Russ McBride



Thanks Bill, that works nicely.

I don't know now what "viewablecolumns" is supposed to track since  
the number of columns in view at any given moment is different from  
it and the total number of columns is different from it.


And what's the difference between "currentview" and "formattedview"?

Best,
russ



Russ McBride
Programmer/Analyst
The Scholar's Workstation
University of California at Berkeley
510-643-6853


On May 30, 2006, at 2:37 PM, Bill Marriott wrote:


If you're trying to determine how many columns the actual data has, as
opposed to how many columns are visible, the following would work  
(though I

don't know if it is the fastest or most clever method):

put 0 into maxTabs; set the itemdelimiter to tab
repeat for each line x in fld "theField"
  if the number of items in x > maxTabs then \
put the number of items in x into maxTabs
end repeat

I agree with you that the table object is extremely frustrating.

Russ McBride wrote:

Anyone know how to get the actual number of columns and rows in a   
table

field (not the "viewable" number of columns and  rows?




___
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


number of columns in a table field

2006-05-30 Thread Russ McBride


I know, I should probably give up on table fields, but call they're  
useful for building interfaces to databases that I can't give up on  
them yet.


Anyone know how to get the actual number of columns and rows in a  
table field (not the "viewable" number of columns and  rows?


Thanks,
russ

p.s.  If anyone has any info about when a new table field is coming  
out I'm all ears.



Russ McBride
Programmer/Analyst
The Scholar's Workstation
University of California at Berkeley
510-643-6853


___
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


selecting portion of a group to display

2006-05-19 Thread Russ McBride


Can someone point me in the right direction on this noob issue?

Let's say I've got a group of a 100 buttons lined up horizontally.   
Only 3 are seen at any time by virtue of the dimensions of the  
group.  I want to make the next 3 buttons visible without changing  
the dimensions or location of the group.  How?  Essentially, I want  
to horizontally "scroll" within the group's "window".


Thanks,


Russ McBride
Programmer/Analyst
The Scholar's Workstation
University of California at Berkeley
510-643-6853


___
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


set cursor

2006-05-15 Thread Russ McBride



Can't do any cursor control on 2.7.1 (Mac 10.4.6)

on mouseMove x, y
 set the cursor to watch   #doesn't do anything
 #really want to set the cursor to the double i-beam though,  
but can't compile this line
   set the  cursor to (the id of img "vdividecursorgif" of stack  
"revMacCursors")

end mousMove



any tips appreciated.

--russ


Russ McBride
Programmer/Analyst
The Scholar's Workstation
University of California at Berkeley
510-643-6853


___
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: Send Keys

2006-05-11 Thread Russ McBride


Well, AppleScript syntax blows and figuring out the syntax needed to  
reference an object in an unknown object hierarchy blows even  
harder.  UI browser will show you the object hierarchy and also  
generate a reference to the object in Applescript, saving you a lot  
of grief.


It won't be that helpful though if you're trying to script an  
application that is both not applescriptable and was not programmed  
to register it's objects through the normal channels.  I had to write  
a PHP script once that called an Applescript that had to punch a user  
name and password into a crusty old application after opening it.  In  
the end I just figured out the coordinates of the text field and then  
used extrasuites to go to that location and start typing.  Worked  
great.  I thought extra suites was pretty cool.


You should be able to do whatever you need to do even with a  
recalcitrant target application because you can use the finder to  
start the app, and then brute force your way to domination of the  
application using the virtual keyboard and mouse controls.


What are you doing exactly?

Best,
russ



Russ McBride
Programmer/Analyst
The Scholar's Workstation
University of California at Berkeley
510-643-6853


On May 11, 2006, at 10:49 AM, Todd Geist wrote:


Hi

Russ

On May 11, 2006, at 10:14 AM, Russ McBride wrote:

I've been able to send keystrokes into just about any field using  
a combination of the David Lloyd's "Extra Suites"

http://osaxen.com/files/extrasuites1.1.html


This is basically what I am doing... but it is not fun  :>)




and Prefab's UI Browser (to help you figure out what object you  
are trying to control)

http://www.prefab.com/uibrowser/
Apple has a similar tool for UI browsing but as I recall this  
worked a bit better.





I use this to, but I am curious what value does UI Browser have to  
Extra Suites?


I have UI browser and it works great for the GUI scripting, but  
Extra Suite has it's own method for identifying things doesn't it?



___
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: Send Keys

2006-05-11 Thread Russ McBride



I've been able to send keystrokes into just about any field using a  
combination of the David Lloyd's "Extra Suites"

http://osaxen.com/files/extrasuites1.1.html

and Prefab's UI Browser (to help you figure out what object you are  
trying to control)

http://www.prefab.com/uibrowser/
Apple has a similar tool for UI browsing but as I recall this worked  
a bit better.


In cases where there is no object that's registering itself with  
through the usual Objective-C mechanisms you can always just hard  
code in a location and then begin to insert text.  Of course the  
object (text field, e.g.) must actually be at the location for it to  
work.


1.  Don't forget to put the osax library in the right location (I  
think it's /System/Library/ScriptingAdditions/).
2.  Play with the osax commands in a regular applescript editor until  
you know what's going on

3.  Get your working applescript working inside a runrev stack
4.  Enjoy life

Hope that helps,
Russ



Russ McBride
Programmer/Analyst
The Scholar's Workstation
University of California at Berkeley
510-643-6853


On May 11, 2006, at 7:35 AM, Todd Geist wrote:


Thanks Rob

But I wasn't very clear.  I need to send key stroke from Rev to  
another app.  Both "type" and "click" only work within the current  
Rev stack.


I really need this QuickKeys like functionality.

Unfortunately I have been unable to get GUI scripting on OSX to do  
what I need either.  It is very frustrating  :<(


Todd


On May 11, 2006, at 7:13 AM, Rob Cozens wrote:


Hi Todd,


Any one know of a way to send keystrokes from Rev.


Check out the Type command.


--

Todd Geist
__
g e i s t   i n t e r a c t i v e

___
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


table fields

2006-05-10 Thread Russ McBride


I started playing with table fields with the plan of building a db  
interface with them and I'm wondering if there are people out there  
who are actually able to rely on table fields in a production  
environment.  I've gleaned a few tidbits from sifting through old  
emails and looking at Eric Chatonet's example.


A few basic questions:

0- Are table fields stable enough on all platforms to use reliably?
1- Are there some secret docs somewhere?
2- How do I get the cRevTable properties?
3- How do I format text in any given cell?
4- How do I get a selected cell to hilite only within the cell and  
not into 50% of its vertical neighbors?


thanks,
russ



Russ McBride
Programmer/Analyst
The Scholar's Workstation
University of California at Berkeley
510-643-6853


___
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: Sort-of OT: Learning Python

2006-05-08 Thread Russ McBride


Hey Geoff,

Thanks for the link.  I always appreciate those kinds of posts.  I  
don't think I've heard a whole lot of great things about wxWidgets.


As a sidenote-- a lot of people who've used Python have moved to Ruby  
and a lot of people who've been stuck using Java have fallen in love  
with Ruby (me included).  Simple, powerful, clean syntax, great  
development community.  Truly a joy to program in.  My (long-term)  
goal is to be able to mix Transcript and Ruby in my runrev apps.  If  
anyone has any ideas or pointers about writing an external to do this  
I'm keenly interested!


Cheers,
russ



On May 4, 2006, at 5:30 PM, Geoff Canyon wrote:

Those of you who know me know that I am always fascinated by  
different programming languages. I've programmed in more than a  
few, but read up on dozens. Lately I've been taking a stab at Python.


I'm keeping track of progress at http://learningpython.wordpress.com/

So far it's mostly gripes and rants ;-)

The reason I say sort-of off topic is that I'm making no secret of  
the fact that I come from a Revolution background. The latest post  
compares the out-of-the-box experience between Rev and a Python  
IDE. In Rev, installation and building a standalone application  
takes 16 steps, including retrieving and entering the demo license  
code. In Python, after 10 steps I have downloaded nothing,  
installed nothing, and built nothing, have gone down a blind alley  
or two, and have more questions than I started with.


When I get past the install and start describing actually  
programming in Python, it should be better.


In any case, feel free to have a look and post feedback, even if  
it's just to point out where I went wrong in the Python install  
process ;-)


regards,

Geoff
___
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




Russ McBride
Programmer/Analyst
The Scholar's Workstation
University of California at Berkeley
510-643-6853


___
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


databases [was: Re: Ruby Active Record]

2006-04-20 Thread Russ McBride


Yeah, it seems crazy these days to actually have to *pay* for a  
database.  But there are reasons why people still make decisions that  
allow Larry Ellison to by another small island in the Caribbean (and  
why people would pay $$ for FrontBase).  We use it as an excellent  
fit for our WebObjects applications.  And in the past MySQL has been  
quite problematic for any kind of applications that require a lot of  
updating rather than lots of simple reads (as you get in web apps).   
FrontBase is also completely SQL92 compliant which is rare.


Anyway, I don't want to get into the usual database wars here, nor is  
it the place.  I've been happy with FrontBase, PostgreSQL, MySQL, and  
others.  It was, though, quite nice to see a fairly small db vendor  
provide runrev support.


Cheers,


Russ McBride
Programmer/Analyst
The Scholar's Workstation
University of California at Berkeley
510-643-6853


On Apr 19, 2006, at 11:17 PM, Dan Shafer wrote:

Thanks, Ken. FOund it. But at those prices, I think I"ll stay far,  
far away.

Yikes.


On 4/19/06, Ken Ray <[EMAIL PROTECTED]> wrote:


On 4/20/06 12:50 AM, "Dan Shafer" <[EMAIL PROTECTED]>  
wrote:



I don't see any support there for Revolution. Is it hiding?


Click the Downloads link in the toolbar, then scroll down





--
~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"

From http://www.shafermediastore.com/tech_main.html

___
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


Ruby Active Record

2006-04-18 Thread Russ McBride


Has anyone out there made Ruby calls from Transcript?

I like Ruby's Active Record for handling database interactions and 
I'm thinking about just using it across all my applications to 
mediate access to my databases for some internal app's (I'll be using 
either FrontBase, MySQL, or PostgreSQL).  It would be nice to have a 
mediating layer like Apple's old Enterprise Objects Framework or 
Ruby's Active Record.  The downside with using Ruby is that I've got 
to do a lot of Transcript<--->Ruby bridging both ways which may be a 
headache and/or slow.  I know it will also require the additional 
step of installing Ruby and Active Record on any machine that needs 
to run my apps but I'm not too worried about that.


Anyone have any feedback on blending Ruby into runrev?

Cheers,
russ


P.S.  Oh yeah, almost forgot to mention that FrontBase wrote a 
plug-in for runrev compatibility.  Found it accidentally on their 
download page:  http://www.frontbase.com/cgi-bin/WebObjects/FrontBase

___
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: Revolution for enterprise SAP-style applications?

2006-04-05 Thread Russ McBride


Thanks for the replies on the feasibility of this multi-headed  
monster that I'm building in Rev.  Here are a few more questions:


1) It sounds like it's pretty easy to make external language calls  
(e.g., Java, Objective-C, Ruby) from Rev, correct?


2) How about building SOAP clients?

3) And more randomly, has anyone tied a report tool into Rev,  
something like Crystal Reports?


Thanks,
Russ


Russ McBride
Programmer/Analyst
The Scholar's Workstation
University of California at Berkeley
510-643-6853


___
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


Revolution for enterprise SAP-style applications?

2006-04-04 Thread Russ McBride


Hi,

It's been a few years since I've used Revolution.

We've got a messy set of systems here that keep the front end and  
back end of our store running and I'm exploring ideas for  
inexpensively consolidating and streamlining them to reduce  
complexity and redundancy.  One possibility is rebuilding everything  
from the ground up in RR.  I'm not sure that it can do it though.   
Basically, we need to rebuild nothing less than a "junior-SAP"  
system, a set of the following:


--a point-of-sale system
--an inventory management system
--some custom apps that access remote web services
--a content control system for web site data (simpler than Hemingway,  
e.g.)

--some custom bookkeeping apps

The goal would be to reduce our 4 overlapping databases down to one  
so it means that these apps would be heavily database-centric,  
probably built on FrontBase, PostgreSQL, or MySQL.  And I would need  
to easily tie in some Objective-C code and Java code (and ideally  
some Ruby code) when necessary.  The web content system would have to  
feed into some flat files for the WebDNA web app system we're using  
until we get around to rebuilding our WebDNA/WebObjects composite  
system.


At one point Geoff Canyon made it sound like RealBasic might be  
better for database-intensive applications.


Unfortunately our environment at the University here requires custom  
applications, but we don't have the $$ for an actual SAP-style  
setup.  Having used RR for some apps quite awhile ago my first  
impression is that it might be perfect, er--the only possible  
candidate--for rapidly building an inexpensive, but comprehensive set  
of apps.  My other choices would be RealBasic (more code, but maybe a  
more desirable language), Cocoa (but this wouldn't be truly rapid--at  
least not for me), Ruby on Rails (but I don't want web interfaces),  
WebObjects (ditto), or Cocoa-Ruby (interesting, but limited to Mac),  
or Ruby + TK (unstable GUI system).


What do you think?  Any tips, anecdotes, or suggestions appreciated.

Thanks very much,




Russ McBride
Programmer/Analyst, PhD Cadidate
The Scholar's Workstation
University of California at Berkeley
510-643-6853


___
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


Revolution for enterprise SAP-style applications?

2006-04-03 Thread Russ McBride


Hi,

It's been a few years since I've used Revolution.

We've got a messy set of systems here that keep the front end and  
back end of our store running and I'm exploring ideas for  
inexpensively consolidating and streamlining them to reduce  
complexity and redundancy.  One possibility is rebuilding everything  
from the ground up in RR.  I'm not sure that it can do it though.   
Basically, we need to rebuild nothing less than a "junior-SAP"  
system, a set of the following:


--a point-of-sale system
--an inventory management system
--some custom apps that access remote web services
--a content control system for web site data (simpler than Hemingway,  
e.g.)

--some custom bookkeeping apps

The goal would be to reduce our 4 overlapping databases down to one  
so it means that these apps would be heavily database-centric,  
probably built on FrontBase, PostgreSQL, or MySQL.  And I would need  
to easily tie in some Objective-C code and Java code (and ideally  
some Ruby code) when necessary.  The web content system would have to  
feed into some flat files for the WebDNA web app system we're using  
until we get around to rebuilding our WebDNA/WebObjects composite  
system.


At one point Geoff Canyon made it sound like RealBasic might be  
better for database-intensive applications.


Unfortunately our environment at the University here requires custom  
applications, but we don't have the $$ for an actual SAP-style  
setup.  Having used RR for some apps quite awhile ago my first  
impression is that it might be perfect, er--the only possible  
candidate--for rapidly building an inexpensive, but comprehensive set  
of apps.  My other choices would be RealBasic (more code, but maybe a  
more desirable language), Cocoa (but this wouldn't be truly rapid--at  
least not for me), Ruby on Rails (but I don't want web interfaces),  
WebObjects (ditto), or Cocoa-Ruby (interesting, but limited to Mac),  
or Ruby + TK (unstable GUI system).


What do you think?  Any tips, anecdotes, or suggestions appreciated.

Thanks very much,




Russ McBride
Programmer/Analyst, PhD Cadidate
The Scholar's Workstation
University of California at Berkeley
510-643-6853



___
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