Re: Crash report procedure

2006-08-30 Thread Chipp Walters

On 8/31/06, Chipp Walters <[EMAIL PROTECTED]> wrote:


I've never seen altSplash crash on a corrupted stack,


That said, I haven't really been using 2.7 much either. Recently built
some 2.7 U3 products, but that's about it.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Crash report procedure

2006-08-30 Thread Chipp Walters

Sivakatirswami,

altSplash (there are probably quite a few new versions since the one
you have) looks for a fld 'vers' in the mainstack (not the
standalone).

If I were you, I'd try something like:

if there is a file tMainStackPath then
 if there is a stack tMainStackPath then

That way it will check to see if it's a valid path. If you're still
getting a crash then you might use a try statement around the 'if thre
is a stack'

I'm pretty sure that's where you're running into problems. Even so,
I've never seen altSplash crash on a corrupted stack, and a press of
the resetAll button should delete the offending stack and quit so the
user can relaunch.

HTH,

Chipp
___
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: Crash report procedure

2006-08-30 Thread Sivakatirswami

(MORE THAN YOU WANT TO KNOW: )

Well most recent crashes seemed to be related to  http url calls during  
a period  when our internet connection was
really bad. Our cable modem here was running with a 36% packet loss for 
a few days until Ocean Time  Warner  fixed  it  today.


but it meant that downloaded files  were ending up incomplete, or 
corrupt,  even though an actual
file was downloaded  and  sitting on disk with the right  file name but 
probably with no valid eof.


One recipe  for  sure is: I'm getting  unexpectedly quit from
altSplash in a standalone app which is trying check  to see if it has a
copy of a stack file it needs already on disk. If it does, then it 
doesn't need

to  go get a new one from the server, but if the one on disk is corrupt
altSplash is crashing Rev.  I manually deleted the files it's supposed to 
be looking for, and re-ran it. Now it works. "Oh, you don't have the stack

files you need, I'll go  get them again from the web server."

What makes me nervous is not so much that things can go wrong... that's 
to be expected.
But there's no way for  the user recover in some of  these  situations. 
So, yes, I know
where the files are but in a "public" distribution, all that user is 
going to experience is
crash, with no way to recover. He  doesn't know that if he digs into his 
application
support and into this other folder he can find some stacks he  needs to 
delete.


Of  course it means we might need  to build in a little  more error 
checking,

perhaps a checksum() on some stack files  and  if  it's not in a reasonable
range, then  assume the  files are corrupt and delete  them and get 
fresh copies.

I need to do better at logging the  context and  scenarios.
Frankly this kind of thing is a bit over my head...

If Rev actually crashes, there's no way to trap with "catch"
and do anything intelligent, no mechanism to get a user  to send us a report
or tell them how to fix it. The UI is gone, Kaput!  No way to click on 
"Support" and

send  us anythingthat's scary. They would have to be
aggressive  enough to want to solve  the problem to go to our web  site
and then email  us from there. Very few users will do that.

u.  This  could  all boil down to (tentative  guess)

go stack ("~/Library/Preferences/HTDigital/" & "someCorruptStack.rev")

causes Rev to crash?  guess is should be possible  to test that if one
"contrived" a corrupt stack file...maybe open in BBEdit and  hack it up 
and save?


Sivakatirswami



Ken Ray wrote:

On 8/29/06 5:43 PM, "Sivakatirswami" <[EMAIL PROTECTED]> wrote:

  

I'm getting more crashes under 2.7.3 than
I've had in past years with Revolution.



What crashes are you getting, and what do you think is triggering them?


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

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

  

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How I can to save files .txt on internet?

2006-08-30 Thread Mark Smith

Alvaro,  you can include the username and password as part of the URL:

ftp://username:[EMAIL PROTECTED]/directory/file

Best,

Mark

On 30 Aug 2006, at 22:41, Alvaro Abril - Tecnologia wrote:

Thank you Klauss ... Good instructions, but where we can I to place  
the

username and password of the server?

Cordialmente,
Alvaro Abril
Tecnología
Divertia S.A.
www.fantasticguatemala.com
Tel. 502 2410 4600
Fax.502 2410 4646
Guatemala

-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] En nombre de Klaus  
Major

Enviado el: Miércoles, 30 de Agosto de 2006 02:38 p.m.
Para: How to use Revolution
Asunto: Re: How I can to save files .txt on internet?
Importancia: Alta

Buenas tardes Alvaro :-)


Dear Sirs:

I have some servers on internet. I want to save information
directly on
internet using .txt files. How can I?


See below...


If I specify the path, is it necesary to place username and
password in
order to access the server?


Yes.


I know about instructions open, write, read, close... but how can I
to apply
this commands to save on internet?


