Re: [ANN] News Reader Stack Available

2003-06-19 Thread Dar Scott
On Wednesday, June 18, 2003, at 11:08 PM, Chipp Walters wrote:

I'm with Jacqueline. I always thought it took the interpreter longer to
figure out what it's looking at.
...
Has anyone else any
thoughts on the wisdom or otherwise of quoting all names?
I believe there is a slight speed hit if you don't use quotes, since 
the
engine has to figure out whether the word is a variable or a name.
A quick test on OS X seems to indicate that is not the case:

on mouseUp
  local x
  set the numberFormat to 0.00
  put empty into field Report
  put the long seconds into tEnd  -- throw this one away
  put the long seconds into tStart
  put the long seconds into tEnd
  put tEnd-tStart into tCorrection
  put the long seconds into tStart
  put the highlight of button dummy into x
  put the long seconds into tEnd
  put (tEnd - tStart - tCorrection)   s quoted  LF after field 
Report
  put the long seconds into tStart
  put the highlight of button dummy into x
  put the long seconds into tEnd
  put (tEnd - tStart - tCorrection)   s unquoted  LF after field 
Report
end mouseUp

Typical results:

0.25 s quoted
0.26 s unquoted
I would guess that the script compiler checks to see whether the name 
was used as a variable so for in the script.  If it has, it would 
compile a variable use.  If not, it would compile the same as a string.

If there is a real difference is is one or two microseconds on my 
computer.

Dar Scott

___
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


Disembodied windowShapes

2003-06-19 Thread Mathewson
I have just uploaded a new stack Bubastis.rev to my
website:

http://members.maclaunch.com/richmond/default.html

it copes with transparent bits and funny-shaped images in a
totally different way to
my previous attempts.

Have a look, have a laugh!

Richmond Mathewson
---
Great Macintosh Products 
 The MacLaunch Store! http://www.maclaunch.com/cgi-launch/store/agora.cgi
---
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [ANN] News Reader Stack Available

2003-06-19 Thread sims
Glad to hear someone finds it useful.  I was getting quite sick of clicking
links, waiting for pages to load, clicking back to return to stories, etc.,
thus this project.  There are a few more features I'd like to add, such as
searching past stories, displaying reviews, and viewing forum comments, but
I'm trying to complete some other mini-browsers beforehand.
Very nice, Scott!

I made something similar which grabs the local news from the Times of Malta,
saves the text and then makes a sound (.aiff) from the text. I can listen to
the news whilst doing other things here in the morning. You could also save it
to iTunes and end up with a MP3 file if you space is an issue.
Because of the AppleScript it only works on Mac.

To turn text into an AIFF sound file I do the following:

In the Custom Property  doAS I place:  using  Bruce   saving to 
MaltaNews.aiff

  if the hilite of btn Make sound file is true then -- option of 
listening or reading the text
  put fld pageText into tWords -- fld containing portion of web 
page with html stripped
  replace quote with   in tWords --quotes seem prevent the making 
of the sound file
  put the doAS of me into doAS  --I suppose you could just script it 
all without the Cust.Prop
  put say quotetWORDSquote  before doAS
  do doAS as applescript
  end if

atb

sims



--
---
   http://EZPZapps.com [EMAIL PROTECTED]
  Software - Internet Development - Consulting
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [ANN] News Reader slight clarification

2003-06-19 Thread sims
In the Custom Property  doAS I place:  using  Bruce   saving 
to MaltaNews.aiff


In the script that gets the web page I place:

  if the hilite of btn Make sound file is true then -- option of 
listening or reading the text
  put fld pageText into tWords -- fld containing portion of web 
page with html stripped
  replace quote with   in tWords --quotes seem prevent the making 
of the sound file
  put the doAS of me into doAS  --I suppose you could just script it 
all without the Cust.Prop
  put say quotetWORDSquote  before doAS
  do doAS as applescript
  end if


atb

sims
--
---
   http://EZPZapps.com [EMAIL PROTECTED]
  Software - Internet Development - Consulting
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


[ann] Fullscreen Public Beta

2003-06-19 Thread Malte Brill
Hi all,

my little app. Fullscreen is ready for Beta Testdriving on Mac Os X and
Classic. (Windows to follow in July)

http://www.derbrill.de/fullscreen

What is it?

Fullscreen is a GUI (Graphic User Interface) for Quicktime.
Besides displaying a movie in its original size the program allows stepless
scaling of the Playerwindow from 15% up to 100% of the actual screen
resolution.Fullscreen archives your movies. The program offers compfortable
management of multiple Playlists. Both Playlists and movies can be renamed.
The original names of your movies on your harddisc remain unchanged of
course. You may turn on looping, hide the Menubar and the dock, hide the
remotecontrol to enjoy your movies in full size without needing  the Pro
version of Quicktime.
Fullscreen is in public Beta phase for Mac Os X and Classic right now.


If you want to take a look at it, please do it. :-)
Send Bug-reports or feature requests to [EMAIL PROTECTED] please.

PS:

I want to give credits to the inventors of the directory walking script I´ve
stolen (and modified) from the Metacard List. So could anyone of you please
drop me a line with the names of the people that were involved please?
That´ll be great.

Regards,

Malte

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


[ANN] specialized browser Malta News demo

2003-06-19 Thread sims
This app can download news from two sections of the Times of Malta
(yes...not of much interest for many people out there, it's a demo
of one way to make a  specialized browser).
Download news - saves as text file - save as AIFF sound file  - increase
text size for vision impaired - etc
DOWNLOAD (64k)   http://ezpzapps.com/GGMU.rev.sit/

atb

sims
--
---
   http://EZPZapps.com [EMAIL PROTECTED]
  Software - Internet Development - Consulting
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] specialized browser Malta News demo

2003-06-19 Thread Mathewson
Dear EzPz (Oh, by the way, in the UK we don't understand
eeZedPeeZed),

Unable to download your Times of Malta browser: gosh, can't
wait to find out the latest juicy scandals rocking
Valletta!

'Broken Link'

Regards, Richmond Mathewson
---
Great Macintosh Products 
 The MacLaunch Store! http://www.maclaunch.com/cgi-launch/store/agora.cgi
---
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [ANN] specialized browser Malta News demo

2003-06-19 Thread sims
Dear EzPz (Oh, by the way, in the UK we don't understand
eeZedPeeZed),
We all have some sort of handicaps...  ;-)

Unable to download your Times of Malta browser: gosh, can't
wait to find out the latest juicy scandals rocking
Valletta!


Dump the slash at the end

NO!http://ezpzapps.com/GGMU.rev.sit/

  YES http://ezpzapps.com/GGMU.rev.sit

sims
--
---
   http://EZPZapps.com [EMAIL PROTECTED]
  Software - Internet Development - Consulting
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


pendingMessages Puzzle (was pendingmessages)

2003-06-19 Thread Dar Scott
On Thursday, June 19, 2003, at 02:08 AM, Terry Vogelaar wrote:


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?
I don't know how that is implemented, but I don't think it is ever in 
pendingMessages().

Nope.  That is not the answer I'm thinking of.

Dar Scott

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


externals questions

2003-06-19 Thread Alex Rice
In the Game of Life external, external.c, I have noticed:

1) String constants are copied before returning, e.g.
*retstring = istrdup(atan2: must pass 2 arguments);
Why is this? It seems to work just as well todo
*retstring = here is the return value;
2) To indicate a successful call to a handler, it is doing
*retstring = (char *)calloc(1, 1);
What is the significance of the 1 byte? It seems returning NULL works 
just as well and it's one less function call to make.

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]


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


Re: [ANN] News Reader Stack Available

2003-06-19 Thread J. Landman Gay
On 6/19/03 1:15 AM, Dar Scott wrote:

On Wednesday, June 18, 2003, at 11:08 PM, Chipp Walters wrote:

I'm with Jacqueline. I always thought it took the interpreter longer to
figure out what it's looking at.
...

Has anyone else any
thoughts on the wisdom or otherwise of quoting all names?


I believe there is a slight speed hit if you don't use quotes, since the
engine has to figure out whether the word is a variable or a name.


A quick test on OS X seems to indicate that is not the case:

on mouseUp
  local x
  set the numberFormat to 0.00
  put empty into field Report
  put the long seconds into tEnd  -- throw this one away
  put the long seconds into tStart
  put the long seconds into tEnd
  put tEnd-tStart into tCorrection
  put the long seconds into tStart
  put the highlight of button dummy into x
  put the long seconds into tEnd
  put (tEnd - tStart - tCorrection)   s quoted  LF after field Report
  put the long seconds into tStart
  put the highlight of button dummy into x
  put the long seconds into tEnd
  put (tEnd - tStart - tCorrection)   s unquoted  LF after field 
Report
end mouseUp

Typical results:

0.25 s quoted
0.26 s unquoted
I would guess that the script compiler checks to see whether the name 
was used as a variable so for in the script.  If it has, it would 
compile a variable use.  If not, it would compile the same as a string.

If there is a real difference is is one or two microseconds on my computer.
I ran your script on my Mac G4/350:

0.31 s quoted
0.53 s unquoted
on my G4 12 PB:

0.33 s quoted
0.57 s unquoted
So, about twice as long if unquoted, though still not a huge amount of 
time. If the test were run on older machines, I suspect there would be 
greater variance.

This reminds me of some speed tests that a HyperCard user did a few 
years ago. The HyperCard manual gave several tips on how to improve 
performance. Using the newest Mac available at the time, he ran 
extensive tests on each tip and concluded that there were no advantages 
to using the suggested techniques. However, when I re-ran his tests on a 
few of my old Macs (one of them the original SE) there was a difference 
in speed that could be measured in seconds, and in one case, minutes.

Because I don't know what machines my users will be running, I always 
quote names. I also use a few other speed tips routinely, partly out of 
habit, but also because I never know how much difference it may make to 
my users. I suppose in this day and age it doesn't matter much any more, 
but these habits feel like good ones to me in general so I keep them.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: externals questions

2003-06-19 Thread Shao Sean
i'd love to have more information regarding writing
externals for MC/RR, as i'm basically just copying what's in
the example without knowing why (i should also mention that
i know more about accounting than i do about c/c++)


- Original Message Follows -
 In the Game of Life external, external.c, I have noticed:
 
 1) String constants are copied before returning, e.g.
 *retstring = istrdup(atan2: must pass 2 arguments);
 Why is this? It seems to work just as well todo
 *retstring = here is the return value;
 
 2) To indicate a successful call to a handler, it is doing
 *retstring = (char *)calloc(1, 1);
 What is the significance of the 1 byte? It seems returning
 NULL works  just as well and it's one less function call
 to make.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Unicode Text

2003-06-19 Thread Dan Friedman
Has anyone figured out how to read and write unicode text?

I opened the unicodeFldRoutines.rev stack and tried to save field
jpTargetFld to a text file and read it back in... But I can't seem to get
it to work.

Has anyone been able to do this?  Or have ya got any ideas?

Thanks in advance!
-Dan

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


set the angle of image

2003-06-19 Thread Jim Hurley
I am having some difficulty using the new set angle property for 
images in 2.0.

My image (a fish) is  long and thin. If I resize it, lock position 
and size, and then set the angle to, say, 45, the image rect is 
changed and the image distorted.

A work-around is to change the *canvas* size (in Photoshop) so that 
it is square before importing it into RR as an image.

Is it  possible to deal with this problem (resized, non-square 
images) within RunRev? Perhaps programmatically resize the image rect 
using the formattedWidth and formattedHeight depending on the angle?

I confess I can't figure out the fit content buttons in size and 
position panel of the property inspector. Would these be useful here?

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


Re: externals questions

2003-06-19 Thread Alex Rice
On Thursday, June 19, 2003, at 10:13  AM, Shao Sean wrote:

i'd love to have more information regarding writing
externals for MC/RR, as i'm basically just copying what's in
the example without knowing why (i should also mention that
i know more about accounting than i do about c/c++)
Same here! Except I don't know accounting. I wish the XCmdFunc.c (the 
API) had some comments in it. The readme for the externals speaks as if 
there is a published API that it conforms to, but I can't find it 
anywhere.

I have managed to scrape a working external together, revclips, but it 
doesn't use any advanced features like array and image twiddling.

Unrelated but:
After nearly going insane trying to write a string replacement function 
using the standard C string library functions, I found this cool 
library. It's small, safe and easy to use and I hope I attempt to use 
strtok() again. http://bstring.sourceforge.net/

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]


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


Re: externals questions

2003-06-19 Thread Alex Rice
On Thursday, June 19, 2003, at 10:33  AM, Alex Rice wrote:
After nearly going insane trying to write a string replacement 
function using the standard C string library functions, I found this 
cool library. It's small, safe and easy to use and I hope I attempt to 
use strtok() again. http://bstring.sourceforge.net/
Err...  I hope I NEVER attempt to use strtok() again.

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]


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


Re: Unicode Text

2003-06-19 Thread Toma Tasovac
Dear Dan:

I use this:

on openStack
set the textFont of this stack to Verdana,utf8
put uniencode (url file:text.txt,utf8) into fld text
end openStack
Of course, you should choose the font you like and the particular 
encoding you need.  This really should work, but let me know if it 
doesn't.

All best,
Toma


On Thursday, June 19, 2003, at 06:39  PM, Dan Friedman wrote:

Has anyone figured out how to read and write unicode text?

I opened the unicodeFldRoutines.rev stack and tried to save field
jpTargetFld to a text file and read it back in... But I can't seem 
to get
it to work.

Has anyone been able to do this?  Or have ya got any ideas?

Thanks in advance!
-Dan
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


POP3 Library?

2003-06-19 Thread [EMAIL PROTECTED]
Is there a POP3 library available? It would compliment Shao Shen's SMTP
library very nicely. Shao - are you working on one?

TIA,
Valetia

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


Re: POP3 Library?

2003-06-19 Thread Shao Sean
 Is there a POP3 library available? It would compliment
 Shao Shen's SMTP library very nicely. Shao - are you
 working on one?

i had started on one a while back, but through some
bad-things(tm) most of my work was lost.. i've decided to
finish up the features in the SMTP library (which i'm
working on right now and almost done) and then i will start
on a POP3 library..

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


thanks and vanishing cursor

2003-06-19 Thread [EMAIL PROTECTED]
 Thank you to everyone who so kindly posted suggestions regarding my
travails with runrev 2.0.1 and Valentina. I continue to slog on, thanks in
part to your help.

  I have a few new questions.

1. Is there a way to search the archives so that we don't bother people with
questions that have already been answered?

2. My icons have disappeared -- when I click on the icon set in a button's
inspector, the cursor whirls for a bit and then produces nothing. Why would
this be? Could it have something to do with my changing the externals
setting due to working with Valentina?

3. My text fields don't show an i-beam cursor -- the whole field I'm on is
highlighted, but there is no blinking i-beam cursor in the field at the
point I'm editing. Anyone know how to fix this?

Thanks.

rand valentine

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


RE: thanks and vanishing cursor

2003-06-19 Thread Edwin Gore
Ooo! Ooo! I know two of these!

You can search the archives using Google - go to google and enter:

*Your Search Term Here* site:lists.runrev.com

This will give you a list of just the hits within the archive.

As for your fields problem, I have run into that many times. The issue is that your 
field has something on top of it. It might be just the tiniest edge of a label that's 
next to it, or it might be the empty area of a large group that is overlaying it. If 
you bring the field to the front that should fix it.

Can't help with the Icon problem though...sorry.

Edwin Gore

- --- Original Message --- -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thu, 19 Jun 2003 13:56:38

 Thank you to everyone who so kindly posted
suggestions regarding my
travails with runrev 2.0.1 and Valentina. I
continue to slog on, thanks in
part to your help.

  I have a few new questions.

1. Is there a way to search the archives so that we
don't bother people with
questions that have already been answered?

2. My icons have disappeared -- when I click on the
icon set in a button's
inspector, the cursor whirls for a bit and then
produces nothing. Why would
this be? Could it have something to do with my
changing the externals
setting due to working with Valentina?

3. My text fields don't show an i-beam cursor --
the whole field I'm on is
highlighted, but there is no blinking i-beam cursor
in the field at the
point I'm editing. Anyone know how to fix this?

Thanks.

rand valentine

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


Re: use-revolution digest, Vol 1 #1506 - 8 msgs

2003-06-19 Thread Yennie
1) String constants are copied before returning, e.g.
*retstring = istrdup("atan2: must pass 2 arguments");
Why is this? It seems to work just as well todo
*retstring = "here is the return value";

This is because you want to explicity allocate memory for the string which MetaCard can use and dispose of. A string constant is allocated locally in your external and could potentially make bad things happen when MetaCard tries to read from that spot in memory (or dispose of the memory).

It may be the case that the memory is dealt with so quickly that the risk is small with such a small return value, but you could potentially get into trouble by way of bad luck, platform differences, and/or the size of the return value.

2) To indicate a successful call to a handler, it is doing
*retstring = (char *)calloc(1, 1);
What is the significance of the 1 byte? It seems returning NULL works
just as well and it's one less function call to make.

Most likely MetaCard checks for NULL, in which case this is ok- but if Metacard is expecting a pointer, it's more "correct" to give it one. If the engine were to try to read from that pointer after you set it to NULL, it could crash your app.

All this is doing is creating an empty string: strings are terminated with a NULL byte, so the 1 byte is just the "end-of-string" marker with no string data before it.

HTH






--
Brian Yennie
Chief Technology Officer
QLD Learning, LLC
www.QLDLearning.com

PH: (904)-997-0212
EMAIL: [EMAIL PROTECTED]
---


revCopyFile : compiler error

2003-06-19 Thread Romain Lafourcade
Hello all !

I'm working on an on-screen-portfolio-maker.

At one moment the user is supposed to choose an image file somewhere on his
machine and place a copy of it in a previously created folder.
The script look like this :

on mouseUp
answer file Select an image : with filter JPEG,*.jpg
revCopyFile it,My Folder -- this folder is in the Rev folder
end mouseUp

Pressing the button returns compiler error.

I've tried several versions of it including a try with full URLs. Can any
one tell me where is my mistake ?

I'm still on Rev 1.1.1 / G4 / Mac OS 9.2.1 / 320 Mb RAM

Thanks, Romain


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


Re: Updating visited of linked text

2003-06-19 Thread Dar Scott
On Wednesday, June 18, 2003, at 09:04 PM, J. Landman Gay wrote:

One way might be to set a custom property on each card which would 
contain the list field's link text for that card.
OK.  That has inspired me.  I have learned a couple things.  Only one 
char of a link need be marked visited.  I had come up with a method 
that minimized touching fields, but I have learned that getting a char 
or getting a char property does not take that long.

Dar Scott



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


Re: Unicode Text

2003-06-19 Thread Manuel Companys
Thanks for the hint Toma.

Toma, I'll contact you later about the questions we talked about 
whenyou were in the States.

Cheers

Le jeudi, 19 juin 2003, à 19:50 Europe/Paris, Toma Tasovac a écrit :

Dear Dan:

I use this:

on openStack
set the textFont of this stack to Verdana,utf8
put uniencode (url file:text.txt,utf8) into fld text
end openStack
Of course, you should choose the font you like and the particular 
encoding you need.  This really should work, but let me know if it 
doesn't.

All best,
Toma


On Thursday, June 19, 2003, at 06:39  PM, Dan Friedman wrote:

Has anyone figured out how to read and write unicode text?

I opened the unicodeFldRoutines.rev stack and tried to save field
jpTargetFld to a text file and read it back in... But I can't seem 
to get
it to work.

Has anyone been able to do this?  Or have ya got any ideas?

Thanks in advance!
-Dan
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


addendum on icons and cursors problem

2003-06-19 Thread [EMAIL PROTECTED]
  I should be a beta tester, I seem to have an uncanny ability to destroy
programs. Earlier I reported that the ibeam cursors weren't showing up in my
text fields. Well, I reinstalled Revolution, and now when I duplicate the
field and replace the old field with the new, the new one has a functioning
ibeam cursor. Even with Revolution re-installed, the original fields don't
have an i-beam, only when i duplicate them -- it's as if there was a period
when the field creator was screwed up, and all fields created that time were
messed up, but now news ones work properly.

  Also, after reinstalling Revolution, my icons, which were not showing up
at all (when I tried to choose one in the button object manager), are now
back and choosable.

  I wonder what I did to create these problems?

rand

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


Re: pendingMessages Puzzle (was pendingmessages)

2003-06-19 Thread Dar Scott
On Thursday, June 19, 2003, at 07:56 AM, Dar Scott wrote:

On Thursday, June 19, 2003, at 02:08 AM, Terry Vogelaar wrote:


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?
I don't know how that is implemented, but I don't think it is ever in 
pendingMessages().

Nope.  That is not the answer I'm thinking of.
Any more attempts, folks?

Should I send out the answer?

Dar Scott

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


Opening Files in OS X

2003-06-19 Thread Jim Biancolo
Hi folks,

I have a RR app that saves a text file (with a *.upf extension) like so:

  ask file Save play as: with filter Ultimate Play File (*.upf),*.upf
  if it is empty then exit mouseUp
  -- do some stuff to txt variable
  put txt into url (file:  it)
... and it loads files like so:

  answer file Open Play: with filter Ultimate Play File 
(*.upf),*.upf,All Files (*.*),*.*
  if it is empty then exit mouseUp
  put url (file:  it) into txt

This works great on Windows, but my OS X testers (sadly I just have the 
Windows machine) report that they can't open files.  To quote one user:

The file picker dialog still appears, and I can see the file I save, but I 
can't click it (it is dim, and apparently unavailable to the program.

Can anyone tell me if there's something Mac-specific I need to do in my app?

Thanks!

Jim

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


RE: addendum on icons and cursors problem

2003-06-19 Thread Edwin Gore
I'm guessing that this is because when you duplicate the fields they appear on the 
top layer of the card, above whatever was interfering with the old one. If you bring 
the old ones to the front, I bet they will start working correctly.

- --- Original Message --- -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thu, 19 Jun 2003 15:36:36

  I should be a beta tester, I seem to have an
uncanny ability to destroy
programs. Earlier I reported that the ibeam cursors
weren't showing up in my
text fields. Well, I reinstalled Revolution, and
now when I duplicate the
field and replace the old field with the new, the
new one has a functioning
ibeam cursor. Even with Revolution re-installed,
the original fields don't
have an i-beam, only when i duplicate them -- it's
as if there was a period
when the field creator was screwed up, and all
fields created that time were
messed up, but now news ones work properly.

  Also, after reinstalling Revolution, my icons,
which were not showing up
at all (when I tried to choose one in the button
object manager), are now
back and choosable.

  I wonder what I did to create these problems?

rand

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


Re: pendingMessages Puzzle (was pendingmessages)

2003-06-19 Thread Scott Slaugh
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?
I don't know how that is implemented, but I don't think it is ever in 
pendingMessages().

Nope.  That is not the answer I'm thinking of.
Any more attempts, folks?
How about revAutoRefresh?

Scott Slaugh

Should I send out the answer?

Dar Scott
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: pendingMessages Puzzle (was pendingmessages) -- Bingo!! (spoiler)

2003-06-19 Thread Dar Scott
On Thursday, June 19, 2003, at 03:06 PM, Scott Slaugh wrote:

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?
I don't know how that is implemented, but I don't think it is ever 
in pendingMessages().

Nope.  That is not the answer I'm thinking of.
Any more attempts, folks?
How about revAutoRefresh?
Yes!

This is the handler that does the auto update for the messages.  See 
that sneaky phrase above, Watch messages in realtime.

The handler examines the pendingMessages before doing the send for the 
next one.  So for the first part of the execution of the handler it is 
not in pendingMessages, but it is in for the rest of the time.

I think this is good practice.  If the timing period is not critical, 
then send at the end.  This way you automatically slow down and don't 
contribute to problems when messages get bogged down.  In this case, 
with only a single field update and a quarter second period, it is not 
critical.

I did notice that revAutoRefresh checks whether the stack starts with 
rev rather than check the handler starts with rev as my handler 
does.  This has the advantage of including messages with fixed engine 
names the programmer can't change such as socketClosed.

Dar Scott

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


Re: use-revolution digest, Vol 1 #1475 - 17 msgs

2003-06-19 Thread Edward Cawley
On Wednesday, June 11, 2003, at 11:18  PM, 
[EMAIL PROTECTED] wrote:
 Thanks, the effective path worked like a charm.
But that leads to a new problem,
I have a stack which uses a number of images and text files which I am 
referencing by absolute path names. It works fine in the development 
stack but when I tried to build a standalone everything broke down. In 
trying to debug it I moved the stack and the associated files into a 
new folder, changed the references, using the effective path script, 
and tried to run it again. The images work OK but the text files don't 
get read. I get a message that it can't verify the path if I run it on 
OSX, and a message that it can't open the file if I try to run it on 
OS8.6. I tried changing the defaultfolder but it doesn't seem to make 
any difference. The filetype seems like it may have a role, but it 
seems to affect new files created by the app. Do I need to change 
existing files. Most are simple text or textedit files. The 
documentation doesn't seem to deal with this specific problem. Also 
where is the place to put this files in the standalone pkg? I thought I 
had developed an understanding of Rev. coming from years of hypercard, 
but now I'm not so sure.
Thanks for any help.
--__--__--

Message: 10
Date: Wed, 11 Jun 2003 15:51:31 -1000
Subject: Re: filepaths for multiple builds
From: Sannyasin Sivakatirswami [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
On Tuesday, June 10, 2003, at 03:26  PM, Edward Cawley wrote:

Hi all
I'm trying to build standalones for mac and windows and I have a
problem.
I am developing in MacOSX.
I have a large number of images which I access by filepaths. I don't
need to specify the hard drive in MacOSX just the file name on the
hard drive (/river?).but when I access them in OS89 I need to
indicate the hard drive name (ie /Macinosh/...as well. I'm not
sure what I need to do for Windows? I can see that I could use an if
then to change the filepaths to fit the operating systems. But how can
I find out the operating systems for the scripts?
Ed, are the images are being distributed with your stack? and do you
have control over their location on the CD or in the distribution
directory? i.e if your directory structure can look something this.
Folder: Fantastic Image Archive/
 file: TheGreatestPix.rev
 sub-folder:  images/   
files: lots of images

the you have a ready made solution in this syntax

put the effective filename of this stack into gPath_Where_I_Live

and get the path for the sub directories by parsing that string. Can
give you the full script if you need it.
then the issue of determining platform-OS disappears.

hth

A second question is an odd behavior I see when I change the image by
changing the source filename. Sometimes there is a blank area which
isn't drawn, not the whole image but just the bottom 10%. If I go to
another card and return the image is complete. It isn't a empty field
or any other object. No big deal, but it is a puzzle. Any ideas?
Thanks
Ed
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


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


RE: Opening Files in OS X

2003-06-19 Thread Ken Ray
Jim,

What version of Rev is it? The reason I ask is that an earlier version
of the MC engine required that you save *twice* in order for files to
get the right creator codes to be seen in the file picker...

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/ 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Jim Biancolo
 Sent: Thursday, June 19, 2003 3:51 PM
 To: [EMAIL PROTECTED]
 Subject: Opening Files in OS X
 
 
 Hi folks,
 
 I have a RR app that saves a text file (with a *.upf 
 extension) like so:
 
ask file Save play as: with filter Ultimate Play File 
 (*.upf),*.upf
if it is empty then exit mouseUp
-- do some stuff to txt variable
put txt into url (file:  it)
 
 ... and it loads files like so:
 
answer file Open Play: with filter Ultimate Play File 
 (*.upf),*.upf,All Files (*.*),*.*
if it is empty then exit mouseUp
put url (file:  it) into txt
 
 This works great on Windows, but my OS X testers (sadly I 
 just have the 
 Windows machine) report that they can't open files.  To quote 
 one user:
 
 The file picker dialog still appears, and I can see the file 
 I save, but I 
 can't click it (it is dim, and apparently unavailable to 
 the program.
 
 Can anyone tell me if there's something Mac-specific I need 
 to do in my app?
 
 Thanks!
 
 Jim
 
 ---
 http://www.biancolo.com
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED] 
 http://lists.runrev.com/mailman/listinfo/use- revolution
 


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


RE: Opening Files in OS X

2003-06-19 Thread Monte Goulding

HI Jim

Read the docs on ask file. You need to use type codes on MacOS rather than
extension filters. Hopefully we will get extension filters for OS X soon.

You will also need to read up on stackFileType and/or fileType to handle
your custom file type on MacOS  OS X. Also if you don't know much about
plist files you might want to use my suped up distibution builder that you
can download from:
http://www.sweattechnologies.com/rev/sweatDistributionBuilder.rev

It's not linked into the /rev/ index so you will need to click on the above
link. Anyone else can downlaod and use it too, however, I've only done it as
a reference implementation of a number of my feature requests for the RunRev
team.

The changes include:
 - saving/opening from/to invisible stack file format allowing for seamless
upgrade
 - a copy files tab on the last stage to copy any extra files like manuals
etc
 - improved (and simplified) plist changes including document type
extension, name, code and role. I've also added CFBundleExecutable and
changed the executable name from Revolution to the name you enter in on the
OS X tab.
 - resizable window
 - an auto update option that will update all version numbers  names etc
with one change rather than doing it for each platform
 - the ability to enter in a naming convention for your mainstack
 - the fields on the Windows  Other Version Information button are now on
the card.

Regards

Monte


  Hi folks,
 
  I have a RR app that saves a text file (with a *.upf
  extension) like so:
 
 ask file Save play as: with filter Ultimate Play File
  (*.upf),*.upf
 if it is empty then exit mouseUp
 -- do some stuff to txt variable
 put txt into url (file:  it)
 
  ... and it loads files like so:
 
 answer file Open Play: with filter Ultimate Play File
  (*.upf),*.upf,All Files (*.*),*.*
 if it is empty then exit mouseUp
 put url (file:  it) into txt
 
  This works great on Windows, but my OS X testers (sadly I
  just have the
  Windows machine) report that they can't open files.  To quote
  one user:
 
  The file picker dialog still appears, and I can see the file
  I save, but I
  can't click it (it is dim, and apparently unavailable to
  the program.
 
  Can anyone tell me if there's something Mac-specific I need
  to do in my app?
 
  Thanks!
 
  Jim
 
  ---
  http://www.biancolo.com
 
  ___
  use-revolution mailing list
  [EMAIL PROTECTED]
  http://lists.runrev.com/mailman/listinfo/use- revolution
 


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


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


RE: Opening Files in OS X

2003-06-19 Thread Jim Biancolo
Hi Ken,

I'm running RR 2.0.  I think Monte's right in that I have some more reading 
to do.  I should have known saving/opening files wouldn't be *completely* 
platform-independent.  Thanks for the tip though, on this being a possible 
version issue

And thanks, Monte, for the link to your enhanced distribution builder!

Take care,

Jim

At 05:53 PM 6/19/2003 -0500, Ken Ray wrote:
Jim,

What version of Rev is it? The reason I ask is that an earlier version
of the MC engine required that you save *twice* in order for files to
get the right creator codes to be seen in the file picker...
Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Jim Biancolo
 Sent: Thursday, June 19, 2003 3:51 PM
 To: [EMAIL PROTECTED]
 Subject: Opening Files in OS X


 Hi folks,

 I have a RR app that saves a text file (with a *.upf
 extension) like so:

ask file Save play as: with filter Ultimate Play File
 (*.upf),*.upf
if it is empty then exit mouseUp
-- do some stuff to txt variable
put txt into url (file:  it)

 ... and it loads files like so:

answer file Open Play: with filter Ultimate Play File
 (*.upf),*.upf,All Files (*.*),*.*
if it is empty then exit mouseUp
put url (file:  it) into txt

 This works great on Windows, but my OS X testers (sadly I
 just have the
 Windows machine) report that they can't open files.  To quote
 one user:

 The file picker dialog still appears, and I can see the file
 I save, but I
 can't click it (it is dim, and apparently unavailable to
 the program.

 Can anyone tell me if there's something Mac-specific I need
 to do in my app?

 Thanks!

 Jim

 ---
 http://www.biancolo.com

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

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


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


Disembodied windowShapes: Richmond's fluff part 2

2003-06-19 Thread Ken Norris
**
 From: Mathewson [EMAIL PROTECTED]
 Subject: Disembodied windowShapes: Richmond's fluff part 2
 Date: Wed, 18 Jun 2003 03:06:42 -0400
 
 Dear Ken Norris and all other users of the RR list,
 All my silly stacks are now available on the RR user
 contribs page thanks to our dear webmum Heather.
--
Great demos, Richmond. Thanks so much.

Ken N.

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


Re: revCopyFile : compiler error

2003-06-19 Thread Sarah
revCopyFile uses an Applescript and as I found to my cost, there are 
many undocumented changes between the AppleScript of OS 9 and that of 
OS X :-(

If the files are small enough to fit into memory, you could try using 
get URL and then put URL to re-save into the new location. if the files 
are too big, you could still use open/close, read  write commands to 
copy the file yourself.

Alternatively, find the AppleScript that revCopyFile uses, test it in 
the AppleScript Script Editor and put it back into your stack for use 
with OS 9.

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
On Thursday, June 19, 2003, at 01:26  pm, Romain Lafourcade wrote:

Hello all !

I'm working on an on-screen-portfolio-maker.

At one moment the user is supposed to choose an image file somewhere 
on his
machine and place a copy of it in a previously created folder.
The script look like this :

on mouseUp
answer file Select an image : with filter JPEG,*.jpg
revCopyFile it,My Folder -- this folder is in the Rev folder
end mouseUp
Pressing the button returns compiler error.

I've tried several versions of it including a try with full URLs. Can 
any
one tell me where is my mistake ?

I'm still on Rev 1.1.1 / G4 / Mac OS 9.2.1 / 320 Mb RAM

Thanks, Romain


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


[UPDATE] MacCentral News Reader Updated

2003-06-19 Thread Scott Rossi
Our MacCentral news reader should now correctly display and link to any
*Macworld* site articles that appear among MacCentral's headlines (like
today's!).

In your message box:
(via our viewer)
   go stack url http://www.tactilemedia.com/panel.mc;

(direct)
   go stack url http://www.tactilemedia.com/download/mcnews.mc;

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

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