Re: Per-card data in shared group

2003-06-24 Thread Dar Scott
On Tuesday, June 24, 2003, at 05:56 PM, Dar Scott wrote:

As it turns out, my function to get all those is fast enough for the 
group to recalculate links and update links on every open card.  I 
don't mind if the updates are not set before the card is displayed.
OK, you convinced me, Jacqueline.  I put it all in preOpenCard.  On my 
computer, at least, I see no delay in page turning.

Dar Scott

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


Re: Per-card data in shared group

2003-06-24 Thread Dar Scott
On Tuesday, June 24, 2003, at 04:33 PM, J. Landman Gay wrote:

What's the best way to have a shared group keep up with per-card 
persistent data?
I'm not sure what your exact goal is, but it is common to update a 
shared group in a preOpenCard handler. For example, if you have a list 
field with card names in it and you want to update the list to hilite 
the current card name, you'd set the hilitedlines of the field in a 
preOpenCard handler.

If this isn't what you have in mind, tell us more about what you need 
to do.
Well, remember my wanting to update visited on all links in a field?  
Well, since the text could be different on each card, I wanted to keep 
a list of the effective link text and the char locations of the links 
so I could update those as the card is entered.

As it turns out, my function to get all those is fast enough for the 
group to recalculate links and update links on every open card.  I 
don't mind if the updates are not set before the card is displayed.

Now, if I decide to really save this info, I like the idea of both the 
custom property and the hidden field.  My groups is on all cards, so I 
don't have to worry about leaving custom properties around when groups 
are removed.

Thanks, all!

Dar Scott

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


Re: Per-card data in shared group

2003-06-24 Thread Richard Gaskin
Dar Scott wrote:

> What's the best way to have a shared group keep up with per-card
> persistent data?

If the data is to be displayed to the user you could use fields.  If the
data is hidden you can save a small amount of storage space and access time
as card properties.
 
-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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


Re: Per-card data in shared group

2003-06-24 Thread J. Landman Gay
Dar Scott wrote:

What's the best way to have a shared group keep up with per-card 
persistent data?
I'm not sure what your exact goal is, but it is common to update a 
shared group in a preOpenCard handler. For example, if you have a list 
field with card names in it and you want to update the list to hilite 
the current card name, you'd set the hilitedlines of the field in a 
preOpenCard handler.

If this isn't what you have in mind, tell us more about what you need to do.

--
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: Per-card data in shared group

2003-06-24 Thread Dar Scott
On Tuesday, June 24, 2003, at 03:23 PM, Rob Cozens wrote:

What's the best way to have a shared group keep up with per-card 
persistent data?
I don't know how to judge "best", Dar.

Any field in the group, visible or not, can contain card-specific data 
if its sharedText property is false.
That's what I was thinking as a way to do it.  Thanks.  I guess I was 
wondering if I was missing something.

Dar Scott

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


Re: Scrolling with keys

2003-06-24 Thread Dar Scott
On Monday, June 23, 2003, at 03:35 PM, Dar Scott wrote:

on rawKeyDown keyCode
  if keyCode is rightArrow then put true into toTheRight
  if keyCode is leftArrow  then put true into toTheLeft
  updateMoving
end rawKeyDown
on rawKeyUp keyCode
  if keyCode is rightArrow then put false into toTheRight
  if keyCode is leftArrow  then put false into toTheLeft
  updateMoving
end rawKeyUp
You might want to pass if the keyCode is neither.

Dar Scott

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


Re: Per-card data in shared group

2003-06-24 Thread Rob Cozens
What's the best way to have a shared group keep up with per-card 
persistent data?
I don't know how to judge "best", Dar.

Any field in the group, visible or not, can contain card-specific 
data if its sharedText property is false.
--

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Temporary folder on OSX

2003-06-24 Thread Shao Sean
actually you'll need something like this to be
cross-platform (thanks Klaus Major =)

local tTempDir

put the tempName into tTempDir

set the itemDelimiter to "/"
delete the last item of tTempDir
set the itemDelimiter to COMMA

