Splash Screen Designer

2008-01-16 Thread Richmond Mathewson
This is listed as SPLASH SCREEN DESIGNER; look under
'Richmond'

The name of the stack is SSD.rev, and that is how it
shows up when it is put into the Plug-ins folder.

sincerely, Richmond Mathewson



A Thorn in the flesh is better than a failed Systems Development Life Cycle.



  __
Sent from Yahoo! Mail - a smarter inbox http://uk.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


docs

2008-01-16 Thread Peter Alcibiades
"supercard docs leave the user reverse enginering for dollars"

Yes. Yes, so true.

The problem is not with the existing docs, which are just fine for what they 
do.  The problem, for people learning it, is that they are like a cookbook 
all about ingredients but with no recipes for dishes.  Its like trying to 
find how to make apple pie from a book which has very fine informative 
entries for apple, pastry, sugar - but no entry for pie.

What you need when you are learning however is a cookbook that starts from 
tasks.  The great Carla Schroder's Linux Cookbook is a fine example.

By the time I have learned Rev properly, if I am spared that long, I'll have 
personally written one in the form of notes on topics encountered as problems 
to solve, and so will many of us.  It would be a great collaborative project 
were something like this to be done right.  It would probably make a 
significant contribution to Rev's success and adoption if there were one 
available.

If everyone on the group just contributed one a month, it would be a fantastic 
resource, and would grow to a respectable size very fast.  I'd be happy to 
help.  Not with writing recipes  (which might be a bit of a disaster) but 
with editing and so on.  

"Revolution Recipes".  It has a nice ring to it?

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


docs

2008-01-16 Thread Randall Lee Reetz
Someone mentioned one of the great hypercard books... Made me wish as much of 
the inner workings of modern xtalk environments were as transparently explained 
by the developers themselves. I cant spealpk for runrev but supercard docs 
leave the user reverse enginering for dollars.

randall  
___
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: cancel a wait

2008-01-16 Thread Kay C Lan
On Jan 17, 2008 1:27 AM, Chris Sheffield <[EMAIL PROTECTED]> wrote:

> Is there any way to cancel a wait command?
>
> So I'm wondering, if a user moves to that second card before the audio
> of the first card finishes, is there some way to cancel that
> wait...with messages? Does that make sense? Let me know if I need to
> clarify.
>

I just created a quick test stack, two buttons, one with a script to beep,
wait 5 seconds with messages then beep again. The other button with a script
"exit to top". Clicking the second button prevented the second beep from
occurring.

The docs says to use exit to top 'to stop executing the current handler and
suppress pending messages'

Suppress pending messages being what you're looking for I think.

My guess is a well placed 'exit to top' at the very end of a closeCard
handler in your first card might do the trick.

HTH
___
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: Splash Screen Designer

2008-01-16 Thread -= JB =-

Is that the name it is listed as and what category is it in?
I could not find it.

-=>JB<=-


On Jan 16, 2008, at 12:22 PM, Richmond Mathewson wrote:


Just uploaded to revOnline:

Shamelessly copied from HyperNext; but, I belive,
rather better.

Download it into your plug-ins folder and use it with
a copy of your stack;
it builds a substack which will then preload for a 15
second period.

Its fairly crappy - but only spent about 6 hours on
it.

If you like it, improve it and post it back: let me
know.

sincerely, Richmond Mathewson



A Thorn in the flesh is better than a failed Systems Development  
Life Cycle.




  __
Sent from Yahoo! Mail - a smarter inbox http://uk.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: Unicode Problem

