The currently playing track revMobile

2010-09-23 Thread Terry Vogelaar
I want to write an iOS app that allows me to edit the tags of the tracks on my 
iPod Touch. Often when I listen to music on my iPod, I want to edit the data of 
the currently playing track. For example, I want to set the genre, or at least 
add some comments to it. And when I connect the iPod to my iMac, I want that 
data to sync back to iTunes automatically. 

I don't know of any app that has similar functionality, so I doubt whether the 
SDK allows it. But it sure would be great if it did.

As far as I know, the only information that is synced back from my iPod to 
iTunes is: star ratings and play counts. But I would love to do more. 

If this is simply impossible, could there be some kind of workaround? For 
example: the app records the title  artist of the currently playing track to a 
text file on the iPod, along with the data I would like to add/modify. When 
connected to the Mac, an AppleScript could process that text file to make the 
changes to the corresponding track(s) in iTunes.

Any thoughts on this would be greatly appreciated.

Terry___
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: Where does revMobile go?

2010-09-22 Thread Terry Vogelaar
But shouldn't it be included? I mean, in the new approach it is one of  
the distribution methods, just like Mac, Windows, Unix and Web. So I  
actually expected to find it in the Standalone application settings as  
one of the tabs. And let the license prevent or enable me to use it...


Or am I thinking too far ahead now?

Terry



Tuesday, September 21, 2010, 3:26:09 PM, Jacque wrote:


On 9/21/10 2:31 PM, Terry Vogelaar wrote:

I upgraded to LiveCode 4.5. Because I have bought revMobile, Mobile
Deployment is already purchased according to the store, as
expected. However, I don't see it in the Development  Plugins menu
where it used to be. Nor can I find it anywhere else yet. Should I
reinstall the plugin? If so, where?


In 4.5, open Preferences, Files and Memory pane. Use the browse button
at the bottom to select your My Revolution folder as the external  
folder

location. That folder is located inside your Documents folder, and was
created by previous versions of Rev. Restart LiveCode and it should  
load

all your externals from that location.

___
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: LiveCode 4.5 License model

2010-09-21 Thread Terry Vogelaar
Yes!

Op 21 sep 2010, om 20:59 heeft use-revolution-requ...@lists.runrev.com het 
volgende geschreven:

 I have one question:
 
 Is Rev 4.5 now LiveCode 4.5? 
 
 Craig Newman

___
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


Where does revMobile go?

2010-09-21 Thread Terry Vogelaar
I upgraded to LiveCode 4.5. Because I have bought revMobile, Mobile Deployment 
is already purchased according to the store, as expected. However, I don't 
see it in the Development  Plugins menu where it used to be. Nor can I find it 
anywhere else yet. Should I reinstall the plugin? If so, where?

Terry___
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


No callback from libURLDownloadToFile?

2010-06-03 Thread Terry Vogelaar

Hi all,

libURLDownloadToFile seems to ignore the callback message after  
finishing. I didn't hear a beep when putting this in the message box:
libURLDownloadToFile http://www.houdinis.net/TributePeggyLee.jpg;, ~/ 
Desktop/9823.jpg, beep


What did I do wrong? The file got downloaded, but the callback message  
wasn't sent. Bug maybe?


Terry
___
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: No callback from libURLDownloadToFile?

2010-06-03 Thread Terry Vogelaar
That was very helpful. Thanks.

Terry

Op 3 jun 2010, om 19:00 heeft use-revolution-requ...@lists.runrev.com het 
volgende geschreven:

 beep is a command, not a message handler.
 Try making your own handler that beeps and I think it will work.
 
 Cheers,
 Sarah
 
 
 On Thu, Jun 3, 2010 at 8:13 PM, Terry Vogelaar tvogel...@de-mare.nl wrote:
 Hi all,
 
 libURLDownloadToFile seems to ignore the callback message after finishing. I
 didn't hear a beep when putting this in the message box:
 libURLDownloadToFile http://www.houdinis.net/TributePeggyLee.jpg;,
 ~/Desktop/9823.jpg, beep
 
 What did I do wrong? The file got downloaded, but the callback message
 wasn't sent. Bug maybe?
 
 Terry

___
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: Download queue with libURL

2010-06-01 Thread Terry Vogelaar

Hi Mark,

I'm afraid that is not true. I tried it without queue and it worked  
for very small files. If the file is small enough, the upload is done  
on time. Also, when debugging, the script is running slow enough to  
finish downloading. But when I'm just running it and it has to  
download a bunch of JPGs of 125kb each, I only have the last one. That  
was the only one that had enough time to finish.


So I apparently need this queue approach to solve this. And the  
variable contains the right data because it does the first one.  
However, it doesn't call the script like it should. No wachtrij  
message is sent.


I'm puzzled...

Terry

Op 31-mei-2010, om 19:00 heeft use-revolution-requ...@lists.runrev.com  
het volgende geschreven:



Hi Terry,

You don't need to do this. LibURL can do this by itself. Just issue
the upload and download commands right-away.

Does item 3 of line 1 of kjoejoe contain a file path? (It should).

--
Best regards,

Mark Schonewille

On 31 mei 2010, at 13:28, Terry Vogelaar wrote:


I can't figure out what is wrong with this script:

on wachtrij
 global kjoejoe
 if line 1 of kjoejoe   then
put line 1 of kjoejoe  the number of lines of kjoejoe
set the itemdel to tab
switch item 1 of line 1 of kjoejoe
   case up
  libURLftpUploadFile item 2 of line 1 of kjoejoe, item 3
of line 1 of kjoejoe, wachtrij
  break
   case down
  libURLDownloadToFile item 2 of line 1 of kjoejoe, item 3
of line 1 of kjoejoe, wachtrij
end switch
delete line 1 of kjoejoe
 end if
end wachtrij


The global variable 'kjoejoe' contains the prober data, because the
first line gets processed as expected. But then, after
libURLDownloadToFile or libURLftpUploadFile is done, it should call
this command again until kjoejoe is empty. And that isn't happening.
Why not?

Terry


___
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


Download queue with libURL

2010-05-31 Thread Terry Vogelaar

I can't figure out what is wrong with this script:

on wachtrij
   global kjoejoe
   if line 1 of kjoejoe   then
  put line 1 of kjoejoe  the number of lines of kjoejoe
  set the itemdel to tab
  switch item 1 of line 1 of kjoejoe
 case up
libURLftpUploadFile item 2 of line 1 of kjoejoe, item 3  
of line 1 of kjoejoe, wachtrij

break
 case down
libURLDownloadToFile item 2 of line 1 of kjoejoe, item 3  
of line 1 of kjoejoe, wachtrij

  end switch
  delete line 1 of kjoejoe
   end if
end wachtrij


The global variable 'kjoejoe' contains the prober data, because the  
first line gets processed as expected. But then, after  
libURLDownloadToFile or libURLftpUploadFile is done, it should call  
this command again until kjoejoe is empty. And that isn't happening.  
Why not?


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


News on revMobile and the iPhone

2010-05-15 Thread Terry Vogelaar
Because of my vacation, I wasn't able to respond earlier to Kevin's sad news.

Being an Apple fan, this change in Apple's license agreement is the first major 
disappointment in the company.

It has obviously nothing to do with performance like they say. If that was the 
case, they should exclude JavaScript because it's a high level, interpreted 
language. And they should ban all Obj-C/C++ code written by less experienced 
programmers...

Neither has it anything to do with being prepared for the future. I know RunRev 
as a very nimble company who adapts very fast to new trends, new OSes and new 
hardware. I don't know how RunRev does it, but apparently the architecture of 
their product(s) is so good they can adjust very quickly and they stay in the 
saddle when the industry makes crazy turns.

So I cannot think of any sane reason why Apple changed their license agreement.

It has probably to do with the Flash war against Adobe. But actually this would 
be an easy battle for Adobe to win. When ActionScript 3.0 came out, they 
reconstructed the language to be compatible with JavaScript, which they use as 
scripting language in other Creative Suite products. So all Adobe has to do is 
rename ActionScript to JavaScript...

So RunRev just seems to suffer as collateral damage in this stupid war between 
these big players. 

Terry___
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: How do I use substrings in regular expressions?

2010-04-14 Thread Terry Vogelaar
Hi Michael,

I agree with Richard and want to thank you for the script. I don't really 
demand a regex; I just need to replace the SWF reference with the appropriate 
JPG. 

I used a regex because I often use GREP in BBEdit. But apparently the 
implementation in runrev is a bit different. It should be based on PCRE, and 
that supports this behavior. Might this be a little bug? Whatever the case, I 
am helped!

You noticed the ID was gone in the IMG tag with the JPG. I removed it because I 
didn't need it. But it's cool with me if it stays in. 

Terry

 Michael Kann wrote:
 Here's a somewhat generic script to find any HTML element by its ID
 and make the replacements you need. It doesn't use regex. I apologize.
 
 No need to apologize. RegEx is convenient, but it's able to offer that 
 convenience usually at the price of performance.
 
 It almost always takes more lines of code to do the same thing with 
 chunk expressions as one can do in RegEx, but is often much faster.
 
 And when someone else writes the code, as you've done here, you get both 
 speed and convenience. :)
 
 --
  Richard Gaskin
___
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 as backend tool

2010-04-13 Thread Terry Vogelaar
I have been asked to make a HTML-version of a Flash-based site, because not all 
internet browsing devices have Flash. The site is not hosted on On-Rev, so I 
cannot use an .irev file. The CMS is Flashblocks; a Flash-based commercial CMS 
that writes all data to an XML-file. So the task of parsing the data and write 
it to a bunch of HTML-files should be fairly simple.

So I want to write a revlet with a simple user interface. Basically a button 
that the editor can click after he is done with updating the content in 
Flashblocks. The script then parses the newly written XML-file and puts the 
HTML-files on the server to update them too, for all iPhone users to see.

But before I start coding, I want to investigate what the hurdles might be, 
because this is going to be my first revlet. For example: what is the standard 
location for a revlet to write files? The server or the user side? Can a revlet 
write files to a server? If yes, how? Do I need to set permissions? Can it 
create new files and overwrite existing files?

Terry___
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 as backend tool

2010-04-13 Thread Terry Vogelaar
Thanks for your responses, Michael, Richard and Andre.

I realized some things weren't very clear in my post. The revlet is not 
intended for the iPhone users to use or see. It is a backend tool. The person 
who writes the content has to start the script after he is done updating the 
site in Flashblocks. 