You will have to use FTP to upload your files to your server(s).

Check "libURLftpUpload" and/or "libURLftpUploadFile" in the docs.
That will get you started.


Cordialmente,
Alvaro Abril
Tecnología
Divertia S.A.
www.fantasticguatemala.com
Tel. 502 2410 4600
Fax.502 2410 4646
Guatemala


Best from germany

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription

preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
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: foreign languages in the script editor

2006-08-30 Thread ron

Hi Lars,

This is the one place where I can consistently make rev crash - using 
unicode in the script editor.



I use two approaches for my app using Japanese/Korean/Chinese and they 
work for me.  The first works with menus that don't have any submenus, 
the second approach is for those with submenus so you have to use the 
name.

1. put the menuhistory of me into pWhichItem
  switch pWhichItem
case 1
.
case 2
.
etc


2. I unidecode the pWhichItem before trying to switch the case.
put unidecode(pWhichItem,"japanese") into pWhichItem
  switch pWhichItem
  case "検索を保存..."


HTH. Note also Kenji's solution in a previous post.

Ron

On Aug 30, 2006, at 12:35 PM, Lars Brehmer wrote:


A question for you pros out there.

I couldn't find much on this in the archives, so I have to ask you all 
now:


Is there a way to use non Roman characters in the script editor?  I 
have a pop-up menu button that gives two language choices for the 
program interface language - Estonian and Russian.  All buttons and a 
few other things have 2 profiles - Estonian and Russian with the 
labels and text in the appropriate language.  The problem seems to be 
that when I put the  Russian choices into the menuPick script it 
doesn't respond. When I switch profiles with the message box, all is 
well.  Is there a workaround for this?  Another way characterize the 
menu choices that are in Russian in the button pop-up?


on menuPick pWhichItem
  switch pWhichItem
  case "eesti keeles"
beep
exit menuPick
break
  case "vene keeles"
revSetCardProfile "rus"
break
  case "на эстонском языке"  -- could this be called something like 
"line 1 of the menu items for profile rus" or something along those 
lines?

revSetCardProfile "Master"
break
  case " на русском языке" --  same as above
beep
exit menuPick
break
  end switch
end menuPick

If there is not a known way to do this, anybody have any ideas?  I 
need to demonstrate this project at the Estonian Ministry for 
Education and Research in a couple of weeks, so if I sound desperate, 
I guess I am.  I have tired everything I can think of and I still hope 
I have the right idea but am making some little mistake I can't see 
myself.


Cheers,

Lars

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Cgi function

2006-08-30 Thread Hershel Fisch
On 8/30/06 5:18 PM, "jbv" <[EMAIL PROTECTED]> wrote:

>put "/usr/local/bin/" into path
>revSetDatabaseDriverPath path
Hi, doesn't work, "Internal error".
Tanks, Hershel

___
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: My Revolution folder

2006-08-30 Thread Mark Schonewille

Then I must have created it :-) Thanks Trevor.

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 30-aug-2006, om 23:19 heeft Trevor DeVore het volgende geschreven:

Revolution does not install this folder.  Your (or some tool you  
use) has to create it.



--
Trevor DeVore
Blue Mango Learning Systems - www.bluemangolearning.com
[EMAIL PROTECTED]


___
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: My Revolution folder

2006-08-30 Thread Trevor DeVore

On Aug 30, 2006, at 2:11 PM, Mark Schonewille wrote:


Hello,

Quite a few people who are using Rev 2.7.x have reported to me not  
to have a My Revolution folder in their documents folder, while  
there are also quite a few people who report they have this folder.  
I would like to have some insight in how many people don't see a My  
Revolution folder and what might cause what might cause this  
"problem".


Revolution does not install this folder.  Your (or some tool you use)  
has to create it.



--
Trevor DeVore
Blue Mango Learning Systems - www.bluemangolearning.com
[EMAIL PROTECTED]


___
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


My Revolution folder

2006-08-30 Thread Mark Schonewille

Hello,

Quite a few people who are using Rev 2.7.x have reported to me not to  
have a My Revolution folder in their documents folder, while there  
are also quite a few people who report they have this folder. I would  
like to have some insight in how many people don't see a My  
Revolution folder and what might cause what might cause this "problem".


Thanks,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


___
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: Cgi function

2006-08-30 Thread jbv


Hershel ,

Well, some other list members might give you more accurate
answers, but as for cgi engine I'm using Rev 2.5 on a Linux
server because I've been told that this version includes db libs
as well as xml libs.
As for the db driver path, I use the following lines :

 put "/usr/local/bin/" into path
 revSetDatabaseDriverPath path

right before the script line that calls revOpenDatabase...

HTH,
JB

>
> >
> > Hershel ,
> >
> > Does your cgi engine include db library ?
> > Did you set up somewhere in your script the path to the DB driver ?
> >
> > JB
> Good thinking, I didn't think about that because its local, but any how
> should that be done? I believe that the same thing applies when its uploaded
> to a hosting server.
> Thanks,
> >
> >> Hi, I'm wondering why the following function doesn't work in a CGI script?
> >>
> >> FUNCTION getTip
> >>   put revOpenDatabase("Postgresql","127.0.0.1","test","postgres",) into tS
> >>   put revDataFromQuery(,,ts,"select * from contact")   into theTFile
> >>   return theTFile
> >> END getTip
> >>
> >> If I add it to a button as below it works fine.
> >>
> >> ON mouseUp
> >>   put getTip()
> >> END mouseUp
> >>
> >> Thanks, Hershel
> >
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your subscription
> > preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:

--



_
Faith is a central nervous system disease, like Alzheimer or multiple sclerosis.


___
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: Cgi function

2006-08-30 Thread Hershel Fisch
On 8/30/06 4:44 PM, "jbv" <[EMAIL PROTECTED]> wrote:

> 
> 
> Hershel ,
> 
> Does your cgi engine include db library ?
> Did you set up somewhere in your script the path to the DB driver ?
> 
> JB
Good thinking, I didn't think about that because its local, but any how
should that be done? I believe that the same thing applies when its uploaded
to a hosting server.
Thanks, 
> 
>> Hi, I'm wondering why the following function doesn't work in a CGI script?
>> 
>> FUNCTION getTip
>>   put revOpenDatabase("Postgresql","127.0.0.1","test","postgres",) into tS
>>   put revDataFromQuery(,,ts,"select * from contact")   into theTFile
>>   return theTFile
>> END getTip
>> 
>> If I add it to a button as below it works fine.
>> 
>> ON mouseUp
>>   put getTip()
>> END mouseUp
>> 
>> Thanks, Hershel
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: How I can to save files .txt on internet?

2006-08-30 Thread Alvaro Abril - Tecnologia
Thank you Klauss ... Good instructions, but where we can I to place the
username and password of the server?

Cordialmente,
Alvaro Abril
Tecnología
Divertia S.A.
www.fantasticguatemala.com
Tel. 502 2410 4600
Fax.502 2410 4646
Guatemala

-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] En nombre de Klaus Major
Enviado el: Miércoles, 30 de Agosto de 2006 02:38 p.m.
Para: How to use Revolution
Asunto: Re: How I can to save files .txt on internet?
Importancia: Alta

Buenas tardes Alvaro :-)

> Dear Sirs:
>
> I have some servers on internet. I want to save information  
> directly on
> internet using .txt files. How can I?

See below...

> If I specify the path, is it necesary to place username and  
> password in
> order to access the server?

Yes.

> I know about instructions open, write, read, close... but how can I  
> to apply
> this commands to save on internet?

You will have to use FTP to upload your files to your server(s).

Check "libURLftpUpload" and/or "libURLftpUploadFile" in the docs.
That will get you started.

> Cordialmente,
> Alvaro Abril
> Tecnología
> Divertia S.A.
> www.fantasticguatemala.com
> Tel. 502 2410 4600
> Fax.502 2410 4646
> Guatemala

Best from germany

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How I can to save files .txt on internet?

2006-08-30 Thread Klaus Major

Buenas tardes Alvaro :-)


Dear Sirs:

I have some servers on internet. I want to save information  
directly on

internet using .txt files. How can I?


See below...

If I specify the path, is it necesary to place username and  
password in

order to access the server?


Yes.

I know about instructions open, write, read, close... but how can I  
to apply

this commands to save on internet?


You will have to use FTP to upload your files to your server(s).

Check "libURLftpUpload" and/or "libURLftpUploadFile" in the docs.
That will get you started.


Cordialmente,
Alvaro Abril
Tecnología
Divertia S.A.
www.fantasticguatemala.com
Tel. 502 2410 4600
Fax.502 2410 4646
Guatemala


Best from germany

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
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 I can to save files .txt on internet?

2006-08-30 Thread Alvaro Abril - Tecnologia
Dear Sirs: 

I have some servers on internet. I want to save information directly on
internet using .txt files. How can I?

If I specify the path, is it necesary to place username and password in
order to access the server?

I know about instructions open, write, read, close... but how can I to apply
this commands to save on internet?

Cordialmente,
Alvaro Abril
Tecnología
Divertia S.A.
www.fantasticguatemala.com
Tel. 502 2410 4600
Fax.502 2410 4646
Guatemala


___
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: Cgi function

2006-08-30 Thread jbv


Hershel ,

Does your cgi engine include db library ?
Did you set up somewhere in your script the path to the DB driver ?

JB