2008-01-16 Thread Mark Smith
Dave, this may be an endian issue. The string below is a big endian  
unicode string, if you're on an intel machine you'll need to either  
reverse each pair  before calling unidecode, or simpler (if you're  
sure there'll be no non-ascii characters) just 'replace null with  
empty in myStringData'.


Best,

Mark

On 17 Jan 2008, at 00:57, Dave wrote:


Hi,

I'm reading a string from a file that is stored in Unicode (2-byte)  
format. I need to convert it to one byte characters in order to  
write the string to a database which is later sent to the server.


When I execute the following it gives unexpected results

put uniDecode(myStringData,"ANSI") into myStringData

For instance, before executing the above, myStringData contained  
the following (in Decimal):


84 0 104 0 101 0 32 0 65 0 108 0 103 0 101 0 98 0 114 0 97 0 105 0  
115 0 116 0


afterwards it contains:

0 0 0 0 0 0 0 0 0 0 0 0 0 0

I also tried uniDecode(myStringData) (leaving the second parameter  
empty) which results in the same string being returned as was  
input, e.g. in this case:


84 0 104 0 101 0 32 0 65 0 108 0 103 0 101 0 98 0 114 0 97 0 105 0  
115 0 116 0



My question is, how can I convert a 2 byte string into a 1 byte  
string?


Thanks a lot
All the Best
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


___
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: Unicode Problem

2008-01-16 Thread Sarah Reichelt
> I'm reading a string from a file that is stored in Unicode (2-byte)
> format. I need to convert it to one byte characters in order to write
> the string to a database which is later sent to the server.
>
> When I execute the following it gives unexpected results
>
> put uniDecode(myStringData,"ANSI") into myStringData
>
> For instance, before executing the above, myStringData contained the
> following (in Decimal):
>
> 84 0 104 0 101 0 32 0 65 0 108 0 103 0 101 0 98 0 114 0 97 0 105 0
> 115 0 116 0
>

Hi Dave,

This doesn't look like real Unicode text but the ASCII codes for each
character with 2 bytes per character in case they are unicode. Since
every 2nd number is zero, none of them actually translate to unicode
characters.

I wrote a very quick & dirty routine to translate this into text:

on mouseUp
put fld "Raw" into tRaw
put empty into tConverted

repeat with x = 1 to the number of words in tRaw step 2
put numtochar(word x of tRaw) after tConverted
end repeat

put tConverted into fld "Converted"
end mouseUp

which gives me "The Algebraist
___
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


Unicode Problem

2008-01-16 Thread Dave

Hi,

I'm reading a string from a file that is stored in Unicode (2-byte)  
format. I need to convert it to one byte characters in order to write  
the string to a database which is later sent to the server.


When I execute the following it gives unexpected results

put uniDecode(myStringData,"ANSI") into myStringData

For instance, before executing the above, myStringData contained the  
following (in Decimal):


84 0 104 0 101 0 32 0 65 0 108 0 103 0 101 0 98 0 114 0 97 0 105 0  
115 0 116 0


afterwards it contains:

0 0 0 0 0 0 0 0 0 0 0 0 0 0

I also tried uniDecode(myStringData) (leaving the second parameter  
empty) which results in the same string being returned as was input,  
e.g. in this case:


84 0 104 0 101 0 32 0 65 0 108 0 103 0 101 0 98 0 114 0 97 0 105 0  
115 0 116 0



My question is, how can I convert a 2 byte string into a 1 byte string?

Thanks a lot
All the Best
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: An interesting project?

2008-01-16 Thread Mark Wieder
Tim-

My favorite musical input device these days is the reactable:

http://www.youtube.com/watch?v=0h-RhyopUmc

-- 
 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: I just bit the bullet and bought the Studio Bundle

2008-01-16 Thread Neal Campbell K3NC
My welcome also! I also recommend Hypercard 2.2: The Book as its a  
great library resource to a lot of the functions. Go to amazon and see  
whats available there.



Neal Campbell

www.abrohamnealsoftware.com
AIM:nealk3nc






On Jan 16, 2008, at 6:17 PM, Andre Garzia wrote:


Hello Jim,

be very welcome!!! :D

This is the best community ever, feel free to ask any question! I
recommend buying "Software at the speed of though" by Dan Shafer, it's
available as an eBook and it is a wonderful resource!

Cheers
andre

On 1/10/08, Jim Schaubeck <[EMAIL PROTECTED]> wrote:
I'm a novice at RunRev but I do enjoy creating applications.  I  
wish I was

experienced enough to do it for a living (I'm getting there)



Some people like to read a good book.I like to use RunRev.for hours



Looking forward to the bundle



Jim Schaubeck.

___
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




--
http://www.andregarzia.com All We Do Is Code.
___
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: I just bit the bullet and bought the Studio Bundle

2008-01-16 Thread Andre Garzia
Hello Jim,

be very welcome!!! :D

This is the best community ever, feel free to ask any question! I
recommend buying "Software at the speed of though" by Dan Shafer, it's
available as an eBook and it is a wonderful resource!

Cheers
andre

On 1/10/08, Jim Schaubeck <[EMAIL PROTECTED]> wrote:
> I'm a novice at RunRev but I do enjoy creating applications.  I wish I was
> experienced enough to do it for a living (I'm getting there)
>
>
>
> Some people like to read a good book.I like to use RunRev.for hours
>
>
>
> Looking forward to the bundle
>
>
>
> Jim Schaubeck.
>
> ___
> 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
>


-- 
http://www.andregarzia.com All We Do Is Code.
___
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: Many Cards Versus One Card and a List Field

2008-01-16 Thread Björnke von Gierke


On 16 Jan 2008, at 21:36, Mikey wrote:


Regardless, there is nothing that stops anyone from circumventing a
patent by reverse-engineering it, which is generally the favored
technique.


This is just false. patents are documented, because that is the only  
way to enforce them in court. Therefore there is no need to reverse  
engineer anything. If someone want's to hide stuff, the best way is to  
never patent it, and there are some famous examples of that (the Coca- 
Cola recipe comes to mind).



--

official ChatRev page:
http://chatrev.bjoernke.com

Chat with other RunRev developers:
go stack URL "http://homepage.mac.com/bvg/chatrev1.3.rev";

___
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


An interesting project?

2008-01-16 Thread Timothy Miller

Hi,

Can I post a youtube link here? Well, here goes.

http://www.youtube.com/watch?v=wreP8FMupyM

If you don't feel like clicking on the link, it demonstrates a cool  
drumbeat machine with a GUI, sort of.


I lusted after it for a moment, then realized it's limited, probably  
not commercially available, and likely very expensive.


It then occurred to me that it probably would be pretty easy to  
emulate in RR. It probably would not be hard to add additional  
sounds, maybe two measures instead of one, maybe sixteeenth notes,  
and maybe different time signatures. Speed could be an issue. Not  
certain.


Maybe that's already been done. I dunno. I don't think I'm up to it.  
Maybe someone else is. I thought I'd mention it, fwiw.


Cheers,


Tim Miller
___
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


ReL Many Cards Versus One Card and a List Field

2008-01-16 Thread Richard Gaskin

Mikey wrote:

Richard,
Obviously others have commented on the patent.  If the patent hasn't
expired, it is about to, and the technique will be described in the
patent application.

Regardless, there is nothing that stops anyone from circumventing a
patent by reverse-engineering it, which is generally the favored
technique.


Of course, as noted in my post:


I realize it got a bit long, but where I noted the patent I also noted 
that it was the lesser of at least two reasons it would seem unlikely 
that the folks at RunRev would pursue a data storage solution dependent 
on a single representation of content.



Finally, the argument that "everyone else is doing" something would
have led to HC never being created in the first place.  Paradigms are
made to be broken.


While I'm all for innovation, it's balancing act.  Sometimes the entire 
world isn't wrong.


The HC paradigm was fun and useful, but it was also unique and is now 
extinct.


For all these years, it's noteworthy that while so many other products 
have been inspired by HC's innovative visual programming approach (a 
former Microsoft employee once told me that Visual Basic was prototyped 
on a Mac with SuperCard ), none of them have seen it worthwhile to 
also replicate its approach to data storage.


That said, there may still be merit to that approach, and perhaps 
FileMaker's Bento offers the closest match among modern tools to 
accommodate a similar set of needs.


My point is not whether it has any merit, but rather the likelihood of 
Rev adopting it in a world where the remaining growth opportunities must 
address an audience who's never seen HyperCard before, but probably has 
at least some familiarity with any of the variety of systems which 
separate layout from content.


In short, Rev may be different from HyperCard, but I don't think it's 
fair to characterize that difference as "broken".


Case in point:

Many years ago I helped port a card-based system in HC to Rev.  The 
final product was at least semi-relational in parts, and those that were 
saw a three-orders-of-magnitude performance gain; a process that once 
ran all night in HC is now completed in just a few minutes in Rev.


It didn't use Valentina, or MySQL, or anything externals at all.  Just 
delimited data in custom properties, all in native Transcript.


Moreover, the user interface could be enhanced at any time without 
affecting the client's data.  No cumbersome export/import; just drop the 
new UI stacks in and new features become available instantly.


This isn't all that novel; most apps do this.  We didn't invent any new 
paradigms, just used existing ones to the user's advantage. This morning 
I updated my iTunes, and it didn't touch my data at all.  Same with 
upgrades to everything from Adobe GoLive to Microsoft Word.


Separating content from presentation is simply a paradigm that works, 
and I can't fault the folks at RunRev for focusing on providing 
solutions which favor it.


Sure, it's more work for the developer.  Most things that make life 
easier for the end-user are.  So we just roll up our sleeves and make 
magic, and all the user knows is that their world is a little bit 
simpler than it was the day before.


--
 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: Filenames again

2008-01-16 Thread Kenji Kojima

Randall,

The first line was shell command got list names of files in working  
directory. You got UTF8 filenames. Then it's converted to UTF16 and  
set the test field 1.


OSX 10.5.1 ENGLISH and Rev 2.8.1.
--
Kenji Kojima
RGB MusicLab: Pixels into Music
http://www.kenjikojima.com/rgbmusiclab/


On Jan 16, 2008, at 3:55 PM, Randall Lee Reetz wrote:


Kenji,

Will you please explain your solution.  I don't understand what is  
happening and how "it works.


Thanks,

Randall

On Jan 16, 2008, at 12:51 PM, Kenji Kojima wrote:


Hi Mark,

This is the way you can get Japanese filenames.

put "cd ~/Desktop" &cr& "ls" into tScript
set the unicodeText of fld 1 to uniencode(shell(tScript),utf8)

--
Kenji Kojima
RGB MusicLab: Pixels into Music
http://www.kenjikojima.com/rgbmusiclab/



On Jan 16, 2008, at 2:56 PM, Mark Smith wrote:

You're probably right, but my English system is having to deal  
with a non-english file, and Rev is failing miserably, though the  
finder and other apps seem to be ok with it


Sadly, it seems lke I can't even get round it using shell  
commands, since Rev also fails to cope with the type of UTF-8 that  
the OS uses (combining diacriticals) :(


Best,

Mark

On 16 Jan 2008, at 19:50, Randall Lee Reetz wrote:

I am waiting for heavier geeks to weigh in here... but isn't it  
that the localization of the OS (which language you signed in as)  
what makes the File System char set aware?


Randall

On Jan 16, 2008, at 10:45 AM, Mark Smith wrote:

Andre, I think that's my only hope...much as I really hate  
Applescript!

It does seem incredible that Revolution just can't do it.
How do people in Japan and Russia deal with it? Maybe they just  
don't use Revoluton. :(


Thanks,

Mark

On 16 Jan 2008, at 17:52, Andre Garzia wrote:

Is this an application just for you, or you plan to distribute  
it ?


If it's just for you, then, you can try to hack your file  
access using

AppleScript, maybe it has a better unicode support.

Andre

On 1/16/08, Mark Smith <[EMAIL PROTECTED]> wrote:

Hi all, I'm once again trying to deal with unicode and filenames
again...

This is on OS X.

If I have a file that has a Japanese name:  "音楽ファイル
を.mp3" (I wonder if that'll come out ok in everyone's  
mail!), it
seems to be the case that this file effectively does not exist  
in any
useful way for Revolution. It is not listed in 'the files',  
it's name
is omitted from 'the detailed files', it can't be opened,  
copied or

renamed. The finder seems to have no problem with it. Can anyone
confirm this so I can abandon my current project before I've  
torn all

of my hair out?

Thanks,

Mark___
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




--
http://www.andregarzia.com All We Do Is Code.
___
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


___
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








___
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: importing a bunch of files

2008-01-16 Thread Richard Gaskin

Randall Lee Reetz wrote:
In your script, it appears that a custom prop is dynamically declared  
just by setting it's value?  Is this all you have to do?  In  
SuperCard, one has to specifically declare a "user" property with a  
"define" statement before ever setting it's value.


Yeah, and that extra line needed to declare every custom property used 
to drive me crazy.  I submitted a request to change that back when Gary 
Poppitz was SC's lead engineer, but he felt strongly about it so it 
never happened.  I was sure tickled to find it in Rev.


Gary's thinking was that he wanted to avoid having requests for props 
that didn't exist, but in practice that's rarer than assigning them so 
the tradeoff doesn't buy you any additional productivity.


When you try to access a property that doesn't exist in Rev, it just 
returns empty.  So how do you know whether it's not there or perhaps 
there but merely empty?  In such cases you can query the customKeys 
property:


  get the customKeys of btn 1

This returns a return-delimited list of all custom props in the current 
property set.   Keep in mind that you can have any number of property 
sets in an object, and switch between then with:


  set the customPropertySet of btn 1 to "UserData"

This can be especially handy when you have lots of different data for 
which it would be useful to use a single key.


For example, if you had some info about users you could do this:

  put "bob" into tName
  put "Age,Rank,Serial" into tSets
  repeat for each item tPropSet in tSets
 set the customPropertSet to tPropSet
 put the tName of this stack into fld tName
  end repeat

Lots of tricky things can be done with property arrays.


Now kindly allow me to blow your mind:

How many times have you wanted to replicate an object, but using copy 
and paste seemed cumbersome and you didn't want to muck with the user's 
clipboard?


In Rev, you can use "copy...to...", e.g.:

  copy btn 1 of stack "templates" to this cd

This copies the object into the current stack, and using the "to" form 
of "copy" leaves the clipboard alone.


But it gets better:

Just as you can get all of the customKeys of an object's property set as 
I noted above, you can even get all of the modifiable built-in 
properties as well, returned to you in a convenient array - try this, 
which also combines the array elements into a list for easy viewing:


put the properties of this stack into tmp
combine tmp with cr and tab
put tmp

So you can get and set all modifiable properties in a single line.

But if that's not convenient enough, you can also transfer all built-in 
properties from any object to any other of the same type in one line:


  set the properties of btn 1 to the properties of btn 2


Let's take this one step further:

Suppose you needed to create a hundred graphics on the fly, each with 
specific properties.  You could create them and then assign their 
properties, but Rev also gives us template objects, virtual objects from 
which anything created with the "Create" command will adopt all their 
properties.


So you could make those graphics like this:

   --  Just set up the template object...
   set the properties of the templateGraphic to \
 the properties of grc "MyTemplate"
   --
   -- ...and create the objects as normal:
   repeat with i = 1 to 100
  create grc
   end repeat


Ah, the limitless possibilities

:)


Rev's associative arrays and property sets are so useful that I 
recommend everyone take at least half a day just to play with them. 
Once you get a good feel for them a great many solutions become quick 
and easy, and often fun.


--
 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: Filenames again

2008-01-16 Thread Mark Smith
Kenji, thank you for that. Unfortunately, having got the name, there  
doesn't seem to be any way in Revolution to actually do anything with  
it - at least on this english system...


Best,

Mark

On 16 Jan 2008, at 20:51, Kenji Kojima wrote:


Hi Mark,

This is the way you can get Japanese filenames.

put "cd ~/Desktop" &cr& "ls" into tScript
set the unicodeText of fld 1 to uniencode(shell(tScript),utf8)

--
Kenji Kojima
RGB MusicLab: Pixels into Music
http://www.kenjikojima.com/rgbmusiclab/



On Jan 16, 2008, at 2:56 PM, Mark Smith wrote:

You're probably right, but my English system is having to deal  
with a non-english file, and Rev is failing miserably, though the  
finder and other apps seem to be ok with it


Sadly, it seems lke I can't even get round it using shell  
commands, since Rev also fails to cope with the type of UTF-8 that  
the OS uses (combining diacriticals) :(


Best,

Mark

On 16 Jan 2008, at 19:50, Randall Lee Reetz wrote:

I am waiting for heavier geeks to weigh in here... but isn't it  
that the localization of the OS (which language you signed in as)  
what makes the File System char set aware?


Randall

On Jan 16, 2008, at 10:45 AM, Mark Smith wrote:

Andre, I think that's my only hope...much as I really hate  
Applescript!

It does seem incredible that Revolution just can't do it.
How do people in Japan and Russia deal with it? Maybe they just  
don't use Revoluton. :(


Thanks,

Mark

On 16 Jan 2008, at 17:52, Andre Garzia wrote:

Is this an application just for you, or you plan to distribute  
it ?


If it's just for you, then, you can try to hack your file  
access using

AppleScript, maybe it has a better unicode support.

Andre

On 1/16/08, Mark Smith <[EMAIL PROTECTED]> wrote:

Hi all, I'm once again trying to deal with unicode and filenames
again...

This is on OS X.

If I have a file that has a Japanese name:  "音楽ファイル
を.mp3" (I wonder if that'll come out ok in everyone's  
mail!), it
seems to be the case that this file effectively does not exist  
in any
useful way for Revolution. It is not listed in 'the files',  
it's name
is omitted from 'the detailed files', it can't be opened,  
copied or

renamed. The finder seems to have no problem with it. Can anyone
confirm this so I can abandon my current project before I've  
torn all

of my hair out?

Thanks,

Mark___
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




--
http://www.andregarzia.com All We Do Is Code.
___
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


___
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: importing a bunch of files

2008-01-16 Thread Eric Chatonet

Hi Randall,

Le 16 janv. 08 à 19:41, Randall Lee Reetz a écrit :


This 256 char path limit... who's is it... File system?  Rev?


Obviously a Rev choice about used variables.
See 'Documentation/rev/Memory and Limits Reference.rev'

Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: Filenames again

2008-01-16 Thread Randall Lee Reetz

Kenji,

Will you please explain your solution.  I don't understand what is  
happening and how "it works.


Thanks,

Randall

On Jan 16, 2008, at 12:51 PM, Kenji Kojima wrote:


Hi Mark,

This is the way you can get Japanese filenames.

put "cd ~/Desktop" &cr& "ls" into tScript
set the unicodeText of fld 1 to uniencode(shell(tScript),utf8)

--
Kenji Kojima
RGB MusicLab: Pixels into Music
http://www.kenjikojima.com/rgbmusiclab/



On Jan 16, 2008, at 2:56 PM, Mark Smith wrote:

You're probably right, but my English system is having to deal  
with a non-english file, and Rev is failing miserably, though the  
finder and other apps seem to be ok with it


Sadly, it seems lke I can't even get round it using shell  
commands, since Rev also fails to cope with the type of UTF-8 that  
the OS uses (combining diacriticals) :(


Best,

Mark

On 16 Jan 2008, at 19:50, Randall Lee Reetz wrote:

I am waiting for heavier geeks to weigh in here... but isn't it  
that the localization of the OS (which language you signed in as)  
what makes the File System char set aware?


Randall

On Jan 16, 2008, at 10:45 AM, Mark Smith wrote:

Andre, I think that's my only hope...much as I really hate  
Applescript!

It does seem incredible that Revolution just can't do it.
How do people in Japan and Russia deal with it? Maybe they just  
don't use Revoluton. :(


Thanks,

Mark

On 16 Jan 2008, at 17:52, Andre Garzia wrote:

Is this an application just for you, or you plan to distribute  
it ?


If it's just for you, then, you can try to hack your file  
access using

AppleScript, maybe it has a better unicode support.

Andre

On 1/16/08, Mark Smith <[EMAIL PROTECTED]> wrote:

Hi all, I'm once again trying to deal with unicode and filenames
again...

This is on OS X.

If I have a file that has a Japanese name:  "音楽ファイル
を.mp3" (I wonder if that'll come out ok in everyone's  
mail!), it
seems to be the case that this file effectively does not exist  
in any
useful way for Revolution. It is not listed in 'the files',  
it's name
is omitted from 'the detailed files', it can't be opened,  
copied or

renamed. The finder seems to have no problem with it. Can anyone
confirm this so I can abandon my current project before I've  
torn all

of my hair out?

Thanks,

Mark___
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




--
http://www.andregarzia.com All We Do Is Code.
___
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


___
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: Filenames again

2008-01-16 Thread Kenji Kojima

Hi Mark,

This is the way you can get Japanese filenames.

put "cd ~/Desktop" &cr& "ls" into tScript
set the unicodeText of fld 1 to uniencode(shell(tScript),utf8)

--
Kenji Kojima
RGB MusicLab: Pixels into Music
http://www.kenjikojima.com/rgbmusiclab/



On Jan 16, 2008, at 2:56 PM, Mark Smith wrote:

You're probably right, but my English system is having to deal with  
a non-english file, and Rev is failing miserably, though the finder  
and other apps seem to be ok with it


Sadly, it seems lke I can't even get round it using shell commands,  
since Rev also fails to cope with the type of UTF-8 that the OS uses  
(combining diacriticals) :(


Best,

Mark

On 16 Jan 2008, at 19:50, Randall Lee Reetz wrote:

I am waiting for heavier geeks to weigh in here... but isn't it  
that the localization of the OS (which language you signed in as)  
what makes the File System char set aware?


Randall

On Jan 16, 2008, at 10:45 AM, Mark Smith wrote:

Andre, I think that's my only hope...much as I really hate  
Applescript!

It does seem incredible that Revolution just can't do it.
How do people in Japan and Russia deal with it? Maybe they just  
don't use Revoluton. :(


Thanks,

Mark

On 16 Jan 2008, at 17:52, Andre Garzia wrote:


Is this an application just for you, or you plan to distribute it ?

If it's just for you, then, you can try to hack your file access  
using

AppleScript, maybe it has a better unicode support.

Andre

On 1/16/08, Mark Smith <[EMAIL PROTECTED]> wrote:

Hi all, I'm once again trying to deal with unicode and filenames
again...

This is on OS X.

If I have a file that has a Japanese name:  "音楽ファイル
を.mp3" (I wonder if that'll come out ok in everyone's  
mail!), it
seems to be the case that this file effectively does not exist  
in any
useful way for Revolution. It is not listed in 'the files', it's  
name
is omitted from 'the detailed files', it can't be opened, copied  
or

renamed. The finder seems to have no problem with it. Can anyone
confirm this so I can abandon my current project before I've  
torn all

of my hair out?

Thanks,

Mark___
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




--
http://www.andregarzia.com All We Do Is Code.
___
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


___
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: Many Cards Versus One Card and a List Field

2008-01-16 Thread Mikey
Richard,
Obviously others have commented on the patent.  If the patent hasn't
expired, it is about to, and the technique will be described in the
patent application.

Regardless, there is nothing that stops anyone from circumventing a
patent by reverse-engineering it, which is generally the favored
technique.

Finally, the argument that "everyone else is doing" something would
have led to HC never being created in the first place.  Paradigms are
made to be broken.
___
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: importing a bunch of files

2008-01-16 Thread Jeanne A. E. DeVoto

At 10:18 AM -0800 1/16/2008, Richard Gaskin wrote:

Thierry wrote:


 Of course you have to replace spaces and slashes with some string
that will not break the name of the custom prop into several parts
:-)