Ideally, I want to add as few steps as possible. If the script creates its 
HTML-files on the local computer and he has to upload them using FTP, he 
probably will not bother to use it every time he needs to.

Using Rev CGI instead of a revlet is an idea. Still, I like to avoid it if 
possible. I don't know if the ISP allows the Rev engine to be installed. 

So I think I'll try the libURLftpUpload command.

Terry


Op 13 apr 2010, om 19:00 heeft use-revolution-requ...@lists.runrev.com het 
volgende geschreven:

 Date: Tue, 13 Apr 2010 13:07:43 -0300
 From: Andre Garzia an...@andregarzia.com
 Subject: Re: Revlet as backend tool
 To: How to use Revolution use-revolution@lists.runrev.com
 Message-ID:
   o2j7c87a2a11004130907uda8e1237lc4472f484aa36...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
 Terry,
 
 Like the others, I suspect your best option is a CGI and not a RevWeb
 installation. This will make it easier to read and generate files since
 everything will run on the server. Doing file manipulation on servers from a
 client point of view can be tricky.
 
 Now, moving further, remember to checkout the following things when you
 reach the point of generating your web ui for the iphone itself:
 
 * The viewport tag
 * iUI javascript library
 
 Those two cool technologies will make your iPhone HTML better and more
 beautiful.
 
 Cheers
 andre
 On Tue, Apr 13, 2010 at 5:29 AM, Terry Vogelaar tvogel...@de-mare.nlwrote:
 
 I have been asked to make a HTML-version of a Flash-based site, because not
 all internet browsing devices have Flash. The site is not hosted on On-Rev,
 so I cannot use an .irev file. The CMS is Flashblocks; a Flash-based
 commercial CMS that writes all data to an XML-file. So the task of parsing
 the data and write it to a bunch of HTML-files should be fairly simple.
 
 So I want to write a revlet with a simple user interface. Basically a
 button that the editor can click after he is done with updating the content
 in Flashblocks. The script then parses the newly written XML-file and puts
 the HTML-files on the server to update them too, for all iPhone users to
 see.
 
 But before I start coding, I want to investigate what the hurdles might be,
 because this is going to be my first revlet. For example: what is the
 standard location for a revlet to write files? The server or the user side?
 Can a revlet write files to a server? If yes, how? Do I need to set
 permissions? Can it create new files and overwrite existing files?
 
 Terry
___
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


How do I use substrings in regular expressions?

2010-04-13 Thread Terry Vogelaar
I cannot get this regex to work:

put replacetext(textBlock,q(IMG SRC='([^']*)' ([^]*) ID='  idNumber  ' 
([^]*)), q(IMG SRC='  newPath  ' \2 \3)) into textBlock

The purpose is to replace:
IMG SRC=flashblocks/editors/Mediablock.swf WIDTH=300 HEIGHT=100 ID=ID3 
ALIGN=left VSPACE=2 HSPACE=8
with:
IMG SRC=flashblocks/data/resize/home1_holder_txt_ID3_mb.jpg WIDTH=300 
HEIGHT=100 ALIGN=left VSPACE=2 HSPACE=8

The \2 and \3 part should insert the substrings matching ([^]*). This is 
working in BBEdit, but Rev gave me literally \2 \3: 
IMG SRC=flashblocks/data/resize/home1_holder_txt_ID3_mb.jpg \2 \3

I cannot use the normal replace command, because it should only work when the 
ID attribute is matched. 

Terry___
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: increasing dpi in export snapshot

2009-11-22 Thread Terry Vogelaar
Hi Durgesh,

Try not to forget that every snapshot is just taking (part of) the bitmap image 
displayed on screen. Thus, it IS a low resolution image and there is no way to 
really change this.

You might consider these workarounds:
You might bring up the print dialog and print to a postscript or PDF file. Or 
you might just enlarge what you see on screen before you take a snapshot. So 
just double the size of everything. When you print or import the image in 
another program, you just reduce the size to 50%. Your screen resolution is 
either 72 or 96 pixels per inch. With 50% reduction, you have 144 or 192 ppi.

Terry

Op 22 nov 2009, om 19:00 heeft use-revolution-requ...@lists.runrev.com het 
volgende geschreven:

 I am using export snapshot on group of text boxes and saving it to a JPG
 file. Looking at the resulting JPEG file, it does not look very smooth. It
 is pixelized as if some low resolution image.
 
 Is there any way to increase the dpi or some other mechanism to enhance the
 image file generated from export snapshot ?
 
 Thank you all in advance,
 Kind Regards,
 -Durgesh

___
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


Debugging on On-Rev - I don't GET it

2009-09-18 Thread Terry Vogelaar
I don't understand how to debug an irev file when form input is  
involved.


Here it the case:
I want to pick data up from a CGI driven HTML page. But my irev script  
needs to do some preprocessing first.
So I made a script preprocess.irev and I began to try just passing  
whatever this script GETs:
I tried preprocess.irev?id18=1m=eph+1%3A1-5%3A1 with the following  
script:

?rev
put $_GET into sGET
combine sGET using 
put script.cgi?set=5lang=enpos=0nobar=1t=4  urlencode(sGET)  
into varZ

put url varZ
?

It returned Bad request. But when I hardcoded in exactly the same  
values, it worked:

?rev
put id18=1m=eph+1%3A1-5%3A1into sGET
put http://www.biblija.net/biblija.cgi? 
lang=enset=5pos=0nobar=1t=4  sGET into varZ

put url varZ
?

I wanted to insert a breakpoint, but then I realized I didn't knew how  
to debug this because of the additional data in the url. Any solutions?


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


Runrev on Hyves

2009-09-05 Thread Terry Vogelaar
I started a hyves group a few days ago for runrev fans like me. The  
intention is to give runrev more exposure and spread the love. Until  
now, I am the only member :-(


For those who do not know Hyves: it is the largest social network site  
in the Netherlands. Approximately one third of the Dutch population is  
a member of it and the majority of the members use it weekly or daily.


You can take a look on http://runrev.hyves.nl (and are free to join).

Any tips on what kind of content I can (legally) add?

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


SQL problem

2009-05-04 Thread Terry Vogelaar

Hi all,

I am struggling to get a MySQL database filled. The idea is to use a  
form that calls an irev file, that in turn adds to the database.


Here is the script:
?rev
put revOpenDatabase 
(mysql,localhost,terry_dbname,terry_dbuser,password) into  
tConID


# Construct SQL
put INSERT INTO 'terry_dbname'.'tablename' ('login' , 'ww' ,  
'toegang') VALUES ('  $_GET[login]  ', '  $_GET[ww]  ',  
'  $_GET[toegang]  '); into tSQL


if tConID is a number then
# Execute SQL
put revDataFromQuery(tab, return, tConID, tSQL) into tList

revCloseDatase tConID
end if
?

Sample data:
http://terry.on-rev.com/h.irev?login=hafaddegonww=%3D% 
5DwTjLEltoegang=xA1%0D%0AxB1


All arguments are URL encoded...

But I get a SQL error... Is anyone seeing what the error could be?

Terry
___
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: rev apps on iPhone?

2008-06-28 Thread Terry Vogelaar

Hi Josh,

It is painful for me to admit, but you do have a point here. :-)

On the other hand, RunRev can also run 'faceless' on webservers as CGI  
engines. I think the gap between using a stack on a 'normal' computer  
and a CGI server is larger than the gap between OSX and the iPhone OS.


There are some minor hurdles to take, but the main difference is Cocoa  
Touch / the GUI. Except for that challenge, it is just Mac OSX.


Terry


--

Message: 11
Date: Fri, 27 Jun 2008 15:23:17 -0700
From: Josh Mellicker [EMAIL PROTECTED]
Subject: Re: rev apps on iPhone?
To: How to use Revolution use-revolution@lists.runrev.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

I understand the desire to have Rev a write-once, deploy everywhere
solution... iPhone, Windows mobile, web, toaster, microwave, etc.

But I'd like to cast my one very small vote that Rev continue to focus
on doing one thing really well- make desktop apps for OSX/WinXP/Vista/
Linux that work really well.

To me, continuing to refine Rev's power in making it easier to work
with databases, improving table fields, Quicktime and AVI functions,
adding more standard widgets like popup calendars and various types of
grids, better text processing... in my opinion, improving those core
functions is so much more important than trying to make it a do
everything solution, especially for a smaller company.

Xcode works fine for iPhone, there are other solutions for web, a wise
person once told me, stick to one thing, and be the best in the world
at it.

(Of course, I have never followed this advice meeself ;-)

___
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: Caricature challenge

2007-12-19 Thread Terry Vogelaar

I all,

I agree with Dave that Wilhelm probably never intended to make a  
political statement about Bush with his picture. Overhere in Europe it  
is totally OK to make fun of people, whether we respect them or not.  
In fact, I started this thread because I get a lot of requests from  
guys who want to have a caricature of themselves. Most of them because  
they have seen my self portret at http://terryv.hyves.nl/fotos/100011903//i8yH/


I hope this helps to settle it for Chipp (and others that felt  
offended) and that it avoids stirring up a discussion on politics etc.  
It is just a cultural thing; a difference between US culture and the  
more egalitarian European approach. It doesn't have much to do with  
(dis)respecting others, although I can imagine it felt like that.


To bring this back to the topic, I am very curious, Wilhelm, how you  
did this with RunRev. Could you please mail me an example stack to use  
the imagedata toolkit? Alternatively, where can I find more info? (I  
use the beta of 2.9).


Thanks in advance.

Terry

Op 19 dec 2007, om 16:52 heeft Wilhelm Sanke het volgende geschreven:


In my reply of Nov 29 to thread Any suggestions on how to onion
skinning? I had mentioned some new features of my upcoming release  
of

the Imagedata Toolkit - among them

copying - and enlarging or shrinking - and pasting oval or  
rectangular
portions of an image into the same or another image with variable  
fringe

and/or overall blending into the basic image).

I applied this to a photo of a not unknown public figure, the result  
can

be inspected here:

http://www.sanke.org/Software/SmilingBush.jpg.

To achieve this I used a number of steps, in which about two of Ken's
five steps are applied, but most of which follow a  different sequence
and are of another  nature.

The basis for the copying - and enlarging or shrinking - and pasting
oval or rectangular portions of an image  are rects, ovals, and
polygons in the form of images with transparent fringes of different  
sizes.