> Hi, I'm wondering why the following function doesn't work in a CGI script?
>
> FUNCTION getTip
>   put revOpenDatabase("Postgresql","127.0.0.1","test","postgres",) into tS
>   put revDataFromQuery(,,ts,"select * from contact")   into theTFile
>   return theTFile
> END getTip
>
> If I add it to a button as below it works fine.
>
> ON mouseUp
>   put getTip()
> END mouseUp
>
> Thanks, Hershel

___
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: foreign languages in the script editor

2006-08-30 Thread Dar Scott


On Aug 30, 2006, at 10:35 AM, Lars Brehmer wrote:

Is there a way to use non Roman characters in the script editor?  I  
have a pop-up menu button that gives two language choices for the  
program interface language - Estonian and Russian.  All buttons and  
a few other things have 2 profiles - Estonian and Russian with the  
labels and text in the appropriate language.  The problem seems to  
be that when I put the  Russian choices into the menuPick script it  
doesn't respond. When I switch profiles with the message box, all  
is well.  Is there a workaround for this?  Another way characterize  
the menu choices that are in Russian in the button pop-up?


Would menu history do what you want?  Maybe you can ignore pWhichItem  
and menuHistory.


What gets stuck into the script property does not seem to be what is  
typed in in the editor.  The script property seems to get the low  
byte of each Unicode character.  An alternate script editor might use  
some special syntax (say U"...") to generate UTF-8 or to build UTF-16  
with format(), but I don't know of any such editor.


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


Cgi function

2006-08-30 Thread Hershel Fisch
Hi, I'm wondering why the following function doesn't work in a CGI script?

FUNCTION getTip
  put revOpenDatabase("Postgresql","127.0.0.1","test","postgres",) into tS
  put revDataFromQuery(,,ts,"select * from contact")   into theTFile
  return theTFile
END getTip

If I add it to a button as below it works fine.

ON mouseUp
  put getTip()
END mouseUp

Thanks, Hershel

___
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: encode text to image

2006-08-30 Thread Dar Scott


On Aug 30, 2006, at 5:20 AM, paolo mazza wrote:


I imported an image as text (URL file:xxx)
I wonder if I can convert the text file to binary and set the  
imagedata of

an image to it


If the image file format is inherently binary, such as PNG or JPEG,  
then you should read it as a binary file (URL binfile:).  Reading a  
binary file as a text file will corrupt it.


If it is really text, then it probably has some header information  
that includes the size, and then a bunch of numerals in decimal or  
hex.  You need to know what its format is.


From that, you can build imageData.  If the file has an alpha  
channel (transparency) you can also build alphaData.


After you have the image data, set the text of the image to empty  
then set the height and width of the image, then set the imageData  
(and alphaData).  (I'm going by memory; there might be a flaw in that.)


If the image file is really JPEG or PNG then simply set the text of  
the image to the value.


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


Re: Applescript question - request cmd

2006-08-30 Thread Jim Ault
Thanks, Jan,
I already have several utility scripts for doing the Applescript cmd
building.  I found the request command in the Rev reference and thought I
would check it out for simple cases.  Now that I know, I stick with my lib
of wrappers.

BTW, I did find the following link on the Apple site:
http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptL
angGuide/index.html

then look down near the bottom of the left hand scroll 'menu' for
Error Numbers and Error Messages, then click.

-1708 is  doesn't understand the  message.
which must mean that Excel does not understand the 'eval' message, like you
said, Jan.

Jim Ault


On 8/30/06 12:26 PM, "Jan Schenkel" <[EMAIL PROTECTED]> wrote:

> --- Jim Ault <[EMAIL PROTECTED]> wrote:
>> Got error -1708 when sending Apple event
>> 
>> in the dictionary
>> 
>> request "the hilite of button 3" from program
>> "HyperCard"
>> Use the request command to obtain data from another
>> application via the eval
>> Apple event.
>> 
>> on testAS
>>   request "address of active cell" from program
>> "Microsoft Excel"
>>   request "value of active cell" from program
>> "Microsoft Excel"
>>   request "get value of active cell" from program
>> "Microsoft Excel"
>> 
>> any of the above run from a script container gives:
 Got error -1708 when sending Apple event
>> 
>>   --  put "tell application "&q&"Microsoft
>> Excel"&q&return into cmd
>>   --  put "get address of active cell"&return after
>> cmd
>>   --  put "get value of active cell"&return after
>> cmd
>>   --  put "end tell"&return after cmd
>>   --  do cmd as applescript
 correct result
>>   put it & cr & the result
>> end testAS
>> 
>> 
>> Question 1 - what am I missing to get the 'request'
>> cmd to work
>> 
>> Question 2 - Where can I find the error codes so I
>> know what is wrong?
>> 
>> Thanks,
>> 
>> Jim Ault
>> 
> 
> Hi Jim,
> 
> The 'request' command requires that the other
> application implements the 'eval' apple event.
> HyperCard was one of the few to implement it (along
> with FoxPro, IIRC), but it looks like Excel doesn't
> implement that particular apple event.
> 
> And that's why your more convoluted second approach
> (building an AppleScript) works, as it sends the
> proper apple events to Excel.
> You could rework that into a generic 'getFromExcel'
> function that builds the AppleScript, executes said
> AppleScript, and returns the value of 'it'.
> 
> The advantage of such a wrapper is that you can then
> add a platform check, and build and execute a VBScript
> instead of an AppleScript if your application is
> running on Windows.
> 
> Jan Schenkel.
> 
> Quartam Reports for Revolution
> 
> 
> =
> "As we grow older, we grow both wiser and more foolish at the same time."  (La
> Rochefoucauld)
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Applescript question - request cmd

2006-08-30 Thread Jan Schenkel
--- Jim Ault <[EMAIL PROTECTED]> wrote:
> Got error -1708 when sending Apple event
> 
> in the dictionary
> 
> request "the hilite of button 3" from program
> "HyperCard"
> Use the request command to obtain data from another
> application via the eval
> Apple event.
> 
> on testAS
>   request "address of active cell" from program
> "Microsoft Excel"
>   request "value of active cell" from program
> "Microsoft Excel"
>   request "get value of active cell" from program
> "Microsoft Excel"
> 
> any of the above run from a script container gives:
> >>Got error -1708 when sending Apple event
> 
>   --  put "tell application "&q&"Microsoft
> Excel"&q&return into cmd
>   --  put "get address of active cell"&return after
> cmd
>   --  put "get value of active cell"&return after
> cmd
>   --  put "end tell"&return after cmd
>   --  do cmd as applescript
>   >>correct result
>   put it & cr & the result
> end testAS
> 
> 
> Question 1 - what am I missing to get the 'request'
> cmd to work
> 
> Question 2 - Where can I find the error codes so I
> know what is wrong?
> 
> Thanks,
> 
> Jim Ault
> 

Hi Jim,

The 'request' command requires that the other
application implements the 'eval' apple event.
HyperCard was one of the few to implement it (along
with FoxPro, IIRC), but it looks like Excel doesn't
implement that particular apple event.

And that's why your more convoluted second approach
(building an AppleScript) works, as it sends the
proper apple events to Excel. 
You could rework that into a generic 'getFromExcel'
function that builds the AppleScript, executes said
AppleScript, and returns the value of 'it'.

The advantage of such a wrapper is that you can then
add a platform check, and build and execute a VBScript
instead of an AppleScript if your application is
running on Windows.

Jan Schenkel.

Quartam Reports for Revolution


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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: u3: where to store data?

2006-08-30 Thread Mark Wieder
> Phil,  thanks...
> 'You da man!!!'

Ditto from here. Thanks, Phil (and Malte). Great useful stuff.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
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: [partly OT?] Amazon S3, EC2, cyborgs

2006-08-30 Thread Mark Wieder
Dar-

Tuesday, August 29, 2006, 4:13:25 PM, you wrote:

> As you mentioned, the sha1 seems to be the stumbling block for S3 in
> Rev, but that can be handled with shell() if S3 is needed in Rev.

Anyone who wants to try debugging my attempt at an SHA1 library is
welcome to it. But I'd really rather see it built into the engine for
speed.

> I have heard there are delays in getting computers started.

Well, it's a beta program if that's what you mean. If you're referring
to booting speed, I don't have any info on that. If you run your EC2
implementation 24/7 your cpu costs will run $72 a month. I assume,
though, that the major use of this will be to configure a cluster of
virtual machines for a given task, boot the cluster until the task is
complete, then shut it down.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
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


Applescript question - request cmd

2006-08-30 Thread Jim Ault
Got error -1708 when sending Apple event

in the dictionary

request "the hilite of button 3" from program "HyperCard"
Use the request command to obtain data from another application via the eval
Apple event.

on testAS
  request "address of active cell" from program "Microsoft Excel"
  request "value of active cell" from program "Microsoft Excel"
  request "get value of active cell" from program "Microsoft Excel"

any of the above run from a script container gives:
>>Got error -1708 when sending Apple event

  --  put "tell application "&q&"Microsoft Excel"&q&return into cmd
  --  put "get address of active cell"&return after cmd
  --  put "get value of active cell"&return after cmd
  --  put "end tell"&return after cmd
  --  do cmd as applescript
  >>correct result
  put it & cr & the result
end testAS


Question 1 - what am I missing to get the 'request' cmd to work

Question 2 - Where can I find the error codes so I know what is wrong?

Thanks,

Jim Ault
Las Vegas


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Sending an apple event with custom parameters (BBEdit roundtrip)

2006-08-30 Thread Ken Ray
On 8/30/06 12:38 PM, "Jim Ault" <[EMAIL PROTECTED]> wrote:

> On 8/30/06 2:11 AM, "Ben Rubinstein" <[EMAIL PROTECTED]> wrote:
>> but I can't figure out a syntax to let me add the optional parameter without
>> using the dictionary, ie something like this should be the equivalent to the
>> last two above:
>> 
>><> "/test.txt" <> new_window
>> 
>> All the variations I've thought of give me a compiler error.  So how do I do
>> that, then? 
> 
> I think you need to think 'misc' 'dosc' with your own data structure and
> content. 
> 
> Google the following "dosc misc revolution" and look at a couple of the
> archive posts on  our list.
> 
> on appleEvent theClass,theID
>if theClass is "misc" and theID is "dosc" then
>   request appleEvent data
>  put it into thedata
> 
> Ken Ray has some good help pages on the use of appleEvents
> http://www.sonsothunder.com/devres/revolution/revolution.htm
> http://www.sonsothunder.com/devres/revolution/tips/ascr005.htm

But keep in mind that you cannot do this with Revolution 2.7.3 because of a
bug that scrambles the apple events. If you use Revolution 2.7.2, you can
use apple events, but they come in backwards on Universal Binary builds
(i.e. The class is "csim" and theID is "csod"), although PPC builds are OK.
Anything 2.7.1 or earlier should work properly. See Bug #3809 in Bugzilla
for more info.

Just FYI,

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

___
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: foreign languages in the script editor

2006-08-30 Thread Dave Cragg


On 30 Aug 2006, at 17:35, Lars Brehmer wrote:


A question for you pros out there.

I couldn't find much on this in the archives, so I have to ask you  
all now:


Is there a way to use non Roman characters in the script editor?  I  
have a pop-up menu button that gives two language choices for the  
program interface language - Estonian and Russian.  All buttons and  
a few other things have 2 profiles - Estonian and Russian with the  
labels and text in the appropriate language.  The problem seems to  
be that when I put the  Russian choices into the menuPick script it  
doesn't respond. When I switch profiles with the message box, all  
is well.  Is there a workaround for this?  Another way characterize  
the menu choices that are in Russian in the button pop-up?


Off the top of my head and not tested.

Can you store the Russian choices somewhere, for example in a custom  
property or hidden field? And in the menuPick script make a  
comparison with the stored versions.


For example:

on menuPick pWhichItem

switch
case pWhichItem = line 1 of field "storedItems"
  ##
##etc.

end menuPick


Cheers
Dave
___
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: Sending an apple event with custom parameters (BBEdit roundtrip)

2006-08-30 Thread Jim Ault
On 8/30/06 2:11 AM, "Ben Rubinstein" <[EMAIL PROTECTED]> wrote:
> but I can't figure out a syntax to let me add the optional parameter without
> using the dictionary, ie something like this should be the equivalent to the
> last two above:
> 
><> "/test.txt" <> new_window
> 
> All the variations I've thought of give me a compiler error.  So how do I do
> that, then? 

I think you need to think 'misc' 'dosc' with your own data structure and
content. 

Google the following "dosc misc revolution" and look at a couple of the
archive posts on  our list.

on appleEvent theClass,theID
   if theClass is "misc" and theID is "dosc" then
  request appleEvent data
 put it into thedata

Ken Ray has some good help pages on the use of appleEvents
http://www.sonsothunder.com/devres/revolution/revolution.htm
http://www.sonsothunder.com/devres/revolution/tips/ascr005.htm

Jim Ault
Las Vegas

On 8/30/06 2:11 AM, "Ben Rubinstein" <[EMAIL PROTECTED]> wrote:

> I want to send an AppleEvent with custom parameters, not covered in the
> application's dictionary.
> 
> Specifically, I want to implement BBEdit round-trip editing - which perhaps
> others have already done?
> 
> Essentially the missing piece in this is that when you invite BBEdit to open a
> document, you supply an extra parameter (keyServerID); it then knows to notify
> your application via an AppleEvent when the document is saved or closed.
> 
> However, I cannot figure out how in Transcript to add parameters to a call.
> So I can do this inside a "tell BBEdit" (all sent via "do ... as applescript):
> 
>open "/test.txt"
> 
> or this (equivalent)
> 
><> "/test.txt"
> 
> or this
> 
>open "/test.txt" opening in new_window
> 
> or this (equivalent)
> 
><> "/test.txt" opening in new_window
> 
> but I can't figure out a syntax to let me add the optional parameter without
> using the dictionary, ie something like this should be the equivalent to the
> last two above:
> 
><> "/test.txt" <> new_window
> 
> All the variations I've thought of give me a compiler error.  So how do I do
> that, then?
> 
> (Of course, if someone has a stack implementing BBEdit round-trip, that would
> answer this question and several others!)
> 
> TIA,
> 
>Ben Rubinstein   |  Email: [EMAIL PROTECTED]
>Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
>http://www.cogapp.com|  Fax  : +44 (0)1273-728866
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Studio resizeing stack behind back of user...,ii

2006-08-30 Thread Richard Gaskin

Mark Schonewille wrote:
You cannot change the size windowBoundingRect as Revolution sets it  
on startup by yourself, as ar as I can see.


Fortunately they've added a new extension to the screenRect function 
which allows us to deal with windowBoundingRect with complete 
flexibility -- from the v2.7.3 "What's New":


  The 'screenRect' function has been extended with the 'working'
  adjective:  the working screenRect: returns the available
  work-area of the primary display

  There is a new function 'screenRects' which returns a list of
  all such rectangles on multi-monitor systems:
  the screenRects: returns the bounding rectangles of all the displays
  (one per line)
  the working screenRects: returns the available work-area of all
  displays
  (one per line)


The windowBoundingRect property is settable, but without knowing the 
original values it wasn't previously possible to restore it to its 
default setting.


Now that "the working screenRect" has been added we can know that, so 
one can easily and safely change the windowBoundingRect to that, or to 
any other value, knowing it can be restored to the default if needed.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: foreign languages in the script editor

2006-08-30 Thread Kenji Kojima

Hi Lars,

I use base64Encode in Japanese.

--
Kenji Kojima
http://www.kenjikojima.com/jikankei/



On Aug 30, 2006, at 12:35 PM, Lars Brehmer wrote:


A question for you pros out there.

I couldn't find much on this in the archives, so I have to ask you  
all now:


Is there a way to use non Roman characters in the script editor?  I  
have a pop-up menu button that gives two language choices for the  
program interface language - Estonian and Russian.  All buttons and  
a few other things have 2 profiles - Estonian and Russian with the  
labels and text in the appropriate language.  The problem seems to  
be that when I put the  Russian choices into the menuPick script it  
doesn't respond. When I switch profiles with the message box, all  
is well.  Is there a workaround for this?  Another way characterize  
the menu choices that are in Russian in the button pop-up?


on menuPick pWhichItem
  switch pWhichItem
  case "eesti keeles"
beep
exit menuPick
break
  case "vene keeles"
revSetCardProfile "rus"
break
  case "на эстонском языке"  -- could this be called  
something like "line 1 of the menu items for profile rus" or  
something along those lines?

revSetCardProfile "Master"
break
  case " на русском языке" --  same as above
beep
exit menuPick
break
  end switch
end menuPick

If there is not a known way to do this, anybody have any ideas?  I  
need to demonstrate this project at the Estonian Ministry for  
Education and Research in a couple of weeks, so if I sound  
desperate, I guess I am.  I have tired everything I can think of  
and I still hope I have the right idea but am making some little  
mistake I can't see myself.


Cheers,

Lars

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


foreign languages in the script editor

2006-08-30 Thread Lars Brehmer

A question for you pros out there.

I couldn't find much on this in the archives, so I have to ask you  
all now:


Is there a way to use non Roman characters in the script editor?  I  
have a pop-up menu button that gives two language choices for the  
program interface language - Estonian and Russian.  All buttons and a  
few other things have 2 profiles - Estonian and Russian with the  
labels and text in the appropriate language.  The problem seems to be  
that when I put the  Russian choices into the menuPick script it  
doesn't respond. When I switch profiles with the message box, all is  
well.  Is there a workaround for this?  Another way characterize the  
menu choices that are in Russian in the button pop-up?


on menuPick pWhichItem
  switch pWhichItem
  case "eesti keeles"
beep
exit menuPick
break
  case "vene keeles"
revSetCardProfile "rus"
break
  case "на эстонском языке"  -- could this be called  
something like "line 1 of the menu items for profile rus" or  
something along those lines?

revSetCardProfile "Master"
break
  case " на русском языке" --  same as above
beep
exit menuPick
break
  end switch
end menuPick

If there is not a known way to do this, anybody have any ideas?  I  
need to demonstrate this project at the Estonian Ministry for  
Education and Research in a couple of weeks, so if I sound desperate,  
I guess I am.  I have tired everything I can think of and I still  
hope I have the right idea but am making some little mistake I can't  
see myself.


Cheers,

Lars

___
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


encode text to image

2006-08-30 Thread paolo mazza
I imported an image as text (URL file:xxx) 
I wonder if I can convert the text file to binary and set the imagedata of
an image to it
Ciao

Paolo


Paolo Mazza
NEOL SRL
Via Calatafimi, 16 - 35137 PADOVA 
www.neol.it   [EMAIL PROTECTED]
Tel 049-7386590

___
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


U3 applications and Revolution

2006-08-30 Thread Marcus van Houdt

Hi,

In response to some recent posts on the list, I have created a forum  
entry with regards to building U3 applications using Revolution.


It can be found at

http://forums.runrev.com/phpBB2/viewtopic.php?p=1553

If you have any suggestions, comments or questions, please leave them  
at the forum.



Marcus

+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+
Marcus van Houdt ~ [EMAIL PROTECTED] ~ http://www.runrev.com
 Runtime Revolution ~ User-Centric Development Tools
+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+




___
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


Sending an apple event with custom parameters (BBEdit roundtrip)

2006-08-30 Thread Ben Rubinstein
I want to send an AppleEvent with custom parameters, not covered in the 
application's dictionary.


Specifically, I want to implement BBEdit round-trip editing - which perhaps 
others have already done?


Essentially the missing piece in this is that when you invite BBEdit to open a 
document, you supply an extra parameter (keyServerID); it then knows to notify 
your application via an AppleEvent when the document is saved or closed.


However, I cannot figure out how in Transcript to add parameters to a call. 
So I can do this inside a "tell BBEdit" (all sent via "do ... as applescript):


  open "/test.txt"

or this (equivalent)

  <> "/test.txt"

or this

  open "/test.txt" opening in new_window

or this (equivalent)

  <> "/test.txt" opening in new_window

but I can't figure out a syntax to let me add the optional parameter without 
using the dictionary, ie something like this should be the equivalent to the 
last two above:


  <> "/test.txt" <> new_window

All the variations I've thought of give me a compiler error.  So how do I do 
that, then?


(Of course, if someone has a stack implementing BBEdit round-trip, that would 
answer this question and several others!)


TIA,

  Ben Rubinstein   |  Email: [EMAIL PROTECTED]
  Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
  http://www.cogapp.com|  Fax  : +44 (0)1273-728866

___
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: Crash report procedure

2006-08-30 Thread Mark Schonewille

Dear Sivakatirswami,

In RevOnline, in the user space called Mark, you will find a stack  
with the name Verbose Logging. This plugin gives you an easy wayto  
turn on and off the verboselogging feature. When you experience  
crashes, turn it on and submit the verboselog with the crash report  
to BugZilla. Normally, you will find the verboselog in the same  
folder as the Revolution application, but I have noticed that  
Revolution puts the file into the defaultFolder sometimes, which is  
not always the same folder.


Best

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
phone: +31 84 003 51 56

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 30-aug-2006, om 0:43 heeft Sivakatirswami het volgende geschreven:


I'm getting more crashes under 2.7.3 than
I've had in past years with Revolution.

What's the proper procedure?

1) Bugzilla? or [EMAIL PROTECTED]
2) And, the crash report that is put up by OSX...
3) should we copy that and save to the bug zilla?
4) Should we also submit to Apple to by hitting the submit button
on their crash reporter?

TIA
Sivakatirswami


___
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: Studio resizeing stack behind back of user...,ii

2006-08-30 Thread Mark Schonewille

Dear Andrew,

Having read the older Studio Resizing Stack thread now, I assume the  
windowBoundingRect is the problem.


You cannot change the size windowBoundingRect as Revolution sets it  
on startup by yourself, as ar as I can see. I had a look at the  
accessible scripts and I suspect that the script setting the  
windowBoundingRect on startup is not editable.


If you make a small splash stack which opens before the large screen,  
you could set the windowboundingrect in the preOpenStack handler of  
the splash stack. You could also make a plugin which opens when  
Revolution starts up and put a script to set the windowBoundingRect  
when it opens.


Best regards,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
phone: +31 84 003 51 56

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 29-aug-2006, om 23:40 heeft Mark Schonewille het volgende geschreven:


Hi Andrew,

Why would you want to pass preopenstack to the IDE and... what  
exactly do you mean? Are you changine the size of a stack window  
and observing that this size is not saved? Could you tell us step- 
by-step what you are doing?


Am not doing nothing with menus of any kind and am not doing a  
full screen stack either. Yes, all my OS X apps resize large for  
me I when I set them too. I can't stand Rev taking over my design.  
I would like to pass preopenstack to ide but discovered if I do  
Rev changes my stack again on reload. Tessler used to wear a t- 
shirt at PARC, "DONT MODE ME IN" It works for me. So how do I hack  
the IDE to give me an option


Shalom, Andrew
{Choose Life, Create Hope, Nurture Love...}


___
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