I just ran this test:

on mouseUp
  put "some/thing" into v1
  put "some thing" into v2
  set the uTest[v1] of of this stack to "test"
  set the uTest[v2] of of this stack to "test"
end mouseUp

...and it worked well, with "some/thing" and "some thing" appearing
among the lines of the customKeys of property set uTest, and I can
also retrieve their values with the same notation.



Quoting the custom property name will also work:

  set the uTest["some\thing"] of this stack to "test"

But I seem to recall Mr. Raney cautioning against naming custom 
properties anything that wouldn't be legal for variables, on the 
grounds that it may work now but might not work forever. (Of course, 
Mark would be the one to ask at this point whether that's still true 
- I had the impression that it was a peculiarity of the way custom 
properties are parsed, but I don't know whether it might change at 
this point. But something to consider...)

--
Jeanne A. E. DeVoto, Transcript Language Curmudgeon
[EMAIL PROTECTED]
http://www.jaedworks.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: Many Cards Versus One Card and a List Field

2008-01-16 Thread Randall Lee Reetz
Ya, this "hint bits" just sounds like a clever indexing/pointing  
system... hard to defend any specific case of this as categorically  
owned.  This is at base in any fast database incarnation... or it  
wouldn't be fast.  You have to play access tricks (stack the deck) or  
search algorithms will always scale linearly with data size.


Randall


On Jan 16, 2008, at 6:37 AM, Jeanne A. E. DeVoto wrote:


At 6:06 PM -0800 1/15/2008, Richard Gaskin wrote:

J. Downs wrote:

 What made it possible to use HC that way was its "hint bits", a
system for indexing field contents which is not only proprietary
but patented as well.  Hint bits made it ultra-fast for obtaining
data across the otherwise-complex structures that make up cards
and  fields.

 Certainly any such patent has expired by now.  Patents are
enforceable a maximum of 20 years past the filing date.


Cool.  Let us know what Apples says when you write to ask them for  
the code. ;)


If they'd patented it, we wouldn't have to ask for the code, since  
revealing the algorithm is required to obtain the patent. (Patents  
don't function as some sort of extension of trade secret, although  
some companies would like you to think so. ;-) The purpose of a  
patent is to get a new technique into the public domain; the  
tradeoff for the company is 1) you reveal how to do this to the  
public, in exchange for 2) a limited-time legally enforceable  
monopoly on the technique, which you get even if someone else  
discovers it independently. For Apple, this means they could go to  
court during the life of the patent against anyone who used the  
same method, but the price is that everyone knows the method - so  
once the patent expires, anyone can use it. In a real sense, a  
patented technique is the opposite of proprietary.


However, this may be moot as I don't think they actually patented  
the use of hint bits for searching. At least I can't find it at the  
Patent Office site, although there are a lot of patents that  
mention HyperCard and I haven't looked at most of 'em.

--
Jeanne A. E. DeVoto, Transcript Language Curmudgeon
[EMAIL PROTECTED]
http://www.jaedworks.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


Splash Screen Designer

2008-01-16 Thread Richmond Mathewson
Just uploaded to revOnline:

Shamelessly copied from HyperNext; but, I belive,
rather better.

Download it into your plug-ins folder and use it with
a copy of your stack;
it builds a substack which will then preload for a 15
second period.

Its fairly crappy - but only spent about 6 hours on
it.

If you like it, improve it and post it back: let me
know.

sincerely, Richmond Mathewson



A Thorn in the flesh is better than a failed Systems Development Life Cycle.



  __
Sent from Yahoo! Mail - a smarter inbox http://uk.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: importing a bunch of files

2008-01-16 Thread Randall Lee Reetz

Richard,

In your script, it appears that a custom prop is dynamically declared  
just by setting it's value?  Is this all you have to do?  In  
SuperCard, one has to specifically declare a "user" property with a  
"define" statement before ever setting it's value.  Otherwise it  
doesn't know if you are declaring a var or a prop... how does Rev do  
this (oh, maybe it is the use of "set")?


Randall

On Jan 16, 2008, at 10:18 AM, Richard Gaskin wrote:


Thierry wrote:

Of course you have to replace spaces and slashes with some  
string  that will not break the name of the custom prop into  
several parts :-)

Yes, I'm aware of that.


I think such failure depends on how it's done.

I just ran this test:

on mouseUp
  put "some/thing" into v1
  put "some thing" into v2
  set the uTest[v1] of of this stack to "test"
  set the uTest[v2] of of this stack to "test"
end mouseUp

...and it worked well, with "some/thing" and "some thing" appearing  
among the lines of the customKeys of property set uTest, and I can  
also retrieve their values with the same notation.


Does anyone recall the specific syntax which might cause this to fail?

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



___
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: Many Cards Versus One Card and a List Field

2008-01-16 Thread Jeanne A. E. DeVoto

At 6:06 PM -0800 1/15/2008, Richard Gaskin wrote:

J. Downs wrote:

 What made it possible to use HC that way was its "hint bits", a
system for indexing field contents which is not only proprietary
but patented as well.  Hint bits made it ultra-fast for obtaining
data across the otherwise-complex structures that make up cards
and  fields.

 Certainly any such patent has expired by now.  Patents are
enforceable a maximum of 20 years past the filing date.


Cool.  Let us know what Apples says when you write to ask them for 
the code. ;)


If they'd patented it, we wouldn't have to ask for the code, since 
revealing the algorithm is required to obtain the patent. (Patents 
don't function as some sort of extension of trade secret, although 
some companies would like you to think so. ;-) The purpose of a 
patent is to get a new technique into the public domain; the tradeoff 
for the company is 1) you reveal how to do this to the public, in 
exchange for 2) a limited-time legally enforceable monopoly on the 
technique, which you get even if someone else discovers it 
independently. For Apple, this means they could go to court during 
the life of the patent against anyone who used the same method, but 
the price is that everyone knows the method - so once the patent 
expires, anyone can use it. In a real sense, a patented technique is 
the opposite of proprietary.


However, this may be moot as I don't think they actually patented the 
use of hint bits for searching. At least I can't find it at the 
Patent Office site, although there are a lot of patents that mention 
HyperCard and I haven't looked at most of 'em.

--
Jeanne A. E. DeVoto, Transcript Language Curmudgeon
[EMAIL PROTECTED]
http://www.jaedworks.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: Filenames again

2008-01-16 Thread Randall Lee Reetz
I work mainly in SuperCard... same issues here... can display chars  
in UTF but not UTF aware at the function level.  Makes text parsing  
almost impossible.  The chars are counted but you can't find out what  
they are.  For instance:


CharToNum(char 3 of myTxt)

... yields "0" if char 3 is unicode!

Randall

On Jan 16, 2008, at 11:56 AM, Mark Smith wrote:

You're probably right, but my English system is having to deal with  
a non-english file, and Rev is failing miserably, though the finder  
and other apps seem to be ok with it


Sadly, it seems lke I can't even get round it using shell commands,  
since Rev also fails to cope with the type of UTF-8 that the OS  
uses (combining diacriticals) :(


Best,

Mark

On 16 Jan 2008, at 19:50, Randall Lee Reetz wrote:

I am waiting for heavier geeks to weigh in here... but isn't it  
that the localization of the OS (which language you signed in as)  
what makes the File System char set aware?


Randall

On Jan 16, 2008, at 10:45 AM, Mark Smith wrote:

Andre, I think that's my only hope...much as I really hate  
Applescript!

It does seem incredible that Revolution just can't do it.
How do people in Japan and Russia deal with it? Maybe they just  
don't use Revoluton. :(


Thanks,

Mark

On 16 Jan 2008, at 17:52, Andre Garzia wrote:


Is this an application just for you, or you plan to distribute it ?

If it's just for you, then, you can try to hack your file access  
using

AppleScript, maybe it has a better unicode support.

Andre

On 1/16/08, Mark Smith <[EMAIL PROTECTED]> wrote:

Hi all, I'm once again trying to deal with unicode and filenames
again...

This is on OS X.

If I have a file that has a Japanese name:  "音楽ファイル
を.mp3" (I wonder if that'll come out ok in everyone's  
mail!), it
seems to be the case that this file effectively does not exist  
in any
useful way for Revolution. It is not listed in 'the files',  
it's name
is omitted from 'the detailed files', it can't be opened,  
copied or

renamed. The finder seems to have no problem with it. Can anyone
confirm this so I can abandon my current project before I've  
torn all

of my hair out?

Thanks,

Mark___
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




--
http://www.andregarzia.com All We Do Is Code.
___
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


___
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: Filenames again

2008-01-16 Thread Mark Smith
You're probably right, but my English system is having to deal with a  
non-english file, and Rev is failing miserably, though the finder and  
other apps seem to be ok with it


Sadly, it seems lke I can't even get round it using shell commands,  
since Rev also fails to cope with the type of UTF-8 that the OS uses  
(combining diacriticals) :(


Best,

Mark

On 16 Jan 2008, at 19:50, Randall Lee Reetz wrote:

I am waiting for heavier geeks to weigh in here... but isn't it  
that the localization of the OS (which language you signed in as)  
what makes the File System char set aware?


Randall

On Jan 16, 2008, at 10:45 AM, Mark Smith wrote:

Andre, I think that's my only hope...much as I really hate  
Applescript!

It does seem incredible that Revolution just can't do it.
How do people in Japan and Russia deal with it? Maybe they just  
don't use Revoluton. :(


Thanks,

Mark

On 16 Jan 2008, at 17:52, Andre Garzia wrote:


Is this an application just for you, or you plan to distribute it ?

If it's just for you, then, you can try to hack your file access  
using

AppleScript, maybe it has a better unicode support.

Andre

On 1/16/08, Mark Smith <[EMAIL PROTECTED]> wrote:

Hi all, I'm once again trying to deal with unicode and filenames
again...

This is on OS X.

If I have a file that has a Japanese name:  "音楽ファイル
を.mp3" (I wonder if that'll come out ok in everyone's  
mail!), it
seems to be the case that this file effectively does not exist  
in any
useful way for Revolution. It is not listed in 'the files', it's  
name

is omitted from 'the detailed files', it can't be opened, copied or
renamed. The finder seems to have no problem with it. Can anyone
confirm this so I can abandon my current project before I've  
torn all

of my hair out?

Thanks,

Mark___
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




--
http://www.andregarzia.com All We Do Is Code.
___
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


___
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: Filenames again

2008-01-16 Thread Randall Lee Reetz
I am waiting for heavier geeks to weigh in here... but isn't it that  
the localization of the OS (which language you signed in as) what  
makes the File System char set aware?


Randall

On Jan 16, 2008, at 10:45 AM, Mark Smith wrote:

Andre, I think that's my only hope...much as I really hate  
Applescript!

It does seem incredible that Revolution just can't do it.
How do people in Japan and Russia deal with it? Maybe they just  
don't use Revoluton. :(


Thanks,

Mark

On 16 Jan 2008, at 17:52, Andre Garzia wrote:


Is this an application just for you, or you plan to distribute it ?

If it's just for you, then, you can try to hack your file access  
using

AppleScript, maybe it has a better unicode support.

Andre

On 1/16/08, Mark Smith <[EMAIL PROTECTED]> wrote:

Hi all, I'm once again trying to deal with unicode and filenames
again...

This is on OS X.

If I have a file that has a Japanese name:  "音楽ファイル
を.mp3" (I wonder if that'll come out ok in everyone's  
mail!), it
seems to be the case that this file effectively does not exist in  
any
useful way for Revolution. It is not listed in 'the files', it's  
name

is omitted from 'the detailed files', it can't be opened, copied or
renamed. The finder seems to have no problem with it. Can anyone
confirm this so I can abandon my current project before I've torn  
all

of my hair out?

Thanks,

Mark___
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




--
http://www.andregarzia.com All We Do Is Code.
___
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: Filenames again

2008-01-16 Thread Dave Cragg
If I have a file that has a Japanese name:  "音楽ファイル 
を.mp3" (I wonder if that'll come out ok in everyone's mail!), it  
seems to be the case that this file effectively does not exist in  
any useful way for Revolution. It is not listed in 'the files',  
it's name is omitted from 'the detailed files', it can't be opened,  
copied or renamed. The finder seems to have no problem with it. Can  
anyone confirm this so I can abandon my current project before I've  
torn all of my hair out?




I'm seeing the same. If some Latin text is placed at the front of the  
filename, that text appears. But not any placed after the Japanese.  
For example, a file named "verygood音楽ファイル copy.txt"  
displays (in the files and detailed files) as "verygood".


This was in Rev 2.8.1

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: cancel a wait

2008-01-16 Thread J. Landman Gay

Chris Sheffield wrote:

So I'm wondering, if a user moves to that second card before the audio 
of the first card finishes, is there some way to cancel that wait...with 
messages?


Would it work to check whether the player is running before starting 
another wait sequence? That might avoid the problem. Try checking the 
player's "paused" property.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.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: Filenames again

2008-01-16 Thread Mark Smith

Andre, I think that's my only hope...much as I really hate Applescript!
It does seem incredible that Revolution just can't do it.
How do people in Japan and Russia deal with it? Maybe they just don't  
use Revoluton. :(


Thanks,

Mark

On 16 Jan 2008, at 17:52, Andre Garzia wrote:


Is this an application just for you, or you plan to distribute it ?

If it's just for you, then, you can try to hack your file access using
AppleScript, maybe it has a better unicode support.

Andre

On 1/16/08, Mark Smith <[EMAIL PROTECTED]> wrote:

Hi all, I'm once again trying to deal with unicode and filenames
again...

This is on OS X.

If I have a file that has a Japanese name:  "音楽ファイル
を.mp3" (I wonder if that'll come out ok in everyone's  
mail!), it

seems to be the case that this file effectively does not exist in any
useful way for Revolution. It is not listed in 'the files', it's name
is omitted from 'the detailed files', it can't be opened, copied or
renamed. The finder seems to have no problem with it. Can anyone
confirm this so I can abandon my current project before I've torn all
of my hair out?

Thanks,

Mark___
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




--
http://www.andregarzia.com All We Do Is Code.
___
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: importing a bunch of files

2008-01-16 Thread Randall Lee Reetz
This 256 char path limit... who's is it... File system?  Rev?

-Original Message-
From: "Thierry" <[EMAIL PROTECTED]>
To: "How to use Revolution" 
Sent: 1/16/2008 9:51 AM
Subject: Re: importing a bunch of files


Le 16 janv. 08 à 17:39, Eric Chatonet a écrit :

> Bonjour Thierry,
>
> Why don't you store directly your text files into custom  
> properties, the name of which would be the path?

Why not

Ok, it's a mix solution from the 2 I exposed :-)

> Of course you have to replace spaces and slashes with some string  
> that will not break the name of the custom prop into several parts :-)

Yes, I'm aware of that.
and it would be better to manage this  in the import function,  
running once,
when I build the final project.


> BTW note that custom props names are limited to 255 chars but I  
> assume it should be enough.

No, it could be more :-(
So, i have to split the path.
That's why I thought of nested groups.


> Using fields will be cross platform straight on. With custom props  
> you'll have to use macToIso or isoToMac to get the right text  
> according to the platform.

Good point !
Thanks for this one, it will probably saved me some debug time :-)


Merci :-)
Bonne soiree

> Le 16 janv. 08 à 17:25, Thierry a écrit :
>
>> Hi,
>>
>> Another thread about kind of Database :-)
>>
>>
>> For a specific project, I need to implement this:
>>
>> I have an arbitrary set of text files stored on the disk in an
>> arbitrary numbers of directories, within a root one, ie:
>>
>> dirRoot/
>> dirRoot/f1
>> dirRoor/f2
>> dirRoot/dir2/f3
>> dirRoot/dir2/dir3/f4
>> dirRoot/dir4/f5
>> ...
>>
>> When it comes to deliver the project,
>> I want to import all theses files,
>> and the tree organization
>> inside a stack ( datas only stack ).
>>
>> I'm thinking of mapping each directory
>> to a group; the first group would be named dirRoot,
>> dir2 and dir4 would become groups named dir2 and dir4,
>>  children of the first group,
>> dir3 a group inside dir2 group, etc...
>>
>> and for the files, importing them in custom properties
>> of these groups with the same name as the original files.
>>
>> Let say it could be a hundred files or even more
>>
>> One extreme could be one group with a hundred properties,
>> another one a hundred  nested groups with one property for each  
>> group.
>>
>> Do you think this is realistic to do so,
>> and what kind of pitfalls i can find on the way ?
>>
>> Another solution could be to create as many text fields as files,
>> with each field named with the full path of the corresponding  
>> file. ?
>>
>> Any hints or thoughts are welcome, before I jump into 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


___
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: importing a bunch of files

2008-01-16 Thread Randall Lee Reetz
If you follow shuch a scheme, you will have to keep your internal data in 
lockstep with your stored data structure.  Choose one as master and let the 
other slave to it (always sticking to this heirarchy).  Either way, you will 
have to navigate some form of object tree... And translate that out to the 
other half of your memory/storage scheme.  People using xtalk talk about tables 
and arrays alot cause these are so much easier than ontologies.  Even a 
relational data structure is easier than a true object scheme as it is more 
hyper-linking than object inheritence (pointers without a seporate schema as 
formal map).

And there are causal limits at play here... How much data can your computer 
handle in memory?  If you are chunking up your data into seporate files, how do 
you keep annother file(s) as index for fast search and pointing into the data 
itself?  There are ideal ballances to shoot for in terms of data file size and 
index file size.  I have used schemes that maintain this ideal by cleaving and 
or combining data files when they reach arbitrary size thresholds (pointer 
index files updated in step).  All of this points to why it makes sense at 
times to interface your stack to a professional data base and let it do all of 
this structural efficiency heavylifting (that is what it is there for).  I like 
to build my own cause i like to learn... But the obsession is almost killing 
me.   

-Original Message-
From: "Thierry" <[EMAIL PROTECTED]>
To: "RevList" 
Sent: 1/16/2008 8:25 AM
Subject: importing a bunch of files

Hi,

Another thread about kind of Database :-)


For a specific project, I need to implement this:

I have an arbitrary set of text files stored on the disk in an
arbitrary numbers of directories, within a root one, ie:

dirRoot/
dirRoot/f1
dirRoor/f2
dirRoot/dir2/f3
dirRoot/dir2/dir3/f4
dirRoot/dir4/f5
...

When it comes to deliver the project,
I want to import all theses files,
and the tree organization
inside a stack ( datas only stack ).

I'm thinking of mapping each directory
to a group; the first group would be named dirRoot,
dir2 and dir4 would become groups named dir2 and dir4,
  children of the first group,
dir3 a group inside dir2 group, etc...

and for the files, importing them in custom properties
of these groups with the same name as the original files.

Let say it could be a hundred files or even more

One extreme could be one group with a hundred properties,
another one a hundred  nested groups with one property for each group.

Do you think this is realistic to do so,
and what kind of pitfalls i can find on the way ?

Another solution could be to create as many text fields as files,
with each field named with the full path of the corresponding  
file. ?

Any hints or thoughts are welcome, before I jump into it.

Regards,
Thierry


___
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: importing a bunch of files

2008-01-16 Thread Eric Chatonet
I posted the mail below but it did not appear in the list: so I  
apologize if it should appear twice.


Well :-)
You can also set a specific custom property set with custom  
properties the name of which does not matter and parse it:
In each custom property, line 1 will be the path and line 2 to -1  
contents :-)


Le 16 janv. 08 à 18:51, Thierry a écrit :



Le 16 janv. 08 à 17:39, Eric Chatonet a écrit :


Bonjour Thierry,

Why don't you store directly your text files into custom  
properties, the name of which would be the path?


Why not

Ok, it's a mix solution from the 2 I exposed :-)

Of course you have to replace spaces and slashes with some string  
that will not break the name of the custom prop into several  
parts :-)


Yes, I'm aware of that.
and it would be better to manage this  in the import function,  
running once,

when I build the final project.


BTW note that custom props names are limited to 255 chars but I  
assume it should be enough.


No, it could be more :-(
So, i have to split the path.
That's why I thought of nested groups.


Using fields will be cross platform straight on. With custom props  
you'll have to use macToIso or isoToMac to get the right text  
according to the platform.


Good point !
Thanks for this one, it will probably saved me some debug time :-)


Merci :-)
Bonne soiree


Le 16 janv. 08 à 17:25, Thierry a écrit :


Hi,

Another thread about kind of Database :-)


For a specific project, I need to implement this:

I have an arbitrary set of text files stored on the disk in an
arbitrary numbers of directories, within a root one, ie:

dirRoot/
dirRoot/f1
dirRoor/f2
dirRoot/dir2/f3
dirRoot/dir2/dir3/f4
dirRoot/dir4/f5
...

When it comes to deliver the project,
I want to import all theses files,
and the tree organization
inside a stack ( datas only stack ).

I'm thinking of mapping each directory
to a group; the first group would be named dirRoot,
dir2 and dir4 would become groups named dir2 and dir4,
 children of the first group,
dir3 a group inside dir2 group, etc...

and for the files, importing them in custom properties
of these groups with the same name as the original files.

Let say it could be a hundred files or even more

One extreme could be one group with a hundred properties,
another one a hundred  nested groups with one property for each  
group.


Do you think this is realistic to do so,
and what kind of pitfalls i can find on the way ?

Another solution could be to create as many text fields as files,
with each field named with the full path of the corresponding  
file. ?


Any hints or thoughts are welcome, before I jump into it



Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: Filenames again

2008-01-16 Thread Stephen Barncard

I'm seeing Japanese text in the email with Eudora  MacLeopard 10.5.1



If I have a file that has a Japanese name:  "[EMAIL PROTECTED]"



--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -


___
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: importing a bunch of files

2008-01-16 Thread Richard Gaskin

Thierry wrote:

Of course you have to replace spaces and slashes with some string  
that will not break the name of the custom prop into several parts :-)


Yes, I'm aware of that.


I think such failure depends on how it's done.

I just ran this test:

on mouseUp
  put "some/thing" into v1
  put "some thing" into v2
  set the uTest[v1] of of this stack to "test"
  set the uTest[v2] of of this stack to "test"
end mouseUp

...and it worked well, with "some/thing" and "some thing" appearing 
among the lines of the customKeys of property set uTest, and I can also 
retrieve their values with the same notation.


Does anyone recall the specific syntax which might cause this to fail?

--
 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: importing a bunch of files

2008-01-16 Thread Thierry


Hi Randall,


Not only that but using your disc files as dat fields or even  
record will seriously overburden your file system's day to day  
efficiency.  You could easily add orders of magnitude to the number  
of files and directories on disc.. Seriously slowing down a lot of  
OS (and finder) functionality.  Be good to your disc.



M,
 I was probably not precise enough on what I need to do.



-Original Message-
From: "Randall Lee Reetz" <[EMAIL PROTECTED]>

Wholy moly...


can you teach me the meaning :-)


In this project, all the files I'm talking  are there !
Can't do anything against this, that's the start.

The main idea is to embed all the groups of files and directory inside
Revolution to avoid installing back to the user's space all these files,
plus as a security behavior because it's not possible to modify  
simply these files.


Am I a bit clearer ?

Thanks,

Regards,
Thierry


___
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


dimming of Edit menu items after using OsX file dialogue

2008-01-16 Thread Andrew Meit

Hi,

HELP
I have found both in 2.8.1/2.9b10 that after calling OsX's standard  
file dialogue to open a file the first 4 menuitems under my Edit menu  
(stand editing stuff) becomes disabled until I force a redraw of the  
window by either iconizing it in the dock and uniconizing it or by  
opening another window and then bring the main stack window frontmost  
again. btw, yes when I use a hardwired file path, the edit menuitems  
do remain enabled; hence, know its how Rev is calling the OsX.


I hoping this is not an engine bug for this is an important demo for  
a commercial product! I can't afford to wait another year or months  
for a fix! Please share any solution thats not too badly a hack.


Thank you. :-)

specs:
10.4.10, ibook g4 1.42mhz, 1g ram
menubar made via Rev menubar tool

Shalom, Andrew
___
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


I just bit the bullet and bought the Studio Bundle

2008-01-16 Thread Jim Schaubeck
I'm a novice at RunRev but I do enjoy creating applications.  I wish I was
experienced enough to do it for a living (I'm getting there)

 

Some people like to read a good book.I like to use RunRev.for hours

 

Looking forward to the bundle

 

Jim Schaubeck.

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


Re: Rev on OLPC Sugar OS?

2008-01-16 Thread Tim Shields
Hi there,

We have tested Rev on XO in the office, and I can report that
standalone applications work without any (known) problems - as long as
you keep in mind the limitations of the XO Sugar Windowing system.

XO uses the Matchbox window manager. This window manager ALWAYS has
all windows fullscreen, with the exception of Modal windows. As a
result of this multi-window application will not appear correctly -
each window (or stack) will appear fullscreen and you have to flip
between them.

You can develop apps for the OLPC using Rev very effectively though if
you just use a single stack that is designed to the resolution of the
OLPC screen ( 1200x900 I believe).

On a similar note : Rev also works on the Asus Eee straight out of the
box :-)

Best regards,

Tim.


On 10 Jan, 17:29, viktoras didziulis <[EMAIL PROTECTED]> wrote:
> try LiveCD:http://wiki.laptop.org/go/LiveCd. I tried running Revolution
> and apps compiled with it on Puppy Linux. It worked there... There is
> probably no reason why it shouldn't run on this XO Sugar thing :-)
>
> Best wishes
> Viktoras
>
>
>
> John Patten wrote:
>
> > Hi All!
>
> > Just curious...
>
> > How possible would it be, now that Rev is also fairly Linux capable, would 
> > it be to get a version of Rev to work on the OLPC XO Sugar driven laptop?
>
> > Thank  You!
>
> > John Patten
>
> > ___
> > use-revolution mailing list
> > [EMAIL PROTECTED]
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences:
> >http://lists.runrev.com/mailman/listinfo/use-revolution
>
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> 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: failing to find printer from ide in linux

2008-01-16 Thread ShieldsOnTour
Hi Peter,

What are the results when you do the following :

In Rev, enter the command :

put the availablePrinters

in the message box.

Also, from an XTerm, what happens when you enter the following :

lpstat -a

Thanks,

Tim.



On 7 Jan, 08:10, Peter Alcibiades <[EMAIL PROTECTED]>
wrote:
> Rev seems not to find the printer.  Using the IDE in 2.6.1 the attempt to
> print crashes it.  Using the IDE in the latest beta, it brings up a screen
> where the printer is not found.  Its not a system problem, since everything
> else finds the printer.  Is there some place where you have to tell Rev
> (either version) where the printers are or which one to use?
>
> Peter
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> 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: cancel a wait

2008-01-16 Thread Chris Sheffield
Thanks for the suggestion Eric. That probably would work.  
Unfortunately, it would probably require a fairly big code rewrite in  
order to accomplish it, which I was hoping to avoid. But maybe that's  
my only option.



On Jan 16, 2008, at 11:00 AM, Eric Chatonet wrote:


Hi Chris,

Instead of using a 'wait until the sound is "done" with messages",  
could you just set a flag to true on playstarted and set it to false  
on playstopped?
And use this flag (a local script var, a custom prop, etc.) to act  
as you want it to work?


___
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: importing a bunch of files

2008-01-16 Thread Eric Chatonet

Well :-)
You can also set a specific custom property set with custom  
properties the name of which does not matter and parse it:
In each custom property, line 1 will be the path and line 2 to -1  
contents :-)


Le 16 janv. 08 à 18:51, Thierry a écrit :



Le 16 janv. 08 à 17:39, Eric Chatonet a écrit :


Bonjour Thierry,

Why don't you store directly your text files into custom  
properties, the name of which would be the path?


Why not

Ok, it's a mix solution from the 2 I exposed :-)

Of course you have to replace spaces and slashes with some string  
that will not break the name of the custom prop into several  
parts :-)


Yes, I'm aware of that.
and it would be better to manage this  in the import function,  
running once,

when I build the final project.


BTW note that custom props names are limited to 255 chars but I  
assume it should be enough.


No, it could be more :-(
So, i have to split the path.
That's why I thought of nested groups.


Using fields will be cross platform straight on. With custom props  
you'll have to use macToIso or isoToMac to get the right text  
according to the platform.


Good point !
Thanks for this one, it will probably saved me some debug time :-)


Merci :-)
Bonne soiree


Le 16 janv. 08 à 17:25, Thierry a écrit :


Hi,

Another thread about kind of Database :-)


For a specific project, I need to implement this:

I have an arbitrary set of text files stored on the disk in an
arbitrary numbers of directories, within a root one, ie:

dirRoot/
dirRoot/f1
dirRoor/f2
dirRoot/dir2/f3
dirRoot/dir2/dir3/f4
dirRoot/dir4/f5
...

When it comes to deliver the project,
I want to import all theses files,
and the tree organization
inside a stack ( datas only stack ).

I'm thinking of mapping each directory
to a group; the first group would be named dirRoot,
dir2 and dir4 would become groups named dir2 and dir4,
 children of the first group,
dir3 a group inside dir2 group, etc...

and for the files, importing them in custom properties
of these groups with the same name as the original files.

Let say it could be a hundred files or even more

One extreme could be one group with a hundred properties,
another one a hundred  nested groups with one property for each  
group.


Do you think this is realistic to do so,
and what kind of pitfalls i can find on the way ?

Another solution could be to create as many text fields as files,
with each field named with the full path of the corresponding  
file. ?


Any hints or thoughts are welcome, before I jump into it



Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: cancel a wait

2008-01-16 Thread Eric Chatonet

Hi Chris,

Instead of using a 'wait until the sound is "done" with messages",  
could you just set a flag to true on playstarted and set it to false  
on playstopped?
And use this flag (a local script var, a custom prop, etc.) to act as  
you want it to work?


Le 16 janv. 08 à 18:27, Chris Sheffield a écrit :


Is there any way to cancel a wait command?

I've got a strange thing happening, and I'm just not sure how to  
get around it. In the app, the user has the ability to move back  
and forth between two certain cards. When the first card opens,  
some audio instructions start playing. After starting the player, I  
have a wait..with messages command to wait until the audio is done,  
and then of course the handler continues after that. If you move to  
that second card, the audio of the first card stops playing, and  
the second card displays and the audio there starts playing. This  
all works fine the first time. Here's the problem. If you go back  
to the first card before that wait...with messages finishes, then  
quickly forward to the second card again, things start to go wrong,  
as the wait's start stacking up or something, and certain things on  
the second card appear to not respond correctly, like an animation  
that plays. And there is also a field on the second card for  
entering text that doesn't respond until the wait's "catch up".


So I'm wondering, if a user moves to that second card before the  
audio of the first card finishes, is there some way to cancel that  
wait...with messages? Does that make sense? Let me know if I need  
to clarify.


Thanks,

Chris Sheffield
Read Naturally, Inc.




Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: Filenames again

2008-01-16 Thread Andre Garzia
Is this an application just for you, or you plan to distribute it ?

If it's just for you, then, you can try to hack your file access using
AppleScript, maybe it has a better unicode support.

Andre

On 1/16/08, Mark Smith <[EMAIL PROTECTED]> wrote:
> Hi all, I'm once again trying to deal with unicode and filenames
> again...
>
> This is on OS X.
>
> If I have a file that has a Japanese name:  "音楽ファイル
> を.mp3" (I wonder if that'll come out ok in everyone's mail!), it
> seems to be the case that this file effectively does not exist in any
> useful way for Revolution. It is not listed in 'the files', it's name
> is omitted from 'the detailed files', it can't be opened, copied or
> renamed. The finder seems to have no problem with it. Can anyone
> confirm this so I can abandon my current project before I've torn all
> of my hair out?
>
> Thanks,
>
> Mark___
> 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
>


-- 
http://www.andregarzia.com All We Do Is Code.
___
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: importing a bunch of files

2008-01-16 Thread Thierry


Le 16 janv. 08 à 17:39, Eric Chatonet a écrit :


Bonjour Thierry,

Why don't you store directly your text files into custom  
properties, the name of which would be the path?


Why not

Ok, it's a mix solution from the 2 I exposed :-)

Of course you have to replace spaces and slashes with some string  
that will not break the name of the custom prop into several parts :-)


Yes, I'm aware of that.
and it would be better to manage this  in the import function,  
running once,

when I build the final project.


BTW note that custom props names are limited to 255 chars but I  
assume it should be enough.


No, it could be more :-(
So, i have to split the path.
That's why I thought of nested groups.


Using fields will be cross platform straight on. With custom props  
you'll have to use macToIso or isoToMac to get the right text  
according to the platform.


Good point !
Thanks for this one, it will probably saved me some debug time :-)


Merci :-)
Bonne soiree


Le 16 janv. 08 à 17:25, Thierry a écrit :


Hi,

Another thread about kind of Database :-)


For a specific project, I need to implement this:

I have an arbitrary set of text files stored on the disk in an
arbitrary numbers of directories, within a root one, ie:

dirRoot/
dirRoot/f1
dirRoor/f2
dirRoot/dir2/f3
dirRoot/dir2/dir3/f4
dirRoot/dir4/f5
...

When it comes to deliver the project,
I want to import all theses files,
and the tree organization
inside a stack ( datas only stack ).

I'm thinking of mapping each directory
to a group; the first group would be named dirRoot,
dir2 and dir4 would become groups named dir2 and dir4,
 children of the first group,
dir3 a group inside dir2 group, etc...

and for the files, importing them in custom properties
of these groups with the same name as the original files.

Let say it could be a hundred files or even more

One extreme could be one group with a hundred properties,
another one a hundred  nested groups with one property for each  
group.


Do you think this is realistic to do so,
and what kind of pitfalls i can find on the way ?

Another solution could be to create as many text fields as files,
with each field named with the full path of the corresponding  
file. ?


Any hints or thoughts are welcome, before I jump into 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: importing a bunch of files

2008-01-16 Thread Randall Lee Reetz
Not only that but using your disc files as dat fields or even record will 
seriously overburden your file system's day to day efficiency.  You could 
easily add orders of magnitude to the number of files and directories on disc.. 
Seriously slowing down a lot of OS (and finder) functionality.  Be good to your 
disc.

-Original Message-
From: "Randall Lee Reetz" <[EMAIL PROTECTED]>
To: "How to use Revolution" 
Sent: 1/16/2008 9:38 AM
Subject: RE: importing a bunch of files

Wholy moly... The file system was definately NOT made to be a live data store.  
For one, disc IO is several orders of magnitude slower than memory IO.  Maybe 
soon a memory/file system meld will revolutionize computing, be we are about 30 
years behind this.  Retrieve your data from disc and unpack it ... Then do the 
reverse ... You can even do this in a background thread (in chunks on idle) all 
the time... But do your data work from within vars and custom props.  In the 
absence of native object inheritence handling in xtalk, it is tempting to use 
the file system's built in object tree (ontology) structure as an 
organizational tructure for data storage... But your question indiates a need 
to parse object heirarchies (a navigation algorithm) anyway, and once you have 
this its just as easy to use it to structure your data as use the file system 
for the same.  Am i helping you here?  It is sad that this level of data 
organization i not natively supported within xtalk (hint hint) but you have to 
roll your own... And that times every scripter = some serious waisted meat mips.

-Original Message-
From: "Thierry" <[EMAIL PROTECTED]>
To: "RevList" 
Sent: 1/16/2008 8:25 AM
Subject: importing a bunch of files

Hi,

Another thread about kind of Database :-)


For a specific project, I need to implement this:

I have an arbitrary set of text files stored on the disk in an
arbitrary numbers of directories, within a root one, ie:

dirRoot/
dirRoot/f1
dirRoor/f2
dirRoot/dir2/f3
dirRoot/dir2/dir3/f4
dirRoot/dir4/f5
...

When it comes to deliver the project,
I want to import all theses files,
and the tree organization
inside a stack ( datas only stack ).

I'm thinking of mapping each directory
to a group; the first group would be named dirRoot,
dir2 and dir4 would become groups named dir2 and dir4,
  children of the first group,
dir3 a group inside dir2 group, etc...

and for the files, importing them in custom properties
of these groups with the same name as the original files.

Let say it could be a hundred files or even more

One extreme could be one group with a hundred properties,
another one a hundred  nested groups with one property for each group.

Do you think this is realistic to do so,
and what kind of pitfalls i can find on the way ?

Another solution could be to create as many text fields as files,
with each field named with the full path of the corresponding  
file. ?

Any hints or thoughts are welcome, before I jump into it.

Regards,
Thierry


___
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: importing a bunch of files

2008-01-16 Thread Randall Lee Reetz
Wholy moly... The file system was definately NOT made to be a live data store.  
For one, disc IO is several orders of magnitude slower than memory IO.  Maybe 
soon a memory/file system meld will revolutionize computing, be we are about 30 
years behind this.  Retrieve your data from disc and unpack it ... Then do the 
reverse ... You can even do this in a background thread (in chunks on idle) all 
the time... But do your data work from within vars and custom props.  In the 
absence of native object inheritence handling in xtalk, it is tempting to use 
the file system's built in object tree (ontology) structure as an 
organizational tructure for data storage... But your question indiates a need 
to parse object heirarchies (a navigation algorithm) anyway, and once you have 
this its just as easy to use it to structure your data as use the file system 
for the same.  Am i helping you here?  It is sad that this level of data 
organization i not natively supported within xtalk (hint hint) but you have to 
roll your own... And that times every scripter = some serious waisted meat mips.

-Original Message-
From: "Thierry" <[EMAIL PROTECTED]>
To: "RevList" 
Sent: 1/16/2008 8:25 AM
Subject: importing a bunch of files

Hi,

Another thread about kind of Database :-)


For a specific project, I need to implement this:

I have an arbitrary set of text files stored on the disk in an
arbitrary numbers of directories, within a root one, ie:

dirRoot/
dirRoot/f1
dirRoor/f2
dirRoot/dir2/f3
dirRoot/dir2/dir3/f4
dirRoot/dir4/f5
...

When it comes to deliver the project,
I want to import all theses files,
and the tree organization
inside a stack ( datas only stack ).

I'm thinking of mapping each directory
to a group; the first group would be named dirRoot,
dir2 and dir4 would become groups named dir2 and dir4,
  children of the first group,
dir3 a group inside dir2 group, etc...

and for the files, importing them in custom properties
of these groups with the same name as the original files.

Let say it could be a hundred files or even more

One extreme could be one group with a hundred properties,
another one a hundred  nested groups with one property for each group.

Do you think this is realistic to do so,
and what kind of pitfalls i can find on the way ?

Another solution could be to create as many text fields as files,
with each field named with the full path of the corresponding  
file. ?

Any hints or thoughts are welcome, before I jump into it.

Regards,
Thierry


___
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


Filenames again

2008-01-16 Thread Mark Smith
Hi all, I'm once again trying to deal with unicode and filenames  
again...


This is on OS X.

If I have a file that has a Japanese name:  "音楽ファイル 
を.mp3" (I wonder if that'll come out ok in everyone's mail!), it  
seems to be the case that this file effectively does not exist in any  
useful way for Revolution. It is not listed in 'the files', it's name  
is omitted from 'the detailed files', it can't be opened, copied or  
renamed. The finder seems to have no problem with it. Can anyone  
confirm this so I can abandon my current project before I've torn all  
of my hair out?


Thanks,

Mark___
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


cancel a wait

2008-01-16 Thread Chris Sheffield

Is there any way to cancel a wait command?

I've got a strange thing happening, and I'm just not sure how to get  
around it. In the app, the user has the ability to move back and forth  
between two certain cards. When the first card opens, some audio  
instructions start playing. After starting the player, I have a  
wait..with messages command to wait until the audio is done, and then  
of course the handler continues after that. If you move to that second  
card, the audio of the first card stops playing, and the second card  
displays and the audio there starts playing. This all works fine the  
first time. Here's the problem. If you go back to the first card  
before that wait...with messages finishes, then quickly forward to the  
second card again, things start to go wrong, as the wait's start  
stacking up or something, and certain things on the second card appear  
to not respond correctly, like an animation that plays. And there is  
also a field on the second card for entering text that doesn't respond  
until the wait's "catch up".


So I'm wondering, if a user moves to that second card before the audio  
of the first card finishes, is there some way to cancel that  
wait...with messages? Does that make sense? Let me know if I need to  
clarify.


Thanks,

Chris Sheffield
Read Naturally, Inc.

___
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: importing a bunch of files

2008-01-16 Thread Eric Chatonet

Bonjour Thierry,

Why don't you store directly your text files into custom properties,  
the name of which would be the path?
Of course you have to replace spaces and slashes with some string  
that will not break the name of the custom prop into several parts :-)
BTW note that custom props names are limited to 255 chars but I  
assume it should be enough.
Using fields will be cross platform straight on. With custom props  
you'll have to use macToIso or isoToMac to get the right text  
according to the platform.


Le 16 janv. 08 à 17:25, Thierry a écrit :


Hi,

Another thread about kind of Database :-)


For a specific project, I need to implement this:

I have an arbitrary set of text files stored on the disk in an
arbitrary numbers of directories, within a root one, ie:

dirRoot/
dirRoot/f1
dirRoor/f2
dirRoot/dir2/f3
dirRoot/dir2/dir3/f4
dirRoot/dir4/f5
...

When it comes to deliver the project,
I want to import all theses files,
and the tree organization
inside a stack ( datas only stack ).

I'm thinking of mapping each directory
to a group; the first group would be named dirRoot,
dir2 and dir4 would become groups named dir2 and dir4,
 children of the first group,
dir3 a group inside dir2 group, etc...

and for the files, importing them in custom properties
of these groups with the same name as the original files.

Let say it could be a hundred files or even more

One extreme could be one group with a hundred properties,
another one a hundred  nested groups with one property for each group.

Do you think this is realistic to do so,
and what kind of pitfalls i can find on the way ?

Another solution could be to create as many text fields as files,
with each field named with the full path of the corresponding  
file. ?


Any hints or thoughts are welcome, before I jump into it.

Regards,
Thierry


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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


Jan, Dick, Mark, thanks!

2008-01-16 Thread Peter Alcibiades
Thanks so much guys for this.  One sees how easy it can be when you know how.  
I will hack away and try these.  And actually, they are a lot more terse than 
what I'm getting in awk.

Its sort of academic about 2.6.1 and linux printing now, since we are moving 
to 2.9, but it is really weird.  On my debian system, the printing doesn't 
work at all, and I only get a few of the fonts, but the ones that can be used 
look quite good in the sizes they can be used in, which is not all by any 
means.

On Mandriva 2006, there were more (but not all) fonts, and they all looked 
good in all sizes.  Don't know about printing.

These were both running gnome.

Now on Mandriva 2008, running KDE, we have all the installed fonts, which is 
good, but they look terrible!  Jagged or blurry.  And here unaccountably 
printing seems to work though without bringing up any print dialogues from 
the system.

What a relief it will be when 2.9 final hits!

Peter

___
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: handler: error in statement

2008-01-16 Thread mfstuart

So here's the exact RunRev error message:

Type - Handler: error in statement
Object - Results
Line - go card "EditRecord" of stack "names"
Hint - mouseDoubleUp

When I click the "Script" button from the RunRev Errors dialog box, it
hilights the following part of the script...
go card "EditRecord" of stack "names"

And I am using the global gRecord  statement.
On the "EditRecord" card, I have the following scripts:

global dbConnID,gRecord

on openCard
  getRecord
  setFields
end openCard

on closeStack
  --no script here
end closeStack

on getRecord
if gRecord is a number then
put "SELECT NameID,FirstName,LastName,Address,City,State,ZipCode,PhoneNo
FROM subprimeNames WHERE NameID = " & gRecord into rSQL
put revDataFromQuery(,,dbConnID,rSQL) into theRecord
set itemDel to comma
put item 1 of theRecord into vNameID
put item 2 of theRecord into vFirstName
put item 3 of theRecord into vLastName
put item 4 of theRecord into vAddress
put item 5 of theRecord into vCity
put item 6 of theRecord into vState
put item 7 of theRecord into vZipCode
put item 8 of theRecord into vPhoneNo
  end if
end getRecord

on setFields
  put vNameID into fld "fNameID"
  put vFirstName into fld "fFirstName"
  put vLastName into fld "fLastName"
  put vAddress into fld "fAddress"
  put vCity into fld "fCity"
  put vState into fld "fState"
  put vZipCode into fld "fZipCode"
  put vPhoneNo into fld "fPhoneNo"
end setFields

So what causes RunRev to stop and raise the error?

Regards,
Mark Stuart



mfstuart wrote:
> 
> Hi all,
> 
> This error (see subject) happens when I double-click on a table field of
> data that has an "on mouseDoubleUp" in it.
> The idea of the script is to get the ID value (item 1) and place it into a
> global variable.
> Then go to a card to edit the record.
> 
> Here's the RunRevScript:
> 
> on mouseDoubleUp
>   set the itemDel to tab
>   put item 1 of the selectedText into gRecord
>   go card "EditRecord" of stack "names"
> end mouseDoubleUp
> 
> Anything wrong with this script?
> 3rd line causes the error.
> 
> With some testing, I did the following to get this to break - to cause the
> above error:
>   Created a New Stack
>   placed a button on the card
>   created a card named: "EditRecord"
>   added a script for the button: "on mouseUp"
>script:
>  go card "EditRecord"
> That's it, and it works.
> 
> As soon as I put this script (go card...) into the table field and use it
> there, the above error occurs.
> Any help is much appreciated.
> 
> Thanx,
> Mark Stuart
> 
> 

-- 
View this message in context: 
http://www.nabble.com/handler%3A-error-in-statement-tp14860651p14884445.html
Sent from the Revolution - User mailing list archive at Nabble.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


importing a bunch of files

2008-01-16 Thread Thierry

Hi,

Another thread about kind of Database :-)


For a specific project, I need to implement this:

I have an arbitrary set of text files stored on the disk in an
arbitrary numbers of directories, within a root one, ie:

dirRoot/
dirRoot/f1
dirRoor/f2
dirRoot/dir2/f3
dirRoot/dir2/dir3/f4
dirRoot/dir4/f5
...

When it comes to deliver the project,
I want to import all theses files,
and the tree organization
inside a stack ( datas only stack ).

I'm thinking of mapping each directory
to a group; the first group would be named dirRoot,
dir2 and dir4 would become groups named dir2 and dir4,
 children of the first group,
dir3 a group inside dir2 group, etc...

and for the files, importing them in custom properties
of these groups with the same name as the original files.

Let say it could be a hundred files or even more

One extreme could be one group with a hundred properties,
another one a hundred  nested groups with one property for each group.

Do you think this is realistic to do so,
and what kind of pitfalls i can find on the way ?

Another solution could be to create as many text fields as files,
with each field named with the full path of the corresponding  
file. ?


Any hints or thoughts are welcome, before I jump into it.

Regards,
Thierry


___
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: handler: error in statement

2008-01-16 Thread Eric Chatonet

Hi Mark,

As said Mark Schonewille, getting the complete error message would be  
better :-)

But here are some clues:
I assume that gRecord is declared :-)
I assume also that 'there is a card "EditRecord" of stack "names".

If it is the case, I suspect that you run some code at openCard or  
preOpencard of "EditRecord":
Probably the error comes from: or gRecord does not contains an  
expected value or there is some error in the code that manipulates  
gRecord.

Hope this helps.

Le 16 janv. 08 à 03:34, mfstuart a écrit :

This error (see subject) happens when I double-click on a table  
field of

data that has an "on mouseDoubleUp" in it.
The idea of the script is to get the ID value (item 1) and place it  
into a

global variable.
Then go to a card to edit the record.

Here's the RunRevScript:

on mouseDoubleUp
  set the itemDel to tab
  put item 1 of the selectedText into gRecord
  go card "EditRecord" of stack "names"
end mouseDoubleUp

Anything wrong with this script?
3rd line causes the error.

With some testing, I did the following to get this to break - to  
cause the

above error:
  Created a New Stack
  placed a button on the card
  created a card named: "EditRecord"
  added a script for the button: "on mouseUp"
   script:
 go card "EditRecord"
That's it, and it works.

As soon as I put this script (go card...) into the table field and  
use it

there, the above error occurs.
Any help is much appreciated.

Thanx,
Mark Stuart


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: handler: error in statement

2008-01-16 Thread Klaus Major

Hi Mark


Hi all,

This error (see subject) happens when I double-click on a table  
field of

data that has an "on mouseDoubleUp" in it.
The idea of the script is to get the ID value (item 1) and place it  
into a

global variable.
Then go to a card to edit the record.

Here's the RunRevScript:


Try this:


on mouseDoubleUp


## !!!
global gRecord


  set the itemDel to tab
##  put item 1 of the selectedText into gRecord


  put item 1 of the selectedText OF ME into gRecord


  go card "EditRecord" of stack "names"
end mouseDoubleUp

Anything wrong with this script?
3rd line causes the error

As soon as I put this script (go card...) into the table field and  
use it

there, the above error occurs.
Any help is much appreciated.

Thanx,
Mark Stuart


Regards

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


Re: handler: error in statement

2008-01-16 Thread Mark Schonewille

Hi Mark,

Could you please post the exact and complete error message?

Best regards,

Mark Schonewille

--

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

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 16-jan-2008, om 3:34 heeft mfstuart het volgende geschreven:



Hi all,

This error (see subject) happens when I double-click on a table  
field of

data that has an "on mouseDoubleUp" in it.
The idea of the script is to get the ID value (item 1) and place it  
into a

global variable.
Then go to a card to edit the record.

Here's the RunRevScript:

on mouseDoubleUp
  set the itemDel to tab
  put item 1 of the selectedText into gRecord
  go card "EditRecord" of stack "names"
end mouseDoubleUp

Anything wrong with this script?
3rd line causes the error.

With some testing, I did the following to get this to break - to  
cause the

above error:
  Created a New Stack
  placed a button on the card
  created a card named: "EditRecord"
  added a script for the button: "on mouseUp"
   script:
 go card "EditRecord"
That's it, and it works.

As soon as I put this script (go card...) into the table field and  
use it

there, the above error occurs.
Any help is much appreciated.

Thanx,
Mark Stuart



___
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: [TIP] Blank Option button

2008-01-16 Thread Jeanne A. E. DeVoto

At 4:35 AM -0500 1/16/2008, [EMAIL PROTECTED] wrote:

Here's one for your Scripter's Scrapbook:

How to blank the label of an option btn without resorting to SPACE...

set the label of btn "MyOptionBtn" to null

So far as I am aware, this is an undocumented feature.


No, it's documented. "null" is a synonym for the null character, ASCII zero.

I'm not sure I'd set a property to null. It may work fine now, but it 
strikes me as... dangerous. (cue ominous background music) Nulls are 
used to terminate strings in C, and it's possible to have unexpected 
results if some Rev routine handles a string containing a null 
without escaping it first.


What's the objection to setting it to space?
--
Jeanne A. E. DeVoto, Transcript Language Curmudgeon
[EMAIL PROTECTED]
http://www.jaedworks.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: Many Cards Versus One Card and a List Field

2008-01-16 Thread Jan Schenkel
--- Peter Alcibiades <[EMAIL PROTECTED]>
wrote:
> 
> [snip]
> 
> Then I will do printing by going to full screen and
> doing Print Desktop from 
> the shell.  What a horrible kluge!  Awk and a text
> editor for printing has to 
> be better than this.  It would be embarassing if the
> people who will use it 
> were to find out just what a kluge it is.
> 
> Peter
> 

Couldn't you use the 'revPrintText' or 'revPrintField'
commands to output your report?


Or, if you wanted pin-point precision formatting, you
could use Quartam PDF Library and print the resulting
PDF file.


Just a thought,

Jan Schenkel.

Quartam Reports & PDF Library for Revolution


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


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
___
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: Many Cards Versus One Card and a List Field

2008-01-16 Thread Mark Smith
Sorry, I forgot that Rev won't allow an item of a word, so we have to  
factor the month out to another function:


This is tested on some made up data, 20,000 records

function getReport pData
   repeat for each line L in pData
  put word 4 of L & getMonth(word 5 of L) into tKey
  add word 3 of L to tTotals[tKey]
   end repeat
   return tTotals
end getReport

function getMonth pDate
   set the itemdelimiter to "/"
   return line (item 2 of pDate) of the monthnames
end getMonth

This return an array where the keys are the category/month ids in  
about 100 ms on this macintel laptop.



Best,

Mark
___
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: Many Cards Versus One Card and a List Field

2008-01-16 Thread Mark Smith

Peter, this is untested, but might work reasonably quickly:

on getReport
put file dataFile into tData
   set the itemdelimiter to "/"
   repeat for each line L in tData
  put word 4 of L & line (item 2 of word 5 of L) of the  
monthnames into tKey

  add word 3 of L to tTotals[tKey]
   end repeat
   repeat for each line L in the keys of tTotals
  put tTotals[L] into fld L
   end repeat
end getReport


Best,

Mark

On 16 Jan 2008, at 06:47, Peter Alcibiades wrote:

I have to admit to not having been able to make Rev work as a  
storage and
retrieval language and am getting close to giving up after a couple  
of weeks
hard trying.  Its mostly the documentation probably.  It must be  
possible
since people on the list are doing it, but there seems no way to  
find out how

from the documentation.

The problem is not storage.  Nor is it retrieval.  It is reporting.

Its a childishly simple problem.  There is a file with 15k  
records.  Tab

delimited.  Each record has five fields and is of the form:

number  eg 123
description  eg Pen, Pencil
price eg 2.00
category eg AA, AB...
date eg  12/4/2008, 21/5/2008 (UK style)

We then have 30 fields, which are the combination of a category and  
a month.
So for instance we need to look at each record, if and only if it  
has both AA
in item 4 and /4/ in item 5,  then add the price item 3 to field  
AAApril.  If

and only if it has both AA and /5/ then add it to AAMay, and so on.  6
months, five categories = 30 fields..

Its a five minute job in a spreadsheet, but its defeated me for a  
couple of

weeks now in Rev.

There must be a way of combining switch, break and if-then to do  
this.The

different ways I've tried sometimes go into loops.  Sometimes they
accumulate, as if case is leading it to retain previous totals and  
add new

match totals to them.  Sometimes they put all zeros into the fields.
Sometimes half the fields go blank when I know there are matches.   
Sometimes
it records half of the AAs, or a quarter.   Sometimes it works with  
some of

the months, or some of the categories.

What is also deeply discouraging is that even can one get through  
this, there

will be the problem of how to make Rev print it in Linux.  This seems
insuperable.  It doesn't see the installed printers.  Like it  
doesn't see the
installed fonts.  No idea why, everything else does.  Maybe going  
out to the
shell and using a2p will work?  Maybe a different distro than  
debian?   But

this could well be another black hole

Peter
___
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: Many Cards Versus One Card and a List Field

2008-01-16 Thread Randall Lee Reetz
Maybe i can offer an explanation.  I use xtalk n situations that are sometimes 
much easier to accomplish in other more highly specialized tools because i can 
then extend my use of that solution in almost unlimited ways. I can connect the 
data to other tools i have built, extend it in knew ways, the walls i come up 
against are more frequently my own imagination rather than what some product 
manager at filemaker decided at two pm ten years ago.  Also, i learn more and 
more about the structure of data and logic and use methods and semantics and my 
own abilities of solving problems.  But mainly i can work everythiing from 
within a single tool.  Keeps my world together.


-Original Message-
From: "Peter Alcibiades" <[EMAIL PROTECTED]>
To: "How to use Revolution" 
Sent: 1/16/2008 1:37 AM
Subject: Many Cards Versus One Card and a List Field

I seem to have cracked this one now, by brute force.  But the solution really 
shows how much this must be the wrong tool for the job - unless there is a 
much better way, which there probably is, and I'd love to hear about.  And 
also would be interested to hear how one was supposed to find it!

For each of the 30 cells, I'm just doing two filters on the file in a temp 
variable till the temp variable only contains records of the appropriate 
kind.  Then add the relevant items up into the right cell.  No switch, no 
match, no branching.

Then clear the variable by reloading the whole file into it, from another 
variable to avoid endless disk reads, redo the filter with different criteria 
for a different cell, and so on.  So this is basically 30 snippets of script 
to produce 30 different subsets of the file, one after another, one for each 
cell.

On a 2G Athlon, you watch it going through its paces  But it does work 
after a fashion.

Then I will do printing by going to full screen and doing Print Desktop from 
the shell.  What a horrible kluge!  Awk and a text editor for printing has to 
be better than this.  It would be embarassing if the people who will use it 
were to find out just what a kluge it is.

Peter
___
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: Many Cards Versus One Card and a List Field

2008-01-16 Thread Dick Kriesel
On 1/15/08 10:47 PM, "Peter Alcibiades" <[EMAIL PROTECTED]>
wrote:

> Its a childishly simple problem.  There is a file with 15k records.  Tab
> delimited.  Each record has five fields and is of the form:
> 
> number  eg 123
> description  eg Pen, Pencil
> price eg 2.00
> category eg AA, AB...
> date eg  12/4/2008, 21/5/2008 (UK style)
> 
> We then have 30 fields, which are the combination of a category and a month.
> So for instance we need to look at each record, if and only if it has both AA
> in item 4 and /4/ in item 5,  then add the price item 3 to field AAApril.  If
> and only if it has both AA and /5/ then add it to AAMay, and so on.  6
> months, five categories = 30 fields..

Hi, Peter.  Here's a technique that should work pretty fast.  Does it work
for you? 

on foo
  put "AA,AB,AC,AD,AE" into tCategories
  put "January,February,March,April,May,June" into tMonths
  repeat for each item tCategory in tCategories
repeat for each item tMonth in tMonths
  put 0 into field (tCategory & tMonth)
end repeat
  end repeat
  set itemdelimiter to tab
  put URL "file:foo.txt" into tRecords
  repeat for each line tRecord in tRecords
put item 5 of tRecord into tDate -- d/m/y
replace "/" with space in tDate
add item 3 of tRecord to tArray[item 4 of tRecord,word 2 of tDate]
  end repeat
  set itemdelimiter to comma
  repeat for each key tKey in tArray
put item 1 of tKey into tCategory
put item 2 of tKey into tMonthNumber
put item tMonthNumber of tMonths into tMonth
put tArray[tKey] into field (tCategory & tMonth)
  end repeat
end foo

Typical disclaimer: It's not tested, but at least it compiles.

-- Dick 


___
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


Many Cards Versus One Card and a List Field

2008-01-16 Thread Peter Alcibiades
I seem to have cracked this one now, by brute force.  But the solution really 
shows how much this must be the wrong tool for the job - unless there is a 
much better way, which there probably is, and I'd love to hear about.  And 
also would be interested to hear how one was supposed to find it!

For each of the 30 cells, I'm just doing two filters on the file in a temp 
variable till the temp variable only contains records of the appropriate 
kind.  Then add the relevant items up into the right cell.  No switch, no 
match, no branching.

Then clear the variable by reloading the whole file into it, from another 
variable to avoid endless disk reads, redo the filter with different criteria 
for a different cell, and so on.  So this is basically 30 snippets of script 
to produce 30 different subsets of the file, one after another, one for each 
cell.

On a 2G Athlon, you watch it going through its paces  But it does work 
after a fashion.

Then I will do printing by going to full screen and doing Print Desktop from 
the shell.  What a horrible kluge!  Awk and a text editor for printing has to 
be better than this.  It would be embarassing if the people who will use it 
were to find out just what a kluge it is.

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


[TIP] Blank Option button

2008-01-16 Thread FlexibleLearning
Here's one for your Scripter's Scrapbook:
 
How to blank the label of an option btn without resorting to SPACE...
 
set the label of btn "MyOptionBtn" to null


So far as I am aware, this is an undocumented feature. Doing a Quick Search  
for 'null' in Rev throws it into a bit of a spin!
 
/H
FLCo
www.ssBk.co.uk
Home of the Scripter's Scrapbook
 



   
___
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: Constructing and calling a handler as "do"

2008-01-16 Thread Randall Lee Reetz
The other caution i must issue here is that the internal scripting of the 
editor for instance might be written in odd ways so that it is distinguishable 
from user code and objects... So if your new wacko code practices happen to 
mimick these more official wacko styles, then you could walk your self into a 
situation not unlike an auto-immune cascade in biology. 


-Original Message-
From: "Kay C Lan" <[EMAIL PROTECTED]>
To: "How to use Revolution" 
Sent: 1/15/2008 11:44 PM
Subject: Re: Constructing and calling a handler as "do"

On Jan 16, 2008 11:15 AM, Björnke von Gierke <[EMAIL PROTECTED]> wrote:

> Although this does not work for handlers,


Yes, I appreciate all that, and I've definitely done something similar on
many occasions, but what I like about Randall's approach is that it can work
for handlers and custom properties:-) Which brings and added bonus.

My gray matter definitely doesn't work like it use to and I've since found
it very very advantageous to name things exactly the same to avoid confusion
- so a mySQL column might be named the same as a field or custom property;
or fields may contain scripts with the name of the field matching the name
of the handler. mySQL (and probably other dbs) doesn't allow multi-word
column names, plus there are other traps if you use multi-word names in Rev,
like if you forget to quote.

Basically what I like most about Randall's approach is the use of 'item'.
Myself, and clearly others, have successfully used prefixes, char and word,
but have not extended the concept to  'item'.
___
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: Constructing and calling a handler as "do"

2008-01-16 Thread Kay C Lan
On Jan 16, 2008 11:30 AM, Richard Gaskin <[EMAIL PROTECTED]> wrote:

> Kay C Lan wrote:
> > ...midWord capitalization for me dates back to the origin of
> HyperCard...
>
> Oh, it's much, much older than that, older than the Pascal that helped
> inspire it
>

Inspire, I like that word. I'm often amazed and inspired by how a single job
can be done multiple ways in Rev.  I really like the little scripting
'friendlies' that occasionally appear on List to see how others skin the
cat. A recent one was about the use of arrowKey. Others offered solutions
using rawKeyUp, mouseUp/Down but I believe Richard, you were award the
'elegant' solution prize by the use of selectionChanged. Inspiring. Not
conventional, but some excellent lateral thinking.

I never got into Pascal, C or most any other language as you need to think
too much in compuspeak and not enough in English. So for me, naming
conventions date back to the origins of HC.

Whilst conventions are logically necessary, how uninspiring would it be to
stick with dated conventions when new technologies bring us new capabilities
which lateral thinking people put to good use that may suggest that a new
convention should be written to inspire new comers to the broader horizons
of todays xTalk rather than the narrow restriction of yesteryears languages.

And just to finish off this tangent. Have you noticed the influx of new
posters on this List. Is that a function of the super bundle? (IMO it seemed
the SB was like preaching to the converted, ie Rev wasn't at MacWorld - but
hopefully I'm wrong) Whether they are or not, I'm certainly looking forward
to some more inspired lateral uses of Rev.
___
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