put "/" after tTempDir


- Original Message Follows -
> >> What happens if you "answer the tempName"?
> > I get "/private/tmp/501/Temporary Items/tmp0"
> There's your temp directory.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Temporary folder on OSX

2003-06-24 Thread Alex Rice
On Tuesday, June 24, 2003, at 01:35  PM, Thierry Arbellot wrote:
That the content (files) is cleaned, I understand, but the folder 
should not be deleted !
In UNIX, anything and everything in /tmp is fair game to be wiped out 
at system startup. Maybe Apple is doing something different because I 
have a "Cleanup At Startup" folder as well. Weird! But nonetheless- 
don't use /tmp for anything that's supposed to persist beyond your app 
running.

ls -F /tmp/501/
Cleanup At Startup/
Temporary Items/
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: Temporary folder on OSX

2003-06-24 Thread Scott Rossi
>> What happens if you "answer the tempName"?

> I get "/private/tmp/501/Temporary Items/tmp0"
> Running Rev 2.0r2 on PowerMac G4 tower (533 MHz) with MacOSX 10.2.5.

There's your temp directory.

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


Re: Temporary folder on OSX

2003-06-24 Thread James . Cass

I get "/private/tmp/501/Temporary Items/tmp0"
Running Rev 2.0r2 on PowerMac G4 tower (533 MHz) with MacOSX 10.2.5.

-Cassj



   

  Scott Rossi  

  <[EMAIL PROTECTED]>  To:   <[EMAIL PROTECTED]>   
 
  Sent by:  cc:

  [EMAIL PROTECTED]Subject:  Re: Temporary folder on OSX   
   
  .runrev.com  

   

   

  06/24/03 03:43 PM

  Please respond to

  use-revolution   

   





Recently, "Thierry Arbellot"  wrote:

> Based on the answers I received - everybody has a "Temporary Items"
> folder - , I think there is something wrong on my iMac.

What happens if you "answer the tempName"?

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



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


Re: Temporary folder on OSX

2003-06-24 Thread Ken Ray
Thierry,

You can check out a complete list of folder path codes that might help you
get what you're looking for:

http://www.sonsothunder.com/devres/revolution/revolution.htm?_file010

This contains a list of all the folder path codes for Mac, OS X and Windows.

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


> From: Thierry Arbellot <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Tue, 24 Jun 2003 19:09:18 +0200
> To: [EMAIL PROTECTED]
> Subject: Temporary folder on OSX
> 
> Hello,
> 
> I am developing an app which needs to use some temporary files, so I
> would like to use the temporary folder defined by the system.
> But there is something strange with the temporary folder on OSX
> 
> I have an iBook running OSX 10.2.6 and Rev 2.0.1
> 
> On this computer, the specialFolderPath("Temporary") command returns
> "/private/tmp/502/Temporary Items"
> Notice that the Rev documentation doesn't say temporary folder is
> available on OSX.
> 
> Also, I have an iMac with OSX 10.2.6 and Rev 2.0.1
> 
> But on this other computer, specialFolderPath("Temporary") returns
> empty.
> I checked the disk - with the help of FileBuddy as the temporary folder
> is invisible - and found the path "/private/tmp/501".
> I created the "Temporary Items" folder, and then
> specialFolderPath("Temporary") returns "/private/tmp/501/Temporary
> Items"
> Looks good.
> Unfortunately, when I restart the system, the "Temporary Items" folder
> is deleted.
> 
> At this stage, I would like to know what is correct: should
> specialFolderPath("Temporary") returns a path or not ?
> 
> Please, could someone check on his own computer and let me know what
> does return specialFolderPath("Temporary") ?
> 
> Thanks.
> 
> Thierry Arbellot 
> 
> ___
> 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: Temporary folder on OSX

2003-06-24 Thread Scott Rossi
Recently, "Thierry Arbellot"  wrote:

> Based on the answers I received - everybody has a "Temporary Items"
> folder - , I think there is something wrong on my iMac.