I use a rectangular or oval graphic as a selection tool that can be
resized and dragged  across the photo to select a portion of it (This
selection tool is similar to that used in my seamless tiles 2  
stack).
The underlying image - the partially tranparent basic template - is  
then

adjusted in location  and size  to the selected portion of  the photo.
At the same time an already existing empty image newimage is  also  
set

to  the selected portion of the image.
The imagedata of  the selected portion  of the photo are then read   
into

the newimage, and the alphadata of the template are applied to the
newimage.

You can then enlarge or shrink  newimage or leave  it as it  is and
drag it to any place  on the photo. You can  also flip newimage.

Next step is to integrate the image- and alphadata of newimage into
the photo, either once or several times at different places. This
integration can be applied with variable levels of blending,  in
addition to the transparent fringe of the template that ensures  
optimal

blending into the photo.

If an enlarged portion  of  newimage should have been dragged to a
position where it overlaps the rect of the photo, the overlapping  
parts

of newimage are then cut off in the process of integration.-

For  SmilingBush I have only used a single oval template. The star -
taken from the left side - on his forehead - is partially blended. One
of the flags - taken from his lapel - has been flipped.-

I hope I do not cause trouble with this attempt of a caricature - as  
it

happens in other parts of the world. Bush is indeed a known public
figure and  as such often the object of caricatures.

Best regards,

Wilhelm Sanke

___
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: Caricature challenge

2007-12-14 Thread Terry Vogelaar
Fake is fine. The purpose is not to make a 'perfect' caricature on the  
computer, but to make a visual guide on what to emphasise.


Still I wonder HOW to divide a picture in polygons and distort each  
polygon in Revolution. Any suggestions?


I've seen pretty good 'fake' approaches in Flash. It divided a picture  
by making several instances of it and mask each instance with a  
rectangular mask. It then enlarged the rectangles based on the mouse  
position. Looked cool.


Can RunRev also mask instances of a picture, mask triangular parts of  
it and scale / skew / distort each part individually?


Terry

Op 14 dec 2007, om 0:04 heeft Randall Lee Reetz het volgende geschreven:

I use polygons (in supercard) and then put images as rectangles  
(grabbed from the rect that bounds them) into them and then stretch  
the polygons. Does a pretty good fake of stetching the source.  Try  
it!  I am sure rev has this stuff too.  Think of your faces as a  
bunch of points... The polys are just the triangles etc. between  
these points.  i've done mesh distortion filters this way.  Works  
great.


randall

-Original Message-
From: Terry Vogelaar [EMAIL PROTECTED]
To: use-revolution@lists.runrev.com
Sent: 12/13/2007 11:13 PM
Subject: Caricature challenge

Hi there,

It has been a while since my last post, but I still a RunRev fan.

My other passion is painting. And I get a lot of requests for
caricatures lately. With familiar faces it is easy to see what is less
perfect. But it is really hard to analyse a face if I only have one
photo and I never seen the person in real life.

So my plan is to do an analysis with the help of my computer to see
what the ugly sides are to emphasise those.

Marquardt has made a mask to apply to a frontal picture of a face. The
better the mask fits, the more beautiful a face is. Read all about it
on http://www.beautyanalysis.com if you're interested.

So I want to make a program that imports a picture and puts some key
points of Marquardts mask on top of it. Those points can be dragged to
a position to match the picture better. It then calculates the
difference between where it is and where it should be, in order to
multiply the difference.

So far this is all easily doable with RunRev. But here comes the
challenge. It should slice up the picture in triangles or rectangles
and distort them. Is this possible in RunRev?

If not, is the data exportable to any other program that can do this?
I know PhotoShop has an ability 'liquify' an image. This filter can
handle exported liquify meshes. But the contend of such a mesh is not
readable by humans.

Volker Blanz and Thomas Vetter made a computer program to do that (and
much more) in 3D. Too bad it is not for sale. But it proves
caricatures can be generated by a computer. See 
http://www.mpi-inf.mpg.de/~blanz/movies/siggraph99.mpg
 - the part between 0:54 and 1:10 min. But that program is way more
than what I want to accomplish. If I just can slice up a 2D image and
distort each part programmatically, I would be totally happy.

Any suggestions on how to distort an image with RunRev?

Terry

___
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


Caricature challenge

2007-12-13 Thread Terry Vogelaar

Hi there,

It has been a while since my last post, but I still a RunRev fan.

My other passion is painting. And I get a lot of requests for  
caricatures lately. With familiar faces it is easy to see what is less  
perfect. But it is really hard to analyse a face if I only have one  
photo and I never seen the person in real life.


So my plan is to do an analysis with the help of my computer to see  
what the ugly sides are to emphasise those.


Marquardt has made a mask to apply to a frontal picture of a face. The  
better the mask fits, the more beautiful a face is. Read all about it  
on http://www.beautyanalysis.com if you're interested.


So I want to make a program that imports a picture and puts some key  
points of Marquardts mask on top of it. Those points can be dragged to  
a position to match the picture better. It then calculates the  
difference between where it is and where it should be, in order to  
multiply the difference.


So far this is all easily doable with RunRev. But here comes the  
challenge. It should slice up the picture in triangles or rectangles  
and distort them. Is this possible in RunRev?


If not, is the data exportable to any other program that can do this?  
I know PhotoShop has an ability 'liquify' an image. This filter can  
handle exported liquify meshes. But the contend of such a mesh is not  
readable by humans.


Volker Blanz and Thomas Vetter made a computer program to do that (and  
much more) in 3D. Too bad it is not for sale. But it proves  
caricatures can be generated by a computer. See http://www.mpi-inf.mpg.de/~blanz/movies/siggraph99.mpg 
 - the part between 0:54 and 1:10 min. But that program is way more  
than what I want to accomplish. If I just can slice up a 2D image and  
distort each part programmatically, I would be totally happy.


Any suggestions on how to distort an image with RunRev?

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


Browser functionality and data in a stack

2007-05-09 Thread Terry Vogelaar

Hi all,

I am happy with the new browser features the newest beta/release  
candidate has. It can display HTML files, both online and offline.


But how about data in a stack? Suppose I have a field or a variable  
containing XHTML with CSS. I cannot set the htmlText of a field to  
that without losing layout elements.


I could setup the stack as CGI and navigate the browser to http:// 
127.0.0.1/form.cgi, but that is a lot of overhead.


A better workaround is to write the content to a text file and then  
navigate the browser element to file:///Users/my/Desktop/ 
whatever.html. But it is still a workaround.


So I wonder: is there also a DIRECT way to do that?

Also, I understand that it is 'impossible' (yet) to edit text in the  
browser :-) But what about form entries? Can the stack receive  
feedback from the browser in any way?


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


Tables trouble

2007-03-09 Thread Terry Vogelaar

Hi all,

Although I use RunRev a lot, table fields are new to me. There was no  
need for me to explore the possibilities of these before. Until now.  
So the problems I run into might be stupid beginners mistakes...


I figured out I can fill the table with tab delimited lines. So I  
populated the table with a 'put this into fld table' script. But as  
soon as I edit one of the cells, the entire table content is erased.  
From then on, I can add as many cells as I like (manually) without  
erasing anything I typed before. But everything I enter using a  
script is bound to be erased after the first manual modification. Why?


Also, why is the textheight of a table field empty if a script tries  
to obtain it?


And why is the table field not responding like a normal field when I  
set the locktext to true?
I was hoping to make a table in which cells in certain columns act  
like checkboxes; I click on the cell and a dot or checkmark appears -  
I click on it again and it is toggled off. But although the locktext  
is true, the table remains editable and no mouseup event is sent to  
the field. Do I need to have a transparent button over the table to  
handle the mouseup events? Or is there some other clever solution to  
do this?


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


revSpeak to audio file?

2006-10-16 Thread Terry Vogelaar

Hi all,

Can I use RunRev to create an audio file of a text, using the  
system's speech synthesiser?


Terry
___
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: revSpeak to audio file?

2006-10-16 Thread Terry Vogelaar
Fortunately I am on a Mac, so this fits the need perfectly and I  
don't really need revSpeak in this case.

I'd like to thank all of you who responded.

Terry

On 16 Oct 2006, at 10:53, Richmond Mathewson wrote:


Terry,

Poking around on my Mac I found the follwoing
Apple-Script command:

say this_string using default_voice saving to
target_file

so, presumably what you want shoud be possible (at
least on a Mac) - but whether revSpeak connects with
this I don't know.

sincerely Richmond Mathewson


___
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: irregular expression

2006-07-16 Thread Terry Vogelaar

The problem was case sensitivity indeed. Thanks for the responses.

To answer Marks question: Dar was right. The slash with the question  
mark was to match zero or one slashes, so this regex also matches the  
closing tags.


So it matches between  , followed by zero or one slashes, followed  
by a, followed by any number of characters other than , followed  
by . This can never be too greedy or not greedy enough because of  
the [^]* part. Only when there would be another another tag in the  
HTML file that has got nothing to do with a link, like address/ 
address, it replaces too many instances. Luckily that doesn't  
bother me in this case.



Terry


Op 15-jul-2006, om 19:00 heeft use-revolution- 
[EMAIL PROTECTED] het volgende geschreven:



On Jul 15, 2006, at 7:34 AM, Mark Greenberg wrote:


put replacetext(myVar,/?a[^]*,) into myVar



 but why do you have /? in your RegEx string?


I think I can guess that one, Mark.  From one of my pages:

   a href=rev.htmlRevolution/abr

I think Terry's intent is to change that to this:

   Revolutionbr

So both the a and /a must be matched.  The optional slash does that.

(The regex does not handle a  in an attribute string, say, for
title, but maybe there cannot be one.)

Dar Scott


___
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


Escape infinite loops

2006-07-02 Thread Terry Vogelaar

Hi all,

I have a script that somehow has an infinite loop somewhere, although  
I cannot see where or why.


Back in the HyperCard days I ran more often into such an error. I had  
to use Command-dot often to stop executing scripts. But RunRev 2.7  
doesn't seem to respond to that. So I force-quit RunRev. But is there  
another way to abort executing scripts?


Also, is there a way to give a handler a maximum time to finish?

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


Nested tags

2006-06-18 Thread Terry Vogelaar

Hi all,

I've got a scripting problem that seems ridiculously simple.

I have to find the corresponding end tag in a HTML file with nested  
SPAN tags:


SPAN class=FOOTNOTE
SPAN Class=reference
origin
/SPAN
SPAN Class=quote
SPAN Class=smallcaps
Text
/SPAN
more text
/SPAN
/SPAN

Some of the tags are nested. How do I find the end tag of each SPAN  
tag? The tag on line 1 has its end tag on line 11, but the first time  
it sees /SPAN is on line 4...


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


Visual effects to scroll up a field?

2006-05-20 Thread Terry Vogelaar

Hi all,

I am working on an application for presenting text on an LCD  
projector. Not just phrases like with a normal presentation, but the  
audience actually have to read along with the (quite long) text on  
the screen. So while the people are reading along, I have to scroll  
down.


With previous solutions I just shifted, but it is annoying when the  
content just changes. Where are we? So now I scroll the field like  
this:


on arrowKey deze
  put the scroll of fld tekst into oldScroll
  switch deze
  case down
put oldScroll + 300 into newScroll
break
  end switch
  repeat with e = oldScroll to newScroll step 5
set the scroll of fld tekst to e
  end repeat
end arrowKey

This does the job, but not quite smoothly.

My question is: can this be improved? Are there visual effects that  
can be applied to JUST A PART of a window - to just a field?  Any  
bright ideas to scroll a field up in a nice way? Can I use the Core  
Image capabilities of RunRev on Mac OS X 10.4 for this?


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


Small caps in unicode field

2006-05-09 Thread Terry Vogelaar

Hi all,

How can I display small caps in a field? I have set the textfont to  
the opentype font Warnock Pro,utf-8 and the font contains glyphs  
for small caps. They are in the range unicode glyph 273 to 298. So I  
tried to set the htmltext to #273; or #0273; tried copy-pasting  
from InDesign and FontGridMac / FontExplorer, but nothing seems to  
work. I cannot figure out how to do this.


To me it is not important how to type these characters. I just want  
to display an HTML file (made by me) that contains these characters  
correctly. So what should the HTML file look like and how should the  
filed be set up?


Any hints?

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


iCalendar or vCard files

2006-04-04 Thread Terry Vogelaar

Hi all,

Is there anyone who made an attempt to write a stack that can  
interpret and edit iCal files or vCard files, like used by Apple's  
iCal and Addressbook?


Terry


___
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


Flash in QuickTime 7?

2005-05-09 Thread Terry Vogelaar
Hi all,
I tried to open a .SWF file in the QuickTime 7 Player, but it doesn't 
seem to work anymore. I guess Apple dropped that functionality.

That probably also means that Runtime Revolution cannot play Flash 
movies anymore, because it relied on QuickTime to handle this...
This might be important for some.

Terry
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OT Anyone using Tiger Yet?

2005-05-03 Thread Terry Vogelaar
Chris Carroll-Davis heeft op dinsdag, 3 mei 2005 om 15:22 
(Europe/Amsterdam) het volgende geschreven:

OT question for techno gurus out there: when
an installer says Optimising Disk... what is it actually doing?
I'd assumed it was doing stuff like repairing permissions...
Optimising Disk means Updating the Prebinding. Not that I am a techno 
guru. I recently saw it on http://www.macdevcenter.com/lpt/a/4400 or 
http://www.macdevcenter.com/lpt/a/5825

Sometimes, for some (apparently) inexplicable reason, your computer 
slows down to a crawl after you have installed a big application.
In that case, you may want to update the prebinding. This means 
forcing Mac OS X to go through all of the application files and make 
sure that they are correctly linked together. The Mac OS X default 
installer usually takes care of this by itself, but some third-party 
installers may be less cautious.

You can do that manually too. To do this, simply open your Terminal and 
type:
sudo update_prebinding -root / -force

Then, enter return, type your password, and enter return again.
Don't worry about the lines of text that will scroll on your Terminal. 
This simply means that the command is doing its work.

The whole process should only take a few minutes. However, it will 
considerably slow your computer down and for maximum efficiency, you 
should not use it at the same time.

Once the command has exited, immediately reboot your computer.
Terry
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Mac / ISO XML - dumb question

2005-03-23 Thread Terry Vogelaar
Op 23-mrt-05 om 12:46 heeft jbv het volgende geschreven:
Terry,
Thanks for the suggestion (replacing upper ASCII chars
with their #xxx; form); I've already came to that conclusion.
The XML files I need to generate on-the-fly with Rev cgi
feature french content, and french language uses quite a few
of those upper ascii chars ()...
The only thing I'm worried about is : this might be OK when
opening the XML files in a browser, but what about other
software (spreadsheet, word processor...) ? Will they accept
#233; for  (for instance) ?
It probably is the only reliable way to use upper ASCII in XML in 
RunRev. So that reduces the options pretty much.

Concerning the other programs: they should treat it right. But you may 
just try it.

Terry
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Mac / ISO XML - dumb question

2005-03-22 Thread Terry Vogelaar
Op 19-mrt-05 om 16:25 heeft jbv het volgende geschreven:
Hi all,
I'm working on a website project using Rev cgi in which
data will be sold online and available as xml files to be
downloaded by customers.
It seems that xml files suffer the same problem as plain
text files : according to the client platform to which they'll
be downloaded, end users need to have the choice between
a Mac or ISO version... Or is there a way to make xml files
all-platforms compatible ?
You are talking about upper ASCII chars, because with 'normal' chars 
you wouldn't notice the difference between Mac or ISO.

Many of these upper ASCII chars can be typed as euml; or #123; (the 
latter form is preferred). XML in RunRev does that automatically, or it 
chokes on these upper ASCII chars.

Upper ASCII chars in XML in RunRev is not completely bug-free. It 
handles 'ë' nicely, but can't handle 'ä' for example.

Terry
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [noob again]mailing list archive

2005-02-22 Thread Terry Vogelaar
Mikey heeft op dinsdag, 22 feb 2005 om 16:25 (Europe/Amsterdam) het 
volgende geschreven:

Is there somewhere that the mailing list is archived so it can be
searched?  This is really helpful with other environments.
Take a look at http://lists.runrev.com/pipermail/use-revolution
You can search using http://www.google.com/advanced_search with 
lists.runrev.com in the domain field...

Terry
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Where are the newest CGI engines?

2005-02-18 Thread Terry Vogelaar
Hi listers,
Now I know that the newest engine has those great XML capabilities, I 
want to install the newest CGI engine on both my Mac and the Linux 
server my site is running on. But I was not able to find them. Any 
suggestions?

Tip to the Runrev webmaster: these engines are great and free to use; 
they should have an easy to find spot on the downloads page of the site.

Terry
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


$HTTP_REFERER in Rev CGI globals

2004-10-14 Thread Terry Vogelaar
Hi,
I need to make a CGI that uses a user name and password to determine 
what privileges the user has. But using the browser history, another 
person that uses the computer after he has closed the session, can 
resume it without having to know the password.

Normally with CGI, PHP or ASP there is an elegant solution to it by 
using $HTTP_REFERER to check where the user comes from. It is also very 
useful to find out which search engines and link pages are actually 
used. But I can't find it in the list of web server globals when using 
a RunRev CGI. Can it be made available in any way? Is there an 
alternative way to be sure the user isn't using the bookmarks or the 
history of his browser?

Terry
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Accessing other stacks in LibCGI

2004-08-19 Thread Terry Vogelaar
Hi all,
While LibCGI helped me a lot in building my website, there is one issue 
I can't resolve yet.

I have a 'content' stack and I want to access information in another 
stack named 'agenda'. And I can't figure out how.
I tried:

lock messages
start using path/to/agenda.rev
put functionInAgenda() into a
That worked as long as I let functionInAgenda just return plain 
information. If I want to access a field on a card, it fails.

I even tried:
put url 
http://www.de-mare.nl/cgi-bin/form.cgi?stack=agendacmd=cmdinagenda; 
into a

The space where the data should be inserted stayed empty, while the url 
itself worked OK in a browser.

I also tried to mare agenda a substack of content an do:
put value(functionInAgenda(),stack agenda) into a
Same result. If I specify a card in agenda it can't be found. If I 
check the name of the first card, it gives the name of the first card 
of stack 'content' instead. If I add 'of stack agenda' it solves the 
problem in the development environment, but the webbrowser gives an 
infinite load time.

Any suggestions?
Terry
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Error message Can't find handler (was Object: value is not a boolean (true or false))

2004-08-06 Thread Terry Vogelaar
J. Landman Gay heeft op donderdag, 5 aug 2004 om 18:09 
(Europe/Amsterdam) het volgende geschreven:

On 8/5/04 4:09 AM, Terry Vogelaar wrote:
I have a weird problem I can't solve.
I get an error message Object: value is not a boolean (true or 
false) when calling a custom handler. The handler doesn't expect a 
boolean value; in fact it never arrives at the handler code, because 
the error occurs in the call. But the call works fine in the message 
box.
This is a spurious error message that was being sent in version 2.2. 
Upgrading to version 2.2.1 fixes the problem.

If you are already using 2.2.1 then we'll need to troubleshoot some 
more.
Dar Scott heeft op donderdag, 5 aug 2004 om 18:06 (Europe/Amsterdam) 
het volgende geschreven:

Check it in the beta.
I installed 2.2.1 and tried it in the beta. The described error is 
gone, but there is another one now. It says Can't find handler

I added a test function to both stacks with the same name to see which 
of the two is called. To my surprise, the one in the login stack is 
called! At least that explains the Can't find handler error. That is 
the stack with the executed script in it, but that one is closed at the 
moment of the call; the other stack should be the frontmost at that 
time and thus it should receive messages. Or am I wrong about this?

Is there a way to explicitly tell RunRev which stack should handle the 
call?

Terry
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Revolution as CGI in OS X

2004-04-22 Thread Terry Vogelaar
J. Landman Gay heeft op donderdag, 22 apr 2004 om 07:11 
(Europe/Amsterdam) het volgende geschreven:

On 4/21/04 6:57 PM, Thomas McGrath III wrote:

THanks J.
But even this below is a bit beyond my understanding at this time. i 
THINK i know about what you are saying here but I could also be way 
off in my understanding as well. I am a novice.
Grab the file I mentioned and I think it will all come clear. 
Basically what I was saying is that you need to copy the Rev engine to 
the server. For most operating systems, you can just use a copy of the 
regular Rev application. On OS X though you need a special version of 
the Rev engine. That engine is called the Darwin version and it can 
be downloaded from the RR site (there is a URL in my notes.) The 
Darwin engine isn't normally used for anything other than running CGIs 
on OS X.

There is a cgi folder on most servers which is used to hold CGI 
scripts. My notes suggest copying the engine to that folder, though 
technically it doesn't have to go there. If you are just starting out 
though, it's easier to keep it there.

My notes do assume that you know a bit about how CGIs work in general, 
so a little Googling on the subject might help if you've never done 
this stuff before.

The first time you get it working, the cool factor is palpable.
Jacque,
I must say that your files helped me a lot, both in using RunRev as CGI 
and in using my MacOSX system as a test server to develop my CGIs. I 
may add some notes for the command-line phobics like me.

Firstly I thought I had to install Apache first before I could setup my 
mac as test server. But it was much simpler: I just had to turn it on 
in the system prefs. Maybe quite obvious, but I missed it.

Secondly you wrote that setting permissions is done better in the 
terminal than in the info panels. I found an alternative way: using an 
FTP program like Transmit. I just used 127.0.0.1 (the IP-number that 
means 'this computer') as server name, with my normal OSX name and 
password. That way I could browse to the files and set the permissions 
like I would on a remote server, without using the terminal. I know 
'terminal' doesn't mean 'lethal' for computer users, but it still makes 
me feel uncomfortable :-)

Everyone who ever successfully installed a Perl CGI on a remote server, 
should be able to understand everything you wrote.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


ArrowKey only sent if text cursor is in a field?

2004-02-19 Thread Terry Vogelaar
Hi all,

I'm working on a multimedia app that requires that is controlled by 
arrow keys. To my surprise, there is only an arrowKey msg sent when the 
text cursor is in a field. According to the docs and my memory, it 
shouldn't make a difference, but it does.

Is this a bug or am I overlooking something here?

(RR version 2.0.3)

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: 'put url http://www.site.com into var' working in standalone

2003-12-08 Thread Terry Vogelaar
Richard Gaskin heeft op maandag, 8 dec 2003 om 21:24 het volgende 
geschreven:

When I say:
put url http://www.site.com; into var
the var is still empty in the standalone version. Any suggestions?
Could there be something in your app's startup that prevents Rev's 
libraries
from loading?

The Distribution Builder puts Rev's libraries in a hidden group on the 
first
card of the mainstack, and must get an preOpenBackground message to
initialize.

There's not enough data on your specific circumstance to know if 
that's the
root cause, however.  To investigate it you could add this at the end 
of
your app's initialization:

   answer the backscripts

If no rev libs are listed in that dialog there's a likelihood they are 
not
being initialized.
You are right, Richard, answer the backscripts brings up an empty 
dialog in the standalone. But why?

It is a stack that requires a login. At first, I had the login brought 
up as a modal dialog in the preOpenStack handler of the main stack. 
What you explained makes clear why that didn't work. I figured this to 
be the reason too, so I made the dialog the main stack that brings up 
the previous main stack when a user successfully logs in.

The internet access is required in the script of the login button on 
the only card of the main stack - the 'login dialog' that is not a 
dialog anymore.

Could a preOpenStack handler prevent libraries from loading? I tried to 
add 'pass preopenstack' at the end of the handler, but that didn't 
resolve anything.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: System language

2003-09-09 Thread Terry Vogelaar
I must admit I didn't really follow this thread, but I know a silly way 
to find out (maybe it is not mentioned before):

get the system weekdaynames
if sunday is among the words of it then put English into the SysLang
if zondag is among the words of it then put Dutch into the SysLang
Don't expect sunday to always be the first line; Australian systems 
sometimes start with saturday.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Portable fonts and usage recommendations needed

2003-08-16 Thread Terry Vogelaar
Dar Scott heeft op zaterdag, 16 aug 2003 om 23:45 het volgende 
geschreven:

I'm getting frustrated with fonts on multiple platforms.
Why don't you try OpenType fonts? They install fine on both OSX and 
newer Windows versions. You will not use fonts 'like' the ones on the 
other platforms; but simply the same ones. Both Adobe and Microsoft 
have plenty of them that install fine on both platforms. And OpenType 
gives full Unicode possibilities.

Read all info at http://www.adobe.com/type/opentype/main.html and fall 
in love, like I did.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: pendingmessages

2003-06-19 Thread Terry Vogelaar
 Puzzle for Revolutionaries:  Watch messages in realtime.  There is one
 message you can't ever see, even though it is almost always in the
 pendingMessages.  What message is that?

idle?

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: alpha

2003-06-10 Thread Terry Vogelaar
Peterson Trethewey heeft op dinsdag, 10 jun 2003 om 20:14 het volgende 
geschreven:

Is it possible to give an image an alpha channel?
What's the best way to do it?  I've tried fooling with
the alphaData property but it doesn't seem to want to
change from its default state, and I've tried making
an image with an alpha channel and importing it.  Has
this worked for anybody?  I feel like I'm missing
something obvious.
Thanks,
Peterson
You can import PNG files which support full 8-bit transparency for 
really stunning use of alpha-channel transparency. Pretty neat; I use 
it very often. But it requires some knowledge of PhotoShop or any other 
program that can export PNG images.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


CGI on a Win2K server

2003-06-07 Thread Terry Vogelaar
What distribution do I need to install RR as a CGI engine on a Windows 
2000 server? Can I install it myself on the server (I am on a mac)? 
Does my ISP need to do something?

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Content management system

2003-06-06 Thread Terry Vogelaar
Has anyone made a Content management system for a Website using RunRev as
CGI-app?

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Flash integration

2003-02-08 Thread Terry Vogelaar
Bradley Borch heeft op zaterdag, 8 feb 2003 om 05:25 het volgende 
geschreven:

Flash is capable of sending messages to other programs using two 
commands: getURL and FScommand. I've gotten both of these to work 
within JavaScript and Director using Lingo. Any idea how to send 
commands from Flash to Rev?

You can run RR on a server as CGI engine and let Flash send its 
commands to that CGI script.

I'm afraid tighter integration between Flash and RunRev is just as 
impossible as a relationship between miscdas and Judy Perry :-)

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Unicode inter-app exchange

2003-02-06 Thread Terry Vogelaar
Is there a way to exchange unicode between applications? More specific: 
I want to exchange Unicode text between runrev and Adobe InDesign, 
preferably using AppleScript. Can it be done? How?

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Cost to update Rev 2.0 to Rev 2.5

2003-02-02 Thread Terry Vogelaar
Mark Brownell heeft op zondag, 2 feb 2003 om 17:12 het volgende 
geschreven:

I was wondering if anyone knew about the cost to upgrade if you have 
the
aprox $999.00 pro licensed version of the current Rev development app. 
I
searched their website for the upgrade policy and could not find 
information
on future upgrades or time limits for free upgrades when you purchase
Revolution.

Upgrading costs $299 at the moment. You can find that information on 
their website at the online store under Professional User License.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Exporting Vector Graphics

2003-01-25 Thread Terry Vogelaar
Richard Gaskin heeft op zaterdag, 25 jan 2003 om 08:39 het volgende 
geschreven:

This ability to export vector graphics would be at the very top of my
wish list for RR.


But in a multi-platform world, the question is:  Which vector format is
widely supported across all three OS families?


PDF and EPS format would be perfect. You already can make both if you 
have a PostScript printer and/or Acrobat, but it involves some manual 
steps, the right hard/software and some knowledge. It would be great if 
RR could do that from within a script.

BTW, shouldn't this be on the improve-list?

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: if (this stack is a standalone) then ...

2002-12-24 Thread Terry Vogelaar
 Is there a way to determine in a script if the stack is a standalone?

Yes, just use the environment function. See the docs for details.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: System Language

2002-12-03 Thread Terry Vogelaar
 Does anyone know how to get this data for Mac systems?

A silly but maybe useful workaround could be to ask the system weekDayNames.
But that is only useful to choose between a few languages. If it contains
Saturday it is English, Zaterdag is Dutch, etc.

Don't expect Sunday to be the first day of the list everyware. Australian
systems start with Saturday for example.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Palette (How to?)...

2002-11-26 Thread Terry Vogelaar
 What is the best way for palette creation,
 and is there somewhere some examples?
 
 I have made a stack for a palette, a picture in it
 for the different tools I need, and a global stack script
 based on the clicLoc for the action , but doing so,
 I don't find the way to hilite each tool on mouseDown...

You should make a button for each tool. Each button can have proper icons
for each mouse state and you can also show tooltips on mouseover.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: applescript, shell script problem

2002-11-26 Thread Terry Vogelaar
I have been using the applescript method of executing shell scripts to
gret effect since I learned about the trick a couple days ago.

However, I have this problem:

I keep getting errors when I try and execute a shell command that 
contains
quotes. What is the proper way of dealing with this?

It is not a problem restricted to AppleScript, but there's a good way 
to deal with it. A quote ends the string in Transcript. So if you write:
ask What do you mean with OK?
it sees OK as a part that needs to be executed, because the string 
ended with the second quote in the line.

Solution: replace every quote that needs to be part of the string like 
this:
ask What do you mean with   quote  OK  quote  ?
(or use 'single quotes' when possible)

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Background

2002-11-24 Thread Terry Vogelaar
 I must have missed something but how does one put buttons and fields in the
 background so that they appear on every card. I am coming from HyperCard
 where it was very easy.

It still is easy, but it is different. Just group the objects that form a
'background'. Groups replace the HC background. You only have to turn the
'backgroundBehaviour' on in the props palette.

This approach is much more flexible, because you can place multiple groups
on one card.

In the docs: Learning Revolution-For new developers-Experienced HC/SC
developers section About... Revolution for HC developers paragraph
Backgrounds and groups explains it all.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



MS Access db via ODBC on Mac?

2002-11-21 Thread Terry Vogelaar
Hello all,

I am developing an application that makes a real estate magazine from text
data in an MS Access database. The layout part is already working - I'm
using AppleScript to communicate with Adobe InDesign.

But the ODBC connection gives me a headache. I can connect RR to the
database on a Windows PC, but than I cannot use the AppleScript part there.

Is it possible to connect with ODBC to a local MS Access database on a Mac?
How?

If it can't be done, could I connect to that Windows PC in any way? There is
a LAN connection with that PC using PC-MAC LAN 8.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: swf files? (OT)

2002-11-15 Thread Terry Vogelaar
Do you really see such an importance for shockwave like for flash?
Imho the filesize is to big. Flash is a killer because of its small 
size...
Sometimes I think MM will let it die slowly together with Director and 
blow Flash then up with a Pro version up to a new Director...

Not really. Directory is mainly useful for multimedia CDs using pixel 
pictures. Because of the popularity of the internet, the glory days of 
the multimedia CD are over. But there is still use for Directory, 
especially when you think about DVD menus. (I don't know if Directory 
can do that, but it could be(come) a handy tool for it).  Shockwave is 
a way to bring these multimedia projects to the internet. However, 
because file sizes are much more important on the internet than on CD, 
Shockwave is never really efficient.

There Flash comes in. This beauty is solely intended for internet 
animation and interactivity. It is very, very efficient when it comes 
to file sizes and learning to use it mainly means learning to keep the 
file sizes down (while making animations).

Saying MM should let Director die and let Flash become a new Director 
sound a bit like saying Adobe should let PhotoShop die and turn 
Illustrator into it's successor. They both produce pictures ant they 
both can handle pixels and vectors, and PS files are usually larger, 
but still there is room for both programs.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: 1.5 (now 2.0

2002-11-12 Thread Terry Vogelaar
In the cases a non-rectangular clickable area is needed, a script 
that does some calculations with the mouse location could provide a 
solution for those cases. Still there are cases imaginable where this 
also wouldn't help. But to introduce a true non-rectangular button 
just for those rare cases seems overkill. RunRev is not the right app 
for 100% of all the development work, but it sure covers 90 to 99%.

Rare cases??
What you have on more than 50% of the sites on the net and on nearly 
every MM App?
Sorry, but thats *not* an overkill. Thats urgently needed!!

I don't underestimate the need for non-rect btns (although you probably 
overestimate it), but I think the cases where a non-rectangular 
clickable area is needed that cannot be handled by a script doing 
calculations with the mouse loc to determine the right action, is very 
rare.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Repeats repeated

2002-11-03 Thread Terry Vogelaar
Richard Gaskin heeft op zondag, 3 nov 2002 om 07:49 het volgende 
geschreven:

Every time you count a line number it eats time.  Arrays are faster 
for this
-- check out the split and combine commands to see how to convert 
chunks to
arrays andback again.

David Vaughan heeft op zondag, 3 nov 2002 om 08:27 het volgende 
geschreven:

I can see why repeat for each failed here - you need to extract 
subsets of the main list for each of the inner RFE loops for each time 
through its outer loop. Thus, you are extracting by line numbers and 
doing more work than in the first instance. RFE is fast through each 
sub-list but the work of continually creating new lists is an 
overwhelming burden. Not sure how to solve it using arrays as you seem 
to wind up with the same problem only this time fiddling with keys. 
Since Richard suggested that approach, perhaps he has something in 
mind.

I understand now why my 2nd script was so slow thanks to David. And 
like David I really cannot imagine why Richard's suggestion about using 
arrays would contribute anything to the speed, but I tried it and it 
obviously worked; it reduced my (fastest) 101 seconds to 36!

Thanks,
Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Repeats repeated

2002-11-02 Thread Terry Vogelaar
Hi all,

Last week I asked a question about filtering the double lines in a var 
with many lines. The list helped very well by pointing out that I 
shouldn't use repeat with, but repeat for each, which brought the 
processing time back from 60 hours to 4 seconds (!)

So I tried the same technique with another script that has a triple 
repeat loop. The var t contains about 150 short lines and the script 
is intended to put every possible combination of 3 lines of t into a 
field:

  repeat with f1 = 1 to the number of lines of t - 2
put line f1 of t into g1
repeat with f2 = f1+1 to the number of lines of t - 1
  put line f2 of t into g2
  repeat with f3 = f2+1 to the number of lines of t
   put line f3 of t into g3
   put g1,g2,g3 return after fld uitvoer
  end repeat
end repeat
  end repeat

That took 101 seconds. So I tried to speed it up with what I learned 
about repeat for each:

  put line 1 to -3 of t into t1
  put 0 into f1
  repeat for each line g1 in t1
add 1 to f1
put line f1+1 to -2 of t into t2
put 0 into f2
repeat for each line g2 in t2
  add 1 to f2
  put line f2+1 to -1 of t into t3
  repeat for each line g3 in t3
put g1,g2,g3 return after fld uitvoer
  end repeat
end repeat
  end repeat

364 seconds! And I thought it would be faster!  It involved some extra 
vars, but since it is not much data processed, I don't think memory 
issues could explain this.

Any thoughts why this is much slower than the original script and how I 
can speed this up?

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: 60 hours divided by 60 is 2 minutes?

2002-10-28 Thread Terry Vogelaar
What Rob Cozens, David Vaughan and Jan Schenkel wrote was of course 
much better than what I wrote in my script. I thought I needed to use 
repeat with i = 2 to the number of lines... instead of repeat for 
each, because in a repeat for each loop you cannot see the previous 
line. But of course you can in the previous loop! I didn't think about 
that. Thanks.


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Ask/Answer Problem

2002-10-28 Thread Terry Vogelaar
Robert Presender heeft op dinsdag, 29 okt 2002 om 05:29 het volgende 
geschreven:

Have a test stack with 1 fld and 1 btn.
Btn Script:
on mouseUp
  answer Please enter a name  with OK or Yes or Cancel
  put it into fld 1
end mouseUp

on mouseUp
  ask Please enter a name
  put it into fld 1
end mouseUp

Both of the above scripts work OK in  development (Application 
Overview).
A dialog  appears, appropriate data entered and the results are put 
into the field.

When the the proj is doubled clicked (Rev not opened), no dialog 
appears but the
result in the field are for each case:
1. answer plain Please enter a name
2. ask plain Please enter a name

Hello Robert,

Both the answer and ask dialog are part of the Revolution UI, which is 
not started up when you doubleclick a project with rev not open. So the 
dialogs don't appear and the contents of 'it' are not filled in by the 
dialog. I am puzzled why you get the result you get instead of 
literally it.

Solution: start Rev first or make a standalone. I don't think there is 
an other solution.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


31142 lines/cards/records

2002-10-22 Thread Terry Vogelaar
I have 31142 items to keep track of and I wonder what the best approach
would be to store them. Each item should have an equal number of fields,
just a few, with not much text data in each. I could make a comma delimited
field with 31142 lines, a stack with 31142 cards or a database with 31142
records. I need to sort them in several ways and I wonder what the fastest
way is to store and access the data. Any suggestions? What are the benefits
of each solution?

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: 31142 lines/cards/records

2002-10-22 Thread Terry Vogelaar
 I have 31142 items to keep track of and I wonder what the best approach
 would be to store them. Each item should have an equal number of fields,
 just a few, with not much text data in each. I could make a comma delimited
 field with 31142 lines, a stack with 31142 cards or a database with 31142
 records. I need to sort them in several ways and I wonder what the fastest
 way is to store and access the data. Any suggestions? What are the benefits
 of each solution?
 
 Your question is a little confusing. First you say you have 31142 items,
 then you say each item should have an equal number of fields.
 
 This implies you have several separate text items for each item.

Sorry about the confustion. I didn't mean text items, but I had to give it a
name. Maybe 'units' would have been better, because that doesn't mean
anything in transcript (as far as I know). I meaned if for those units lines
would be the right solution (which seems to be according to the good
responce several of you gave; thank you all), those 'fields' would be text
items. Otherwise it would have become a stack with cards and fields or a
database with records and fields.

 Both _search criteria_ (what 'ways' will you want to sort on) and _content_
 must be known before you can decide on preferences for setting up any
 system.
 
 If you don't need to categorize, a single field (scrolling I assume)
 might be the fastest way to find and sort, but the mechanics of scrolling
 through a field with that many lines will likely be painfully slow. Also,
 will you be adding lines? If so, where? In other words, you may need to take
 editing features into account.

The users will not see the data as a whole, but the script presents the
units one by one, alters some data and changes that line of data.

Thanks for the help you all.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Setting Geometry on cloned objects

2002-10-07 Thread Terry Vogelaar

Bob Rasmussen heeft op dinsdag, 8 okt 2002 om 07:20 het volgende 
geschreven:

 Short of writing my own Geometry Manager, does anyone have any other 
 bright
 ideas?

Because I never trust the GeoMan, I always use 'resizeStack'. To give 
an example, I pasted the script of a stack that uses this technique. 
The stack has a divider line that sets it's own 'divid' custom prop and 
also calls 'arrangeElements'. It needs some typing, but it is quite 
simple and gives much more predictable behaviour than the GeoMan.

It would be a useful contribution if anyone would write a kind of 
GeoMan stack that just adds a properly working resizeStack handler to 
the stack script.

on resizeStack
   arrangeElements
   pass resizeStack
end resizeStack

on arrangeElements
   put the divid of btn Divider into perc
   put the width of this stack into lWidth
   put the height of this stack into lHeight
   put round((perc*(lWidth-365))+120) into L40
   if L40  120 then put 120 into L40
   if L40  (lWidth-245) then put (lWidth-245) into L40
   set the rect of btn Divider to L40-7,52,L40+1,lHeight-4
   set the rect of btn OTNT to 4,52,L40-10,lHeight-4
   set the rect of btn showwhich to 
L40+4,104,lWidth-4,lHeight-4
   set the rect of fld books to 10,76,60,lHeight-10
   set the rect of fld history to 62,76,L40-14,lHeight-10
   set the rect of fld shortcutnumbers to 
L40+6,129,L40+26,lHeight-10
   set the rect of fld groups to 
L40+26,130,lWidth-10,lHeight-10
   set the rect of fld head to L40+4,52,lWidth-4,74
   set the rect of fld subhead to L40+4,77,lWidth-4,99
end arrangeElements


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Q. data stacks and app design

2002-10-03 Thread Terry Vogelaar

 Why don't you just maintain the data in an external text file? Then, you can
 read and write it as simply as:
 
 put url (file:  tFileName) into tData
 
 and
 
 put tData into url (file:  tFileName)
 
 Ken Ray

Sometimes this is a good solution, but there is a possible problem you have
to keep in mind:
When you develop for a multi-platform app and the text file is brought from
one platform to another, you have to keep in mind that the text can contain
upper-ascii chars (international chars, etc.). They are automatically taken
care of when in a field, but you have to do that 'yourself' (call the
MacToISO or the ISOToMac function) when the text is in a text file (or in a
custom prop). But if a text is already ISO encoded and you use MacToISO, you
get output that is incorrect on any platform. So you have to know where the
text comes from to do this right. And that is not always obvious.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: XML

2002-10-02 Thread Terry Vogelaar

 Rev 1.5 is still in testing.  I have no clue when it will be
 officially released.
 
 Coming from REALbasic land, I immediately start looking for new
 features in the prerelease versions of Rev ;-). I could really make use
 of the XML parsing and the new spreadsheet control. Can anyone please
 spill the beans a little bit about the status of the next release
 beyond 1.1.1. Where can I download an alpha from, if anywhere?

You have to be a pro user to be able to test the alpha versions. If you are,
please contact Kevin Miller about this. If you are not, just be a bit more
patient...

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Help with Html to text conversion

2002-07-22 Thread Terry Vogelaar

 Anyone have a transcript script or OS X external function to convert
 HTML to Text? I have an external function but it wont work with OS X.

 This was posted by David Vaughan a couple of months ago:
 
 function stripHTML aData
repeat for each line aLine in aData
  repeat while matchchunk(aLine,*)
delete char offset(,aLine) to offset(,aLine) of aLine
  end repeat
  put aLine  return after outData
end repeat
return outData
 end stripHTML

 I haven't tried it myself, but it looks good.

This removes the tags only; the specialChars; will remain weird and
unreadable. Personally I think the best way is:

  set the htmlText of field temp to aData
  put field temp into outData

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: diffdays

2002-07-18 Thread Terry Vogelaar

 Would be nicer to have DateToJulian and JulianToDate functions built into
 the engine
 
 I agree with Richard - it would be 'nicer' to be able to do it easier.
 
 it is no more than about 20 lines of code, from a parsed date.
 and an option on a control card whether to use the RR built-in code or the
 application hand-made code. Both are nice and easy.
 
 actually it is better to have the starting days of the months in a list,
 i.e. 0,31,59,90,... for a non-switching year, but 0,31,60,91,... for a
 switching
 year.

Could you share these 20 lines of code? I don't have a clue where to start.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: diffdays

2002-07-16 Thread Terry Vogelaar

 Can someone help me to write a function that returns the difference
 of days between two dates ?
 Please don't forget the dateformat can be different from a system to
 another (U.S,French,German,...)

Hello Yves,

I don't know if this is the smartest way, but this should do it:

on mouseUp
  put dinsdag, 9 juli 2002 into DateA
  convert DateA from system long date to seconds
  put 7/17/02 into DateB
  convert DateB from short date to seconds
  put DateA - DateB into diff
  divide diff by 86400 -- No of seconds in 1 day
  if char 1 of diff = - then delete char 1 of diff
  put diff
end mouseUp

and the message box shows the date of 10 days ago in French (or Dutch, or
whatever language you are using). As long as RR can understand the date
format provided, and you specify which format it is, there shouldn't be a
problem. The only thing is if the data provided is in languages other then
the system language of the user and English, in other words: on my system, I
can only interpret Dutch or English dates; not Frech or German. Maybe a nice
feature request to add a few more languages than English...

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Export to QT movie (the edge between on- and off-topic)

2002-07-03 Thread Terry Vogelaar

Is there a way to capture what RunRev displays on screen in a QuickTime
movie? I'm planning to make a (kind of a) presentation using RR and put it
on a SVCD or DVD. Video-data will not be used by the application; only
artwork, sound and text. If the sound brings up problems, it can be handled
separately. Any suggestions? Maybe a prog that captures to QT anything
displayed on screen? Or maybe there is a build-in Revolutionary way that I
am not aware of.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: new card with other bg

2002-06-15 Thread Terry Vogelaar

 I have a substack with a few cds with the same bg (= the same grp
 with the bg behavior property set to true)
 
 Now I'd like to create a new cd in the same substack but this one
 should have another layout.
 
 How can i create a new cd with another bg ?

Just make a new card with the 1st group. Then delete the group. You can do
that in the 'Application Overview' or you can deselect the 'Select grouped
controls' from the Edit menu, so you can select the entire group and delete
it. Then you can place your new elements on the card and group them.
Optionally you can set the bg behaviour on for that group as well. When you
are looking at a cd with this bg and you make a new cd, this bg will be
copied, and when you see a cd with that other bg, that one will appear on
new cds as well. When you know it, it is simple.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: selecting ALL lines in list field

2002-05-18 Thread Terry Vogelaar

 select line 1 to -1 of field myField
 
 Thanks!  That works fine with no repeats.  I'm not sure how it works. I
 don't really understand it.  But thanks!

Well, -1 means last. You can use this in several other ways. Like when you
want to remove the 3-character-extension of a file name, you can type:

delete char -4 to -1 of filename.jpg

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Impatient script

2002-05-16 Thread Terry Vogelaar

In a repeat loop I bring up a dialog (a stack opened as 'modal') to fill in
some additional info when needed. But while the dialog is waiting for user
input, the repeat loop continues! How do I let the script wait until the
user responds to the dialog?

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Puzzling with ads on magazine pages

2002-04-10 Thread Terry Vogelaar

I need to make a program that figures out how a couple of rectangles fit
best into a number of larger rects. OK, this sounds too cunfusing. I need to
make a program that fits several advertisements on 12 magazine pages. And I
want Revolution to figure out what ad should be placed where. None of the
ads has a standard width or height. The ads don't need to align, however. As
long as they fit and as long as they don't overlap.

Challenging, isn't it?

Any suggestions to get started?

Terry
http://www.discovery.nl


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Nasty script stays disobedient

2002-04-08 Thread Terry Vogelaar

I have a script that makes a button on another stack. Making a new button
automatically selects the pointer tool, but afterwards the browse tool
should be selected again.

That is where it gets annoying. When I add 'choose browse tool' in that
script, the pointer tool stays selected. When I repeat it a few times, the
pointer tool stays selected. Even when I use all-capitals, enlarge the font
size and use bold for that sentence in the script editor, it won't listen.

That nasty little script should take an example form the message box! I only
once have to type 'choose browse tool' et voila! No problemos!

Should I spank it? If so, how and where?

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Applescript variable contents

2002-03-12 Thread Terry Vogelaar

 Hm... I don't get it. There's no line ApplescriptFunction which
 contains a return command. Isn't that necessary to obtain a return
 value from a function?

When I made this function, I planned to write the part that returns a value
when the rest was finished. But when I started to test it, it already
returned the proper values! In other words: I don't get it too! :-) But it
works just fine. Try it.

Terry
http://www.discovery.nl

 get AppleScriptFunction(nameOfFunction, path:to:file, 1, 2, three,
 four)
 
 Mind that on Mac OS classic you need to use colons in the path (2nd param),
 while on Mac OS X you must use slashes.
 
 Then in the stack-script you can put:
 
 function AppleScriptFunction aFun, aFile
 put set theScript to load script (alias quoteaFilequote)return \
 tell theScript to aFun( into ASfunc
 if paramcount()  2 then
 repeat with e = 3 to paramcount()
 put param(e) into f
 if param(e) is a number then
 put f  , after ASfunc
 else
 put quote  f  quote  , after ASfunc
 end if
 end repeat
 else
 put   after ASfunc
 end if
 put ) into last char of ASfunc
 do ASfunc as applescript
 end AppleScriptFunction
 
 Now you can call any function with any number of parameters. The value that
 is returned by the AppleScript-function is returned by AppleScriptFunction
 as well.


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: How to use tab UI widgets?

2002-03-04 Thread Terry Vogelaar

 I'm wondering how I use the tab widgets.  I create the widget, then drag
 some UI elements on to page 1 and now want to go to page 2 and do the same.
 
 I've noticed that the widgets don't seem to be putting themselves on a tab
 pane.  

A tab is actually just a button used as a menu. When you click on the
rightmost tab of the properties palette, you can name the tabs. Then in the
script of the button, you put a script like:

on menuPick pWhich
  switch pWhich
  case firsttab
hide group secondstuff
show group firststuff
break
  case secondtab
hide group firststuff
show group secondstuff
break
  end switch
end menuPick

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Time field (please help)

2002-03-03 Thread Terry Vogelaar

 How do you get the field to display live time?
 
 Try using on idle in the script of the field.

The use of 'on idle' should be avoided. Instead, write a handler in the
script of the field that is called by an openCard handler:

send updateTime to field Now

and let the handler call itself in 1 second:

on updateTime
  put the long time into me
  send updateTime to me in 1 second
end updateTime


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Time field (please help)

2002-03-03 Thread Terry Vogelaar

 Question:  What happens when the user goes to another card or another
 stack?  Must one take some action on closeCard/closeStack to stop
 updateTime from continuing to send messages every second?
 
 I suppose so long as there is no updateTime handler in the current message
 hierarchy the last updateTime message will not be handled; however, in
 general I'm leary of starting continuous loops without scripting a means to
 stop the loop if desired or necessary.  And, in truth, I don't know what
 RunRev does when instructed to send a message to a control that is no
 longer in the message hierarchy.
 
 Can someone reduce my fooleshness on this subject?

I wondered about this myself too. I must admit I didn't try it yet. But this
technique is the advised scripting technique to avoid 'on idle'. So if it
would create an infinate loop, it wouldn't be 'better' then 'on idle', but
worse.

Terry
http://www.discovery.nl


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Plain text posts

2002-03-03 Thread Terry Vogelaar

 COMPLIMENTS 
 Ian and Sarah: Thank you for your earlier, you got me started in the right
 direction and I know have a much better understanding of Revolution (although
 I am sure i have only scratched the surface)...
 /COMPLIMENTS 
 (I hope that isn't considered a non-plain text message.. ;-) )

Of course I get the joke, but the funny thing is that it was indeed a
non-plain text message! What our wise mother Heather was talking about was
HTML-encoded messages, which mess up the digests and the list-archives. It
is kinda tricky because most e-mail clients make HTML-encoded messages by
default. It is not only the use of fonts, sizes and styles that make a
message HTML-encoded, but even the ABILITY to use them, indicates that the
message is HTML-encoded.

Terry
http://www.discovery.nl


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: OT -- Animation Programs

2002-03-02 Thread Terry Vogelaar

FLASH! Definitely Flash. Flash is able to make animations, movies and
interactive projects of any kind. It is mainly a vector-based program, but
it handles pixel data as well.

Terry
http://www.discovery.nl

 Van: Sivakatirswami [EMAIL PROTECTED]
 Beantwoord: [EMAIL PROTECTED]
 Datum: Thu, 28 Feb 2002 18:21:45 -1000
 Aan: Metacard List [EMAIL PROTECTED],
 [EMAIL PROTECTED]
 Onderwerp: OT -- Animation Programs
 
 Forgive this off topic query, but I can't think
 of a better group to give recommendations:
 
 If you had to purchase animation/cartooning software for your art
 director/artists, (already fluent in Adobe PS and IL)
 what would be your choice? End product would be anything from
 simple animated GIF's to movie cartoons.
 
 (email me off list)
 
 Thanks
 
 Hinduism Today
 
 Sivakatirswami
 Editor's Assistant/Production Manager
 [EMAIL PROTECTED] 
 www.HinduismToday.com, www.HimalayanAcademy.com,
 www.Gurudeva.org, www.hindu.org
 
 Read The Master Course Lesson of the Day at
 http://www.gurudeva.org/lesson.shtml


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Ready-made buttons and fields

2002-02-25 Thread Terry Vogelaar

 It would be great if one of you knowledgeable rev people would create a stack
 of ready made buttons and ready made fields. Some of you remember that
 hypercard included these in their software. These sure would help beginning
 programers. They could be posted for download at Runrev. Anybody
 interested.

It should be mentioned that RR has more ready-to-use stuff than HC, because
RR has a whole series of field tools instead of one. That counts for the
button tools as well. Besides that, there is the library with some prefab
stuff.

Then again, I miss some items like an example on how the progress bar works
(you rev people probably thought that because RR is so fast, nobody would
use a progress bar ;-).
Other things I like to see in the library are:
- images in text fields
- a standard menubar with all the commonly used items properly working
  (new, close, save, print, quit, undo, cut, copy, paste, find, help, about)
- a standard toolbar with those same items
- a good script that dims/disables the items in the toolbar/menubar that are
  not available
- read and write data to a properly formatted XML file that uses a DTD

These are things that kept me occupied quite a while. Most of them are
solved, some others (like dimming 'undo' when not available) not. I am
working on XML handling at the moment, because I think XML should be the way
all data should be stored.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: resizing window via card properties

2002-02-22 Thread Terry Vogelaar

 I cannot figure out how to resize a window via the card properties, the
 width/height settings there are not focused (active), and therefore cannot be
 adjusted.  I can adjust the window size from the stack-properties, but that
 sizes all the cards/windows.  I want to be able to size each card/window
 separately.
 
 Isn't each card a window?  I am confused.

Not each card is a window, but each stack is a window. So you can do two
things:
- Make a substack for each card with another size.
- Write a preOpenCard handler in each card script that resizes the stack
  to the proper dimensions.

Which of the two is best depends on your project.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Wordwrapping formattedWidth/Height

2002-02-19 Thread Terry Vogelaar

This one is silly, but I still need to figure it out.

A field has wordwrapping on (dontWrap is off). The width is set to a certain
width. Then it is simple to get the formattedHeight.

But now the other way around. I need to know what the width of a field must
be to have a field with a certain height. Should I loop through every
possible width, see what the formattedHeight is and stop the loop when the
requested formattedHeight is found? Or is there a smarter way?

FormattedWidth doesn't help much here, because it depends on the real width
of the field.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Will the script editing quirks be fixed?

2002-02-19 Thread Terry Vogelaar

 Am I the only one suffering from the problem of the auto completion of
 things like on repeat putting the end repeat before another line:
 
 Put 1 into x
 Put 2 into y
 
 If I type on repeat between the two:
 
 Put 1 into x
 On repeat
 Put 2 into y
 
 Revolution puts in:
 
 Put 1 into x
 On repeat
 
 End repeatput2 into y

The problem is actually a handy feature which looks like a bug when you
don't know what happens. If you type repeat and a return, the end repeat
is automatically filled in, because the repeat has to end somewhere.

The solution is very simple: don't position the cursor before line two, but
after line one. Then you begin with a return and then you type on repeat.

BTW, don't you just mean repeat? Because when you write on repeat, you
are making a new handler called repeat, while you probably just want to
have something repeated...

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Drawing tools in standalone

2002-02-19 Thread Terry Vogelaar

 Just a litle question about the Rev 1.1.1 update:
 will it be free for the Rev 1.1 registred users ?

After registering, you will have ALL the updates free for a whole year.
After that year, your license will work for the versions released during
that year, but new versions will not work with your serial number.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Uploading a file the webform way

2002-02-13 Thread Terry Vogelaar

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.)

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



AppleScript functions made easy

2002-02-07 Thread Terry Vogelaar

In HyperCard I had a stack with a lot of AppleScript functions. Because RR
treads AppleScript differently, I tried to make a function which may come in
handy for others as well.

The basic idea is that you store the AS-functions in a separate file; a
normal AppleScript-file. No custom props or fields needed, so you don't have
to work with a copy of the script, but you can work with the original, which
saves time when the AppleScript function is still in development.

Then you must know the path and the name of the function in the file. You
call it with:

get AppleScriptFunction(nameOfFunction, path:to:file, 1, 2, three,
four)

Mind that on Mac OS classic you need to use colons in the path (2nd param),
while on Mac OS X you must use slashes.

Then in the stack-script you can put:

function AppleScriptFunction aFun, aFile
  put set theScript to load script (alias quoteaFilequote)return \
  tell theScript to aFun( into ASfunc
  if paramcount()  2 then
repeat with e = 3 to paramcount()
  put param(e) into f
  if param(e) is a number then
put f  , after ASfunc
  else
put quote  f  quote  , after ASfunc
  end if
end repeat
  end if
  put ) into last char of ASfunc
  do ASfunc as applescript
end AppleScriptFunction

Now you can call any function with any number of parameters. The value that
is returned by the AppleScript-function is returned by AppleScriptFunction
as well.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Looks like HyperCard

2002-02-07 Thread Terry Vogelaar

Troy Rollins wrote:
 This has come up several times in this group. The gist is this -
 double-clicking a stack opens it, sans the Rev UI. Open the stack in Rev, or
 create a stand-alone, and all is well. Basically, double-clicking a stack
 which is not a stand-alone, opens it in Rev in some strange way that no one
 actually wants to do.  ;)

Jeanne replied:
 Well, that's not exactly true. ;-)
 
 It's a useful mode for testing before you build your actual
 standalone...but it's pretty much the same thing you get with Suspend
 Revolution UI in the Development menu.

I thought Troy was right, but Jeanne is the only known exception, so he
wasn't speaking the truth, because he said no one actually want it. ;-)

I think doubleclicking a stack should start up the Rev UI as well. When
someone wants to test, he/she can use the Suspend UI command.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Employee Database Tutorial broken on OS X?

2002-02-05 Thread Terry Vogelaar

 First, there is a mongo button covering up the majority of the data
 entry fields. I can't for the life of me figure out what it is or why
 it's there but it sure makes the stack ugly and almost unusable.
 
 This is the image button, click on it to select an image. The image is
 meant to appear on or over the button, but this doesn't seem to always
 work in the OS X version either.

Neighter does it work on Mac OS classic 9.2.2 here.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Running a Stack from the Web

2002-01-31 Thread Terry Vogelaar

 When you choose Check for Updates Online, Revolution has a stack posted on
 their web site which they open by calling:
 
 go stack URL http://www.runrev.com/revolution/revupdates.rev; as modeless
 
 Would anyone know why it works for them, but when I post a stack, I get
 stack is corrupted, check for ~ backup file?  I have tried using the
 Standalone Builder to make a stack... That didn't make a difference.  Got
 any ideas?

Are you sure you have sent the stack to your server using FTP in BINARY mode
(not ASCII or autodetect)? Accidentally using ASCII mode is the most common
technique to mess up computer data. I use it all the time ;-)

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



The check in a menu item

2002-01-25 Thread Terry Vogelaar

In a menu I have 3 items that can be checked. When the check appears in the
1st item, it should be removed from the 2nd and the 3rd item, and so on.

But there is something about checking I don't understand. When I want a
menu-item to be checked, I put !c before the line of that item. But when I
want to move the check from that item to another, I get (or RR gets)
confused. If I just remove the !c from the first line and then add !c to
the second, I have 2 items checked instead of one. But when I remove replace
the !c with a !n, the check is gone. Then I check a third item. Then
chaos begins. !n is visible in the 1st item. And the more I swap the
menus, the more !n!n!ns I see.

With a lot of extra scripting, I managed to let it work reasonably reliable.
But I've got a feeling it should be less complex.

BTW, why is there a !n or a !u anyway? I think the check/diamond should
be gone as soon as the !c/!r is gone.

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: remove from memory doesn't

2002-01-20 Thread Terry Vogelaar

 I have a stack in file foo.rev. Revolution is open; I save the
 stack and do close and remove from memory.
 
 In the finder I copy foo.rev = foo copy.rev; I drag this stack onto
 Revolution.
 
 Now if I click a button for editing I get a message A stack with the
 same name as the one you are trying to load is already open

What really is happening here is that the name of the file is not the name
of the stack. So both 'foo.rev' and 'foo copy.rev' are probably called foo
in RR. That confuses both RR and us humans.

The solution is that you purge the stack in the application manager before
opening the copy.

Groetjes,
Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Multilingual interface

2002-01-19 Thread Terry Vogelaar

Hi all,

Who has bright ideas on how to handle multilingual projects? Creating two
(or more) separate stacks gives a lot of extra work; especially during
development.

I was thinking about some kind of a language-preference that gives all the
buttons another label and give some fields another content.

The main problem is that I don't understand how I can change the content of
a menu. There is something about dynamically changing a menu in the Rev
Encyclopedia: About menus and the menu bar. I have to put a mousedown
handler in the group. But what should it contain? Are there any examples of
it?

Also, would I need to extend the switch stucture like:

on menuPick pWhich
  switch pWhich
  case Save
  case Bewaar -- Dutch for 'Save'
saveStuff
break
  case Quit
  case Stop -- Dutch; well that doesn't have to be explained
quitStuff
break
  end switch
end menuPick

Finally, can I discover what language the OS is, so I can set the standard
language preference setting of my stack to it?

Terry


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution