Comparison to AppleScript Studio

2003-02-23 Thread Geoff Canyon
Some of you may be aware of the Rev Docs wiki, which I set up awhile  
back (if you're not, I invite you to have a look). The pages of a wiki  
are editable by anyone, including you:

http://wiki.macitworks.com/revdocs/

A few months ago I put up some pages comparing Revolution to REALbasic.  
The activity has died down on those, so I guess they're in what the  
viewers thought was a reasonable state:

http://wiki.macitworks.com/revdocs/revolutionAndRealbasicCompared

Now I've added similar pages comparing Revolution and AppleScript  
Studio. They're incomplete at this point, since I know a fair bit about  
AppleScript but little about AS Studio. If anyone here has experience  
with AS Studio, I'd appreciate it if you had a look to see what you can  
add. Again, no login is required, just go and click the edit button:

http://wiki.macitworks.com/revdocs/ 
revolutionAndApplescriptStudioCompared

Also, if anyone has suggestions for comparisons to other tools, feel  
free to add them.

regards,

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


PathWay

2003-02-23 Thread yves COPPE
Hi
Jan and the others
when I choose a file with this path :
(on mac OS X.2.4 and Rev 1.1.1)
/HD/users/myName/folder with long name/text file

the folder with long name is so
the name of somebody then "-" and his birthdate (dd-mm-)
for example : yourname-24-02-2003

if the number of cahrs of this folder name > 32 chars then

I get :

/HD/users/myName/folder with truncated name and ending with "#4A932"/text file

what's that  ???
thank you for your help.
--
Greetings.
Yves COPPE

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


Re: Rough day on the Revolution front

2003-02-23 Thread Geoff Canyon
Almost no question you're right. It sounds like you're taking the right 
steps. Good luck finding space to get the G4 set up.

On Sunday, February 23, 2003, at 01:55 PM, Ken Norris (dialup) wrote:

**
Date: Sat, 22 Feb 2003 23:15:11 -0800
Subject: Re: Rough day on the Revolution front
From: Geoff Canyon <[EMAIL PROTECTED]>
This definitely sounds like a memory issue. How much physical memory
and virtual memory does your computer have? How much is assigned as a
preferred and minimum to Rev? Which OS version are you running?
--
I think so too, but I don't know what else I can do. My G4 Mac is 
locked up
in storage until I can find another office space (it's too large for my
current space available).

It's a Mac PowerBook 1400c, 133mHz, 48mb RAM, 1.2g HD, under OS 8.6. Up
until a couple years ago, it was still a fairly powerful machine, but 
it
tends to be a little wimpy with newer apps these days.

regards,

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


Rough day on the Revolution front

2003-02-23 Thread Kurt Kaufman
Ken Norris wrote:

"...It's a Mac PowerBook 1400c, 133mHz, 48mb RAM, 1.2g HD, under OS 
8.6. Up
until a couple years ago, it was still a fairly powerful machine, but it
tends to be a little wimpy with newer apps these days...[...]...
I have a 128mb CF card in the PCMCIA slot as a formatted volume 
assigned to
Virtual Memory, which gives it 116mb useable VM. I've heard the transfer
rates of those things are pokey"

That's really pushing it, I'm afraid:  A slower computer with limited 
RAM, running Mac OS 8's virtual memory (bad enough even on a fast hard 
drive, but even worse on flash memory).  I'm kind of surprised you were 
able to use Revolution at all.  I hope you get your G4 back soon!

Kurt

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


Re: Custom button icons

2003-02-23 Thread Sarah
The easiest way I find is to make a new temporary stack and use it as a 
holding place. Select the icon you want in one of the standard 
libraries and click "Insert image into stack". It will appear in your 
holding stack. Leaving it selected, change to your library and click 
"Move (or Copy) selected image into this stack".

If you want to add one of your own images to your library, just forget 
the first step. Import the image into your holding stack, open your 
image library and move or copy exactly the same way.

Cheers,
Sarah
On Friday, February 21, 2003, at 07:00  am, Alan Golub wrote:

I've been spinning my wheels for days now trying to figure out how to
install custom icons into my buttons. I have no problem inserting 
standard
icons from the image library, and I'm able to create a new library, but
that's where I'm stumped. How do I import custom icons into my library 
for
use in my application buttons? Is this documented anywhere?

Any help would be much appreciated.

___
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: Getting images from folder

2003-02-23 Thread Sarah
I think you need something like:
set the fileName of image "myImage" to pathToFile
Look up "fileName" in the docs and check the examples there.
Did you actually set the name of your image to 1 or are you meaning to 
refer to the first image? Setting the name of an object to a number is 
not a great idea as it is very easy to get confused. You could call it 
something like "Pic 1" which still allows you to loop through images 
programmatically but won't confuse matters. If you just meant to refer 
to the first image, then you don't need quotes around the 1.

Sarah

On Monday, February 24, 2003, at 12:36  pm, Tim Hart wrote:

I want to keep my pictures seperate from the app itself.  I want to be 
able to call the pictures when i want them.  I just can't seem to get 
the scripting right.  I am trying:

put image "whatever" into image "1"

or
put URL "file:whatever/ehatever.jpg" into image "1"
please help

___
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


Getting images from folder

2003-02-23 Thread Tim Hart
I want to keep my pictures seperate from the app itself.  I want to be 
able to call the pictures when i want them.  I just can't seem to get 
the scripting right.  I am trying:

put image "whatever" into image "1"

or
put URL "file:whatever/ehatever.jpg" into image "1"
please help

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


Getting images from folder

2003-02-23 Thread Tim Hart
I want to keep my pictures seperate from the app itself.  I want to be 
able to call the pictures when i want them.  I just can't seem to get 
the scripting right.  I am trying:

put image "whatever" into image "1"

or
put URL "file:whatever/ehatever.jpg" into image "1"
please help

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


RE: Double-clicking a document in Windows

2003-02-23 Thread Chipp Walters
Hi Graham,

You can't easily open a doc in an already opened application by
double-clicking on the document, because it will launch another instance of
the application. What you need it 'intra-application communication' for
instance: when the app launches, it checks a temp txt file to see if an
instance of itself is already opened, if it is, then it sends a message to
the other app (via the same text file and/or some sort of polling mechanism)
to open the newly requested file.

There's actually a RunRev user group setup to try and build an OpenSource
implementation of the 'intra-application' protocol and libray...but there's
not much done on it yet.

So, the short answer is it's currently very difficult to do this in Windows.

Here's a tip on "Creating a custom icon for Windows"

http://www.altuit.com/webs/altuit2/RunRev/Tutorials.htm

-Chipp


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Graham Samuel
> Sent: Sunday, February 23, 2003 10:11 AM
> To: Revolution user discussion
> Subject: Double-clicking a document in Windows
>
>
> I've read Ken Ray's excellent article on 'Setting Document
> Associations in Windows', and I think I understand it as far as it
> goes. Trouble is, the depth of my ignorance is so profound, I don't
> know where to look for more information - I am totally ignorant of
> command-lines (well, at least since the early 70s), shells,
> registries, you name it... anyway, rant over, my current question is
> this:
>
> if my user double-clicks on a document (a stack or maybe a text file)
> which is associated with my Revo-developed app, I can use Ken's
> technique to get the app to launch and hand my app script the path of
> the doc to open; however, what if the app is already open? Can I get
> an environment variable to tell me this, or must I keep a system of
> flags within my app to distinguish between the first time the user
> double-clicks (when I will have to go through a long initialisation
> sequence for the app) and all the subsequent times (when I will just
> have to act as if my user had chosen File/Open from a menu)? I recall
> I have had to do this 'manually' on Macs (using Apple Events with
> SuperCard). In more general terms, where can I find out more about
> environment variables and also about creating and attaching icons
> (icon families?) to the application and its associated documents?
> Maybe I have just missed some massive part of the Revo documentation,
> but I don't think so.
>
> While I'm at it, what is the Windows equivalent of the Apple Event
> "aevtquit", where the OS tries to force the app to quit, and how do I
> handle it?
>
> Deeply confused
>
> Graham
> --
> ---
>   Graham Samuel / The Living Fossil Co. / UK & France
> ___
> 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


How to resize an Animated Gif

2003-02-23 Thread Alejandro Tejada
Hi everyone on the list!

Recently, while testing version 04 of
"EPSimport", I found this unexpected
feature. A resized Animated gif.

To check this for yourselves, do the
following:
1) In the message box write:
Create image

This empty image will appear in the
center of the topstack.

2)Resize this empty image to the
size that you want the animated gif
to have and set the locklocation
of it to true.

3)Set the filename of the image to
the name of your animated gif.

Voila! You have an animated gif
resized.

Remember that you could move
this "locked" image to any place
that you want, for example,
put this code in the script
of the image:

on mouseup
set the cursor to none
repeat until the mouseclick()
-- set the loc of me to the mouseloc
grab me
end repeat
set the cursor to hand
end mouseup

Of course, you could use
the keyboard to move the image
or move it to the points of
a polygon graphic.

By the way, is this resize feature
mentioned in the documentation ?

Alejandro

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rough day on the Revolution front

2003-02-23 Thread Ken Norris (dialup)
**
> Date: Sat, 22 Feb 2003 23:15:11 -0800
> Subject: Re: Rough day on the Revolution front
> From: Geoff Canyon <[EMAIL PROTECTED]>
> 
> This definitely sounds like a memory issue. How much physical memory
> and virtual memory does your computer have? How much is assigned as a
> preferred and minimum to Rev? Which OS version are you running?
--
I think so too, but I don't know what else I can do. My G4 Mac is locked up
in storage until I can find another office space (it's too large for my
current space available).

It's a Mac PowerBook 1400c, 133mHz, 48mb RAM, 1.2g HD, under OS 8.6. Up
until a couple years ago, it was still a fairly powerful machine, but it
tends to be a little wimpy with newer apps these days.

However, most days it seems to run Rev OK as long as I stay out of the docs.
Somedays, it just gets crazy, though, like the day I had. I don't have a
clue what I did different to cause extra problems.

I have a 128mb CF card in the PCMCIA slot as a formatted volume assigned to
Virtual Memory, which gives it 116mb useable VM. I've heard the transfer
rates of those things are pokey.

The natural RAM can be expanded to 64mb, but that is max, the RAM modules
are spec, and are expensive and hard to find. There is no known way to
expand beyond the 64mb limit (according to techs all over the internet, no
one has done it).

Also, the HD driver can only handle up to ATA 64, I think, so I'm not sure
how fast an external drive I can hook up. I have a 10g TravelStar ready to
go in to replace the 1.2g HD it has now, as soon as I can set aside a day to
backup everything on it. That will hopefully allow more VM at a little
faster rate.

Ken N.

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


pathway

2003-02-23 Thread Yves COPPE
Hi everybody
and for Jan


I find the problem

when I use a long name for a folder

the result gves something like

/HD/user/userName/.../the truncated long name of the folder#465ED/Text

the long name of the folder is truncated and ends with "#465ED"

what's that ??

thank for your help
--
Greetings.
Yves COPPE

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


Re: pathway

2003-02-23 Thread Geoff Canyon
Have you tried the open file commands? (as opposed to the url access 
commands?)

Also, you might be able to use AppleScript to do what you want.

On Sunday, February 23, 2003, at 02:29 AM, yves COPPE wrote:

Hi

again, I ask my question
Perhaps, I get no response because my question is not clear :
Mac OS X.2.4 with Rev 1.1.1
I want to access a text file from a script.
 the pathway is the following
/HD/user/myname/xxx/text filename.
but the name of the folder xxx may not be changed and is too long (the 
number of chars is ore than 32 chars)

so I can read from that text file because Rev cannot read a pathway 
with a component that has a long name (the name of the folder)

Any idea ???
how can I proceed  ??
Please help me
Thanks.
--
Greetings.
Yves COPPE

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

I hope this helps. Feel free to contact me if you have any further 
questions.

regards,

Geoff Canyon
Revolution Support
--
Geoff Canyon <[EMAIL PROTECTED]> 
Runtime Revolution Limited - The Solution for Software Development
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Double-clicking a document in Windows

2003-02-23 Thread Graham Samuel
I've read Ken Ray's excellent article on 'Setting Document 
Associations in Windows', and I think I understand it as far as it 
goes. Trouble is, the depth of my ignorance is so profound, I don't 
know where to look for more information - I am totally ignorant of 
command-lines (well, at least since the early 70s), shells, 
registries, you name it... anyway, rant over, my current question is 
this:

if my user double-clicks on a document (a stack or maybe a text file) 
which is associated with my Revo-developed app, I can use Ken's 
technique to get the app to launch and hand my app script the path of 
the doc to open; however, what if the app is already open? Can I get 
an environment variable to tell me this, or must I keep a system of 
flags within my app to distinguish between the first time the user 
double-clicks (when I will have to go through a long initialisation 
sequence for the app) and all the subsequent times (when I will just 
have to act as if my user had chosen File/Open from a menu)? I recall 
I have had to do this 'manually' on Macs (using Apple Events with 
SuperCard). In more general terms, where can I find out more about 
environment variables and also about creating and attaching icons 
(icon families?) to the application and its associated documents? 
Maybe I have just missed some massive part of the Revo documentation, 
but I don't think so.

While I'm at it, what is the Windows equivalent of the Apple Event 
"aevtquit", where the OS tries to force the app to quit, and how do I 
handle it?

Deeply confused

Graham
--
---
 Graham Samuel / The Living Fossil Co. / UK & France
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: pathway

2003-02-23 Thread yves COPPE
Hi Yves,

IIRC, RunRev only has problems with long filenames,
not long paths. Try to find out what the correct
pathname would be by using the following script.
on mouseUp
  answer file "Find the file with the long pathname"
  if the result is "Cancel" then exit mouseUp
  else put it into fld "ThePath"
  answer line 1 of URL ("file:"&it)
end mouseUp
That should bring you closer to understanding what's
going on, and how you can perhaps work around it.
Hope this helped,

Jan Schenkel.



I'm very disturbed, because your script here above runs well
the mine not
If I add in my script :
 if there is a file filePath then
put URL ("file:"&filePath) into myTx
  else
answer "No such a file"
exit to top
  end if
If the folder which contains the text file has a short name, it runs well
but if the folder has a long name, I get my answer "No such a file"
but if I use your script on the same file text, it runs without problem.

I will check what happens in my script with the debugger...
Thank you for the tip...
--
Greetings.
Yves COPPE

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


Icon for a standalone on MacOSX

2003-02-23 Thread paolo mazza
How  can I set an icon for my standalone application on MacOSX?
Using the application builder of Revolution I can set an icon only for 
Windows standalones?
What about Mac?
Ciao, Paolo

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


Re: pathway

2003-02-23 Thread Jan Schenkel
--- yves COPPE <[EMAIL PROTECTED]> wrote:
> Hi
> 
> again, I ask my question
> Perhaps, I get no response because my question is
> not clear :
> 
> Mac OS X.2.4 with Rev 1.1.1
> I want to access a text file from a script.
>   the pathway is the following
> /HD/user/myname/xxx/text filename.
> 
> but the name of the folder xxx may not be changed
> and is too long 
> (the number of chars is ore than 32 chars)
> 
> so I can read from that text file because Rev cannot
> read a pathway 
> with a component that has a long name (the name of
> the folder)
> 
> Any idea ???
> how can I proceed  ??
> Please help me
> Thanks.
> -- 
> Greetings.
> 
> Yves COPPE
> 

Hi Yves,

IIRC, RunRev only has problems with long filenames,
not long paths. Try to find out what the correct
pathname would be by using the following script.

on mouseUp
  answer file "Find the file with the long pathname"
  if the result is "Cancel" then exit mouseUp
  else put it into fld "ThePath"
  answer line 1 of URL ("file:"&it)
end mouseUp

That should bring you closer to understanding what's
going on, and how you can perhaps work around it.

Hope this helped,

Jan Schenkel.

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


pathway

2003-02-23 Thread yves COPPE
Hi

again, I ask my question
Perhaps, I get no response because my question is not clear :
Mac OS X.2.4 with Rev 1.1.1
I want to access a text file from a script.
 the pathway is the following
/HD/user/myname/xxx/text filename.
but the name of the folder xxx may not be changed and is too long 
(the number of chars is ore than 32 chars)

so I can read from that text file because Rev cannot read a pathway 
with a component that has a long name (the name of the folder)

Any idea ???
how can I proceed  ??
Please help me
Thanks.
--
Greetings.
Yves COPPE

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