What happens if you "answer the tempName"?

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


Re: Temporary folder on OSX

2003-06-24 Thread Thierry Arbellot
On Tuesday, Jun 24, 2003, at 20:36 Europe/Paris, Alex Rice wrote:

On Tuesday, June 24, 2003, at 11:20  AM, Richard Gaskin wrote:
That this folder is deleted between sessions may not be mysterious; 
could
that temporary nature be expected?  I haven't read Apple's spec on 
this so I
don't know.

If you need a persistent folder, you may consider using
specialFolderPath("Preferences").
Good point- I think in UNIX the /tmp directory is expected to be 
cleaned at the next system startup.

That the content (files) is cleaned, I understand, but the folder 
should not be deleted !

Based on the answers I received - everybody has a "Temporary Items" 
folder - , I think there is something wrong on my iMac.

Thanks.

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
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: File Corruption

2003-06-24 Thread Sannyasin Sivakatirswami
Agreed. One must be specific

One verifiable "corruption" issue I have definitively diagnosed is that 
the IDE will create spurious code in the cRevGeneral custom properties 
that are attached to any given object.

Two known instances of this have been

a) an instance where a Rev IDE custom prop in a stack referred to an 
older version of the program which was not on disk and which was other 
than the current engine/IDE wrapper under which the stack was opened.

b) a second instance (found only yesterday) where, during a lock up, 
the IDE does not update the "script" custom prop for an object in this 
case a button... tempScript was correct (i.e. it had the changes I had 
made in the script saved correctly in the "tempScript" prop for the 
button) but "script" carried and older version of the script.

Now, this manifested after reboot of Rev, as a "object not found" in 
the script debugger where the previous script referred to a fld 
"Reminders" instead of button called "Reminders" . But, had i been in a 
run time mode, it would have just failed...

Solution was simple. add a space to the script, and force a new "apply" 
to update the custom props.

so, one solution for this kind of corruption (where in fact the data in 
the stack is still pristine/OK) would be a

"Clean up and refresh all RevCustom Props"

I suspect -- a broadside generalization! ;-) --

That the revCustom props may be getting more mangled than we realize.

But, to be fair, I get as many or more "unexpectedly quit" instances on 
OSX from Apple's own Mail.app and other apps as I do in Rev.  Only 
Rev's are pretty predictable.  which is actually better!

Sivakatirswami



On Tuesday, June 24, 2003, at 07:09  AM, Richard Gaskin wrote:

Well look, I don't want to quibble about terminology. Isn't it 
possible
for the IDE to corrupt its own internal data structures?
My interest in re-examining the use of "corruption" was less a 
refection of
my admittedly curmudgeonly nature than a sincere desire to see a proper
diagnosis of the root cause.  If we attach a label to an issue before 
fully
understanding the cause, we risk overlooking other options that might 
lead
us to the solution.

I agree that it's too early to determine that corruption of the object
within the file did not occur, but with such a low incidence rate on 
record
it may not be optimal to focus on that.  We can't rule it out, but we 
can't
settle on it either.  It seems we need to keep our eyes open to wider
possibilities.

What's most baffling to me is that the cloned object exhibits no 
erroneous
behavior; I would have expected that if a problem existed in the 
original
object it would be carried over to the clone.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Temporary folder on OSX

2003-06-24 Thread Alex Rice
On Tuesday, June 24, 2003, at 11:20  AM, Richard Gaskin wrote:
That this folder is deleted between sessions may not be mysterious; 
could
that temporary nature be expected?  I haven't read Apple's spec on 
this so I
don't know.

If you need a persistent folder, you may consider using
specialFolderPath("Preferences").
Good point- I think in UNIX the /tmp directory is expected to be 
cleaned at the next system startup.

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: Launching WinXP applications

2003-06-24 Thread Roger . E . Eller

Try this... It should open ANY kind of document in the application that Windows has designated for it to use.

on mouseUp
  set the hideConsoleWindows to true
  answer file "Open which document?"
  put QUOTE & it & QUOTE into tPath
  get shell(tPath)
end mouseUp

Roger Eller
[EMAIL PROTECTED]


On Tuesday, June 24, 2003, at 02:35  AM, Robert J. Earp wrote:

> I need to allow users to open a number of types of documents/media
> etc. from within a stack.  That is, have the native application, such
> as Word, Acrobat, Excel (and others) launch and then open the
> appropriate data file.  And I need this to happen on whatever Win
> machine the stack is running on.
>
> Launch does not seem to work within WinXP as it doesn't seem to know
> where the apps are located.  I have the feeling I should be using the
> queryRegistry command to locate the full path of the app, but my
> problem is I don't know enough about the Registry to be able to find
> the appropriate entries to query.
>
> Also, should I be checking for an app already being open ? That is, am
> I going to risk having many copies of the same app open at the same
> time ?  If so, any ideas how to do this ?
>
> Can anybody help please ??


Per-card data in shared group

2003-06-24 Thread Dar Scott
What's the best way to have a shared group keep up with per-card 
persistent data?  Hidden field in group?  Custom property on card?  
Other?

Dar Scott

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


Re: Launching WinXP applications

2003-06-24 Thread James . Cass

Just to add to Alex's comment about MacOSX's command line "open".  You can
specify which application to use (by it's location) for opening a specific
file:
>From the "open" man page...

'open -a /Applications/TextEdit.app /Volumes/Macintosh
HD/foo.txt'
opens the document in the application specified (in this case,
TextEdit).

-Cassj



   
  
  Alex Rice
  
  <[EMAIL PROTECTED]>  To:   [EMAIL PROTECTED] 
   
  Sent by:  cc:
  
  [EMAIL PROTECTED]Subject:  Re: Launching WinXP 
applications   
  .runrev.com  
  
   
  
   
  
  06/24/03 01:12 PM
  
  Please respond to
  
  use-revolution   
  
   
  





On Tuesday, June 24, 2003, at 02:35  AM, Robert J. Earp wrote:

> I need to allow users to open a number of types of documents/media
> etc. from within a stack.  That is, have the native application, such
> as Word, Acrobat, Excel (and others) launch and then open the
> appropriate data file.  And I need this to happen on whatever Win
> machine the stack is running on.
>
> Launch does not seem to work within WinXP as it doesn't seem to know
> where the apps are located.  I have the feeling I should be using the
> queryRegistry command to locate the full path of the app, but my
> problem is I don't know enough about the Registry to be able to find
> the appropriate entries to query.
>
> Also, should I be checking for an app already being open ? That is, am
> I going to risk having many copies of the same app open at the same
> time ?  If so, any ideas how to do this ?
>
> Can anybody help please ??

Sorry to butt in with more questions...

How can one launch a file from Rev, with whatever is the default viewer
for that file type? Every OS has a binding from file types to apps. If
you double click on a PDF, a PDF viewer will open up, if a viewer is
installed.

Neither "launch" nor "revGoURL" seem to address this particular need.
Am I missing something?  On OS X there is a command line utility named,
not surprisingly, "open".

"""
DESCRIPTION
  The open command opens a file (or a directory or URL), just as if
you had
  double-clicked the file's icon. If no application name is
specified, the
  default application as determined via LaunchServices is used to
open the
  specified files.

  If the file is in the form of a URL, the file will be opened as a
URL.

  You can specify one or more file names (or pathnames), which are
inter-
  preted relative to the shell or Terminal window's current working
direc-
  tory. For example, the following command would open all Word files
in the
  current working directory:

  open *.doc
"""

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



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


updating databases

2003-06-24 Thread rand valentine
 Hi, everyone. I have been working at making a dictionary database, using
runrev 2.0.1 and Valentina VXCMD, on Mac OS 9.2.2. Now since I am kind of a
beginner with sql, I have been trying to play it safe as far as having
cursors and that sort of stuff goes . So what I do is

1. build a simple "select all" query using the database query builder, which
opens the Valentina database.

2. I then execute a revDataFromQuery command that loads a scrolling field
with the whole data set.

3. Then I click on a line in the scrolling field to load that record's field
values into individual revolution text fields (not designated as "database"
fields in any way).

4. I have handlers that record the entry value of a given field, and the
exit value -- if these are different, I then try to update the particular
field in the particular record in the Valentina database, which is
identified by a unique code. To do this, I use a revExecuteSQL command that
contains an UPDATE sql command to update the appropriate record in the
Valentina db.

But that record never seems to get updated! Why not? Am I fundamentally
wrong in my understanding about something? I have also tried using a
revCommitDatabase instruction following the attempted update, but again,
when i go to the database query builder and "refresh" the * query, the
record i'm trying to change is unchanged. Any help would be great
appreciated.

rand valentine


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


Re: Temporary folder on OSX

2003-06-24 Thread James . Cass

Thierry-

"specialFolderPath("Temporary")"   returns   "/private/tmp/501/Temporary
Items"   for me.
I am running Rev 2.0r2 on a PowerMac G4 Tower (533 MHz).

-Cassj




|-+->
| |   Thierry Arbellot  |
| |   <[EMAIL PROTECTED]|
| |   fr>   |
| |   Sent by:  |
| |   [EMAIL PROTECTED]|
| |   .runrev.com   |
| | |
| | |
| |   06/24/03 01:09 PM |
| |   Please respond to |
| |   use-revolution|
|-+->
  
>-|
  |
 |
  |   To:   [EMAIL PROTECTED]  
   |
  |   cc:  
 |
  |   Subject:  Temporary folder on OSX
 |
  
>-|




Hello,

I am developing an app which needs to use some temporary files, so I
would like to use the temporary folder defined by the system.
But there is something strange with the temporary folder on OSX

I have an iBook running OSX 10.2.6 and Rev 2.0.1

On this computer, the specialFolderPath("Temporary") command returns
"/private/tmp/502/Temporary Items"
Notice that the Rev documentation doesn't say temporary folder is
available on OSX.

Also, I have an iMac with OSX 10.2.6 and Rev 2.0.1

But on this other computer, specialFolderPath("Temporary") returns
empty.
I checked the disk - with the help of FileBuddy as the temporary folder
is invisible - and found the path "/private/tmp/501".
I created the "Temporary Items" folder, and then
specialFolderPath("Temporary") returns "/private/tmp/501/Temporary
Items"
Looks good.
Unfortunately, when I restart the system, the "Temporary Items" folder
is deleted.

At this stage, I would like to know what is correct: should
specialFolderPath("Temporary") returns a path or not ?

Please, could someone check on his own computer and let me know what
does return specialFolderPath("Temporary") ?

Thanks.

Thierry Arbellot

___
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: Temporary folder on OSX

2003-06-24 Thread Richard Gaskin
Thierry Arbellot wrote:

> I have an iBook running OSX 10.2.6 and Rev 2.0.1
> 
> On this computer, the specialFolderPath("Temporary") command returns
> "/private/tmp/502/Temporary Items"
> Notice that the Rev documentation doesn't say temporary folder is
> available on OSX.
> 
> Also, I have an iMac with OSX 10.2.6 and Rev 2.0.1
> 
> But on this other computer, specialFolderPath("Temporary") returns
> empty.
> I checked the disk - with the help of FileBuddy as the temporary folder
> is invisible - and found the path "/private/tmp/501".
> I created the "Temporary Items" folder, and then
> specialFolderPath("Temporary") returns "/private/tmp/501/Temporary
> Items"
> Looks good.
> Unfortunately, when I restart the system, the "Temporary Items" folder
> is deleted.
> 
> At this stage, I would like to know what is correct: should
> specialFolderPath("Temporary") returns a path or not ?
> 
> Please, could someone check on his own computer and let me know what
> does return specialFolderPath("Temporary") ?

OS X 10.2.6, Rev 2.0.1 returns "/private/tmp/501/Temporary Items"

That this folder is deleted between sessions may not be mysterious; could
that temporary nature be expected?  I haven't read Apple's spec on this so I
don't know.

If you need a persistent folder, you may consider using
specialFolderPath("Preferences").

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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


Re: Temporary folder on OSX

2003-06-24 Thread Alex Rice
On Tuesday, June 24, 2003, at 11:09  AM, Thierry Arbellot wrote:

specialFolderPath("Temporary")
/private/tmp/501/Temporary Items

Note that the 501 is the uid of the current user.

[EMAIL PROTECTED]>id
uid=501(alex) gid=20(staff) groups=20(staff), 80(admin)
I think if specialFolderPath("Temporary")  returns empty then you can 
just use /tmp (same folder as /private/tmp actually)

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: Launching WinXP applications

2003-06-24 Thread Alex Rice
On Tuesday, June 24, 2003, at 02:35  AM, Robert J. Earp wrote:

I need to allow users to open a number of types of documents/media 
etc. from within a stack.  That is, have the native application, such 
as Word, Acrobat, Excel (and others) launch and then open the 
appropriate data file.  And I need this to happen on whatever Win 
machine the stack is running on.

Launch does not seem to work within WinXP as it doesn't seem to know 
where the apps are located.  I have the feeling I should be using the 
queryRegistry command to locate the full path of the app, but my 
problem is I don't know enough about the Registry to be able to find 
the appropriate entries to query.

Also, should I be checking for an app already being open ? That is, am 
I going to risk having many copies of the same app open at the same 
time ?  If so, any ideas how to do this ?

Can anybody help please ??
Sorry to butt in with more questions...

How can one launch a file from Rev, with whatever is the default viewer 
for that file type? Every OS has a binding from file types to apps. If 
you double click on a PDF, a PDF viewer will open up, if a viewer is 
installed.

Neither "launch" nor "revGoURL" seem to address this particular need. 
Am I missing something?  On OS X there is a command line utility named, 
not surprisingly, "open".

"""
DESCRIPTION
 The open command opens a file (or a directory or URL), just as if 
you had
 double-clicked the file's icon. If no application name is 
specified, the
 default application as determined via LaunchServices is used to 
open the
 specified files.

 If the file is in the form of a URL, the file will be opened as a 
URL.

 You can specify one or more file names (or pathnames), which are 
inter-
 preted relative to the shell or Terminal window's current working 
direc-
 tory. For example, the following command would open all Word files 
in the
 current working directory:

 open *.doc
"""
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: File Corruption

2003-06-24 Thread Richard Gaskin
Howard Bornstein wrote:

>> But if the problem is related to code in the IDE, it's a bug in the IDE
>> and/or the engine (ideally a 4GL should never have a hard crash), but not
>> necessarily a matter of corrupted data.   "Corruption" refers to bad data
>> structures, not procedural bugs.
> 
> Well look, I don't want to quibble about terminology. Isn't it possible
> for the IDE to corrupt its own internal data structures?

My interest in re-examining the use of "corruption" was less a refection of
my admittedly curmudgeonly nature than a sincere desire to see a proper
diagnosis of the root cause.  If we attach a label to an issue before fully
understanding the cause, we risk overlooking other options that might lead
us to the solution.

I agree that it's too early to determine that corruption of the object
within the file did not occur, but with such a low incidence rate on record
it may not be optimal to focus on that.  We can't rule it out, but we can't
settle on it either.  It seems we need to keep our eyes open to wider
possibilities.

What's most baffling to me is that the cloned object exhibits no erroneous
behavior; I would have expected that if a problem existed in the original
object it would be carried over to the clone.

> My whole point in responding to your original post is that, in my
> experience, Rev has ended up "corrupting" stacks in a way that was
> probably not caused by write operations to the disk. The stacks didn't
> fail because of bad programming. The stacks failed because Rev
> scrambled something in the stacks and then when it went to interpret
> the stack, this scrambling caused Rev to crash.

Corruption can indeed happen prior to a write, in any program.  If it's junk
in memory it'll remain junk when saved, even if the save itself is not the
culprit.

There are too many unknowns to rule nearly any possibility just yet,
including programming: your code may be fine, but Rev's IDE uses complex
libraries which may possibly have an affect on this outcome.
 
I respect your need to move on with your workaround, but curiosity has me
wondering:

- does the crash happen in a standalone?
- does it happen in the MC IDE?
- does it happen on more than one system?

The answer to each of those questions would help successively bisect the
solution space to hone in on the root cause.

Here's an anecdote that may or may not be relevant but will hopefully be
interesting:

A couple years ago I was porting a SuperCard app to MC, and I found I was
getting crashes on a particular card during redraw.  My first thought was
"corruption", and was concerned that I might have to replace the entire card
(the common solution with HC 5454 errors).

Scott Raney had me send him MacsBug dumps and he worked very dilligently in
diagnosing the issue, at last arriving at an understanding:  the line
graphics on that card were the root of the problem, having been created as
two-point polygons with a fill color assigned and the filled property set.
Apparently there is a bug in QuickDraw which crashes when trying to fill a
two-point poly (the error was a "divide by zero" if memory serves, which
would make since as there is no region to fill in a two-point poly).  So
while I had initially panicked at the thought of replacing so many objects,
it turns out all I needed to do was write a loop that turns off the filled
property of the poly graphics.

I guess the moral of the story is that sometimes an issue can look like a
duck, walk like a duck, and even quack like a duck, but turn out to be a
QuickDraw bug.  :)

> Unfortunately, the stack contains proprietary data. If the Rev team wants
> to look at it, I'm happy to make it available.

Hopefully you'll get a reply and they'll see what can be done.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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


Temporary folder on OSX

2003-06-24 Thread Thierry Arbellot
Hello,

I am developing an app which needs to use some temporary files, so I 
would like to use the temporary folder defined by the system.
But there is something strange with the temporary folder on OSX

I have an iBook running OSX 10.2.6 and Rev 2.0.1

On this computer, the specialFolderPath("Temporary") command returns 
"/private/tmp/502/Temporary Items"
Notice that the Rev documentation doesn't say temporary folder is 
available on OSX.

Also, I have an iMac with OSX 10.2.6 and Rev 2.0.1

But on this other computer, specialFolderPath("Temporary") returns 
empty.
I checked the disk - with the help of FileBuddy as the temporary folder 
is invisible - and found the path "/private/tmp/501".
I created the "Temporary Items" folder, and then 
specialFolderPath("Temporary") returns "/private/tmp/501/Temporary 
Items"
Looks good.
Unfortunately, when I restart the system, the "Temporary Items" folder 
is deleted.

At this stage, I would like to know what is correct: should 
specialFolderPath("Temporary") returns a path or not ?

Please, could someone check on his own computer and let me know what 
does return specialFolderPath("Temporary") ?

Thanks.

Thierry Arbellot	

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


Re: File Corruption

2003-06-24 Thread Howard Bornstein
>But if the problem is related to code in the IDE, it's a bug in the IDE
>and/or the engine (ideally a 4GL should never have a hard crash), but not
>necessarily a matter of corrupted data.   "Corruption" refers to bad data
>structures, not procedural bugs.

Well look, I don't want to quibble about terminology. Isn't it possible 
for the IDE to corrupt its own internal data structures? My whole point 
in responding to your original post is that, in my experience, Rev has 
ended up "corrupting" stacks in a way that was probably not caused by 
write operations to the disk. The stacks didn't fail because of bad 
programming. The stacks failed because Rev scrambled something in the 
stacks and then when it went to interpret the stack, this scrambling 
caused Rev to crash.

I'm a big supporter of this environment, but to think that Rev is never 
going to cause problems is naive.

>Do you have an FTP server you can post it?  If the problem is repeatable in
>the latest version it sounds like the type of thing Rev support would be
>interested in, but maybe the list members could turn it into a diagnostic
>contest. :)

Unfortunately, the stack contains proprietary data. If the Rev team wants 
to look at it, I'm happy to make it available.

Regards,

Howard Bornstein

D E S I G N  E Q
www.designeq.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


[Semi-OT] more Linux-watch

2003-06-24 Thread Richard Gaskin
For those of you considering taking advantage of the ease with which Rev and
MC let you develop/deploy on Linux, here's a pair of articles that may help
inspire.

Summary:  Analysts believe Linux will have a larger desktop market than
Apple within the next year.






Platform-independence is a beautiful thing.  :)

As long as overall computer usage keeps growing, we Rev and MC developers
can continue to ride the crest of any trend in these inevitable
fluctuations.  Thank you Scott and Kevin!

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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


Launching WinXP applications

2003-06-24 Thread Robert J. Earp
I need to allow users to open a number of types of documents/media etc. 
from within a stack.  That is, have the native application, such as Word, 
Acrobat, Excel (and others) launch and then open the appropriate data 
file.  And I need this to happen on whatever Win machine the stack is 
running on.

Launch does not seem to work within WinXP as it doesn't seem to know where 
the apps are located.  I have the feeling I should be using the 
queryRegistry command to locate the full path of the app, but my problem is 
I don't know enough about the Registry to be able to find the appropriate 
entries to query.

Also, should I be checking for an app already being open ? That is, am I 
going to risk having many copies of the same app open at the same time 
?  If so, any ideas how to do this ?

Can anybody help please ??

Many thanks, Bob...



Robert J. Earp - Ashford Training Technologies
18059 21A Avenue, South Surrey, British Columbia, Canada.  V3S 9V7
T:(604) 541 1662  Cel: (604) 612 6688 Fx: (604) 541 1686






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


RunRevMacUser 4.5 Mice

2003-06-24 Thread DVGlasgow
Congratulations!


Best wishes,

David Glasgow
Home/ forensic assessments --> http://members.aol.com/dvglasgow/";>
DVGlasgow 
Courses --> http://www.i-Psych.co.uk";>i-Psych
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


animation (was re: revjournal incentives)

2003-06-24 Thread eric engle
Well, I think Rev did a good job with its animation
tool. I do not know whether their animation system
could be modified so that each "cell" appears on a
different card and whether their animation system
would be easy to be exported as a quicktime movie. But
from my limited experience I don't think the latter is
possible - though I may be wrong.

Basically I think animation has to be exportable to
make Rev an even more useful tool. 


=
What would you say to a constitutional amendment to give the president dictatorial 
powers?
http://www.miami.com/mld/miamiherald/news/nation/6007732.htm

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Scrolling with keys

2003-06-24 Thread Scott Rossi
Recently, Ken Norris wrote:

>> One basic way to manage the scroll is to use the keyDown (or rawKeyDown)
>> message to set the scroll of the object:
>> 
>> on rawKeyDown K
> snip
> 
> I think I understand the rawKeyDown part, but...
> 
> Ummm. No, I mean continuous smooth scrolling while holding the key down,
> like the mouse would do while holding it down on a scrolling field's arrow
> keys. The joystick controller I'm looking into only sends keyboard messages
> according to how it's programmed in the hardware itself, but not mouse
> messages.
> 
> For example, if the stick forward switch is set to "f" then I believe it
> will send a continuous stream of "f"'s to the computer as long as it's held
> forward.
> 
> Actually, in this case, I want it to scroll continuously in either
> direction, like its on a belt. I've already written scripts for it in HC
> which work, so I have the method together. I'm attempting to make it a
> little more generic for editing purposes.

I'm not sure I understand.  Trapping the keyDown message in the posted
script will cause scrolling to take place continuously while the key is held
down, and then stop when the key is released.

Is this not what you're looking for?

Regards,

Scott Rossi
Creative Director

Tactile Media, Multimedia & Design
Email: [EMAIL PROTECTED]
Web: www.tactilemedia.com

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