Re: Compiling externals: strcasestr etc.
Hi Thomas, Here is a C function to change the case of a text. voidmyLowercaseText( char*text) { CFStringRef theString; theString = CFStringCreateWithCString (kCFAllocatorDefault,text,kCFStringEncodingMacRoman); if( theString ) { CFStringLowercase((CFMutableStringRef)theString,NULL); CFStringGetCString(theString,text,strlen(text) +1,kCFStringEncodingMacRoman); CFRelease(theString); } return; } Hope it helps Thierry On 2007, Mar 12, at 08:24, Thomas Fischer wrote: Hello, while compiling one external using Mac OS 10.4.8, XCode 2.4.1 and the ExternalsEnvironmentV2 provided by the newsletter I obtained the error: error: `strcasestr' undeclared (first use this function) Can anybody explain this? strstr works without a problem, and the external compiles in an older setting of of the XCode environment too. From a related problem an additional question: LowercaseText has been deprecated, but the Unicode-savvy alternative CFStringLowercase with a CFMutableString seems pretty complicated. Does anybody know a simple method to make parameters like AND or even case-insensitive in an external functions? Best regards Thomas Fischer ___ 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 2.7.4 standalone versions
I have tested an universal app made with Rev on an old iMac G3 with 10.2.8 and it does work. Thierry On 2006, Oct 3, at 05:56, [EMAIL PROTECTED] wrote: Perhaps someone can clarify whether the Universal Binary version of Rev standalones will work on all versions of OS X or only on OS 10.3.9 and above. There seems to be a difference of opinion in the forum. If Universal Binary will work on all versions of OS X, then Universal Binary would appear to be the only standalone for OS X and Intel that one needs to include in distributing a built program.I tried researching it but could not find specific reference to requiring as high as OS 10.3.9. I'll try to test it on an older computer. Steve Goldberg ___ 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: Math challenge thing
On 2006, Jul 30, , at 20:03, J. Landman Gay wrote: I had to write a loop the other day that cycled around a list of 4 numbers. Usually when I need to do that, I like to use the following, where x is the current number that I want to increase: put (x mod 4)+1 into x This goes around and around, giving a value of x between 1 and 4. But this time I needed to include zero. I need a series 0,1,2,3. No matter how I tinkered, I couldn't get a zero out of it. I wrote it the long way: if x = 3 then put 0 into x But I got curious. Is there a way to do it the cool way? I'm a math idiot so maybe it's easy. put (x+1) mod 4 into x -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com Thierry Arbellot www.tokitest.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
beta testers for unicode needed
Hello all, As you may know, Revolution is not able to open a file if the path or the filename contains unicode characters. Then, I've developed an external to work around this problem and use it in the last version of my shareware Toki TC. I successfully tested it with Korean characters. To complete the test, can someone on the list try with other languages, that are not western languages, and let me know the result ? What you need: - a Mac with OS X 10.2 or higher (should work in Mac Intel but not tested yet) - download Toki TC from this link http://perso.orange.fr/hal/tokitc1.3b1.zip - a movie with unicode characters in the path and/or the filename - start Toki TC and open the movie Toki TC should be able to open the movie, play it and display its filename in the window title. What doesn't work (yet): - display the name in the open recent file menu - drag and drop the file in the player I plan to make a Windows version, and then share the externals with the community. Thank you, 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: Play a Player Backwards
check the playRate property to go backward: set the playRate of player myPlayer to -1 Thierry On 2006, Jun 3, , at 21:56, Bridger Maxwell wrote: Hey, Does anyone know a way that I can play a player backwards? It is a player with an external reference. Importing the videos would make my stack way to big so it has to stay as a player. I thought there was a simple property, but I can't find it. Thank You, Bridger ___ 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: Problems downloading accented characters from a web page
On 2006, May 20, , at 03:55, Sarah Reichelt wrote: Hi All, I have a routine that downloads a web page and extracts certain text. This works fine except when the characters are accented. I'm not sure how well the characters will transfer in the email, but I'll try to give an example: Accented e (é) - I never could remember which was an acute and which was a grave but it's numToChar(142). On the web page viewed in a browser and checking the source, it looks perfect. When I download that page into a Rev, the é becomes √(c) i.e. square root copyright, charToNum 195 169. I've tried using ISOtoMac and uniDecode and the 2 combined in various ways, but I can't get it to give me the correct accented e. Any ideas? TIA, Sarah it is utf8 try unidecode(uniencode(numToChar(195) numToChar(169),utf8)) it returns é 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: QT path issues
On 2006, May 16, , at 20:36, Richard Gaskin wrote: Thierry Arbellot wrote: I've developed a workaround for this problem, and made a sample stack. You can use it freely. http://www.digital-salade.com/toki/download/player.rev Tested with ƒ and it works. Indeed it does -- thank you! It's frightening that it takes a 7k script to work around this problem, but impressive that you were able to identify the root issue and solve it so completely. Good job. If you come to Malta for ERC the first round's on me. :) -- Richard Gaskin Managing Editor, revJournal ___ Rev tips, tutorials and more: http://www.revJournal.com Not completely, it doesn't work with double byte characters, like Korean and Japanese. I found this solution by opening a movie in Firefox and copying the encoded URL into the player filename. It should be a better solution, without transcoding table, and shorter script, but I was not able to find it. If someone can make it work with Korean characters, I will be very interested. And unfortunately, I will not be available to come to Malta. I wish we will have the chance to meet somewhere in LA or Paris and have a drink. Cheers, 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: QT path issues
I've developed a workaround for this problem, and made a sample stack. You can use it freely. http://www.digital-salade.com/toki/download/player.rev Tested with ƒ and it works. Thierry On 2006, May 15, , at 22:36, Richard Gaskin wrote: I have a path to a move file which plays well, until I insert a ƒ character (Option-F on Mac) into one of the folder names -- then I get a can't create movie reference error. I'm already using the file: trick to set the file path -- here's the code: put file://pMovieFile into tPath replace space with %20 in tPath set the fileName of player QT to tPath What else can I do to account for such anomalies in the path? -- Richard Gaskin Lead Programmer, ResearchWare Inc. __ [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Character Encoding
This is UTF-8 encoding using uniEncode and/or uniDecode functions, you should be able to translate to extended ascii. I hope it helps, Thierry On 2006, Apr 29, , at 14:39, Mark Smith wrote: Does anyone know which character encoding Apple uses to display strings in iTunes? I'm reading some text info from the m4a tags produced by iTunes, and there seem to be some double-byte characters in there. I have no experience of this, and know nothing, so I'm grasping at straws. As an example of what I get, the 'Esoterik' (where the 2nd (lower case) e should have an acute accent over it, I'm getting: Esot char value 195char value 169 rik what it should be, under whatever character set Rev defaults to on Mac OSX, it should be a single char of value 142. Any help on this would be great. 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 ___ 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: quicktime sizes
not tested, but open the movie in a player and try the formattedHeight and formattedWidth properties. hope it helps Thierry On 2006, Apr 18, , at 22:06, Wally Rodriguez wrote: I have an emergency request that I need to implement right away and I was wondering if anyone here might have a quick fix. I need to be able to find out the height and width of a quicktime movie in order to generate an html shell to display such movie. Is there a quick way to get this information without resorting to externals, etc.? Thanks in advance ___ 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: Can't delete standalone in Windows
Hi Steve, I had sometimes the same problem when I copy the standalone from the Mac to the PC through the network (I connect from the Mac and the PC is mounted as a network disk). MacOS may lock the copied file on the PC. I must eject the PC to unlock the file. Hope it helps Thierry On 2006, Mar 14, , at 21:09, [EMAIL PROTECTED] wrote: Recently I've noted a problem on building standalones (on my Mac OS X using Rev 2.7) and moving them to Windows. While the standalones work on Windows, if I try to move them to the trash in Windows, I get a message: Cannot delete (the program). Access is denied. Make sure the disk is not full or write protected and that the file in not currently in use. The problem is that the file is not in use, I have about 200gb of disk space, there is no password needed to access the computer, and I do not have this problem with other kinds of files. The only way I can trash the files is to restart the computer and try again. I do not know if this is a problem with Revolution or with my Windows computer. Any suggestions? Thanks. Steve Goldberg ___ 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: Thousands Separator on OSX
here is a script to get the decimal separator: do get item 2 of (1.1 as string) as appleScript put the result into theDecimalSeparator replace quote with empty in theDecimalSeparator Thierry On 2006, Mar 11, , at 22:54, Flavel Steve wrote: On 12/03/2006, at 1:57 AM, J. Landman Gay wrote: Hi Klaus This is what I get from pasting your code 2006-03-11 19:06:46.564 defaults[604] The domain/default pair of (kCFPreferencesAnyApplication, NSThousandsSeparator) does not exist I get the same thing. I think that means the user has not set a separator in the system prefs yet, so there is no specific character identified. Probably the script could assume the generic default separator, a comma, is in use. I changed the settings to those typical of Germany, but I still get the does not exist message. Is it possible to get the thousand separator, currency symbol and decimal symbol? Steve ___ 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: Thousands Separator on OSX
Hi all, I have seen this problem with some domain. Open the international panel in system preferences and change the thousand separator, it should create the domain/default pair. Hope it helps Thierry On 2006, Mar 11, , at 12:27, Klaus Major wrote: Hi Steve, Hi Klaus This is what I get from pasting your code 2006-03-11 19:06:46.564 defaults[604] The domain/default pair of (kCFPreferencesAnyApplication, NSThousandsSeparator) does not exist ??? Very strange... What system are you using? A (stock) german system 10.4.5 Any X/Unix guys/gals out there that could shed some light on this phenomenon? Steve 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 ___ 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: Wrong Files Size Returned
under OS X, you can use get shell(ls -l) Thierry On 2006, Jan 27, , at 13:48, [EMAIL PROTECTED] wrote: Hi Dan i use the diruse.exe utility from the resource kit in NT to find folder's sizes. Works very reliably and doesn't block rev when counting... http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/ diruse-o.asp Surely there is an applescript or shell equivalent for osx or unix (du as mentinoed in link above)... cheers Xavier [EMAIL PROTECTED] wrote on 27/01/2006 13:30:14: Hi, After writing a routine to evaluate the size of the content of a folder I found that the total was WRONG! Every file size, returned by files function (either detailed or long), over 2 gig is wrong. Not only the byte count is wrong but the number returned is negative! (incrasing the error when ever added...) On file whose exactly 2 gig the byte size is right but it is still negative. And this situation is happening on MacOS and Win32 version. (as stack or application) Any body has ever encounter this situation? Is any body has a workaround? Thanks, Dan ___ 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 - To make communications with Clearstream easier, Clearstream has recently changed the email address format to conform with industry standards. The new format is '[EMAIL PROTECTED]'. Visit us at http://www.clearstream.com IMPORTANT MESSAGE Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries. END OF DISCLAIMER ___ 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: Standalone Quit Menu
Hi Steve, 2 suggestions: - put the shutdownrequest handler in the script of the main stack - if you have more than one stack file, trap the shutdownrequest message in each stack file Hope it helps Thierry On 2006, Jan 20, , at 04:35, Steve Wagenseller wrote: I'm trapping the Quit message from the menubar via a shutdownrequest handler, but in the standalone, something curious occurs. The first time I choose Quit I can get the trap script to run (basically, an Are you sure? prompt along with some save options). The second time I choose Quit from the menu, the trap is not implemented. I am not passing the handler along, it sits at the stack level, and I am using an exit to top to get out of the shutdownrequest handler when Cancel is chosen. Have any of you experienced this strange problem -- that the trap only works once -- and do you have suggestions? --Steve ___ 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: revMail, OSX 10.4.4 and Umlaute
Bugzilla 2259, reported in October 2004, status is still pending. Thierry On 2006, Jan 16, , at 22:58, R. Hillen wrote: Hello, On OSX 10.4.4 I´m using revMail to send some Data using the Mac-Mail-Programm.. After upgrading to 10.4.4. this doesn´t work. I found the cause was a german Umlaut in the text of the subject. revmail [EMAIL PROTECTED],Hier Ausfüllen,Text of Mail doesn´t work, but revmail [EMAIL PROTECTED],Hier Ausfuellen,Text of Mail will be ok. Any hints, what to do? Richard.___ 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: File Path/Name Problem
Hi Dave, replace the / with a : in Import/Export, it should work. Thierry On 2005, Dec 19, , at 15:23, David Burgun wrote: Hi, In MacOS X, it is possible to have file/folder names that contain a / character. For instance for Photoshop, in the plug-ins folder, there is a folder called Import/Export. If you try to use the path for a file inside this folder, it causes a problem in RunRev because it thinks that the Export folder is a folder inside the Import folder as apposed to one folder that is called Import/Export! Anyone have any tips for handling this? 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: MacOS X, player, long filename and accented chars : solved
The stack is available on another server Here are the links : http://perso.wanadoo.fr/hal/player.rev http://perso.wanadoo.fr/hal/player.rev.zip Cheers, Thierry On 2005, Dec 16, , at 21:26, Thierry Arbellot wrote: OK I will put the stack without compression on the server on Monday. Thierry On 2005, Dec 16, , at 20:35, Eric Chatonet wrote: Hi Thierry, Dom is a mac user and he can't decompress your archive since the last available version of Stuffit is 9.01 on this platform. I asked Klaus to send me your stack but I was unable too to open the archive he sent to me. Since your stack is light, I suggest that you put it on your server as a binary file without compressing it. Then we all be able to thank you :-) Best Regards from Paris, Eric Chatonet -- http://www.sosmartsoftware.com/[EMAIL PROTECTED]/ Le 16 déc. 05 à 20:25, Thierry Arbellot a écrit : The archive was compressed with Stuffit 10. It may be not backward compatible with previous version ___ 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: MacOS X, player, long filename and accented chars : solved
On 2005, Dec 16, , at 20:35, Eric Chatonet wrote: Hi Thierry, Bonjour Eric, Dom is a mac user and he can't decompress your archive since the last available version of Stuffit is 9.01 on this platform. I'm on a Mac (10.3.8) too and use Stuffit 10. Why not upgrade ? It's free :-) I asked Klaus to send me your stack but I was unable too to open the archive he sent to me. Since your stack is light, I suggest that you put it on your server as a binary file without compressing it. Then we all be able to thank you :-) Best Regards from Paris, Eric Chatonet --- --- http://www.sosmartsoftware.com/[EMAIL PROTECTED]/ Best Regards from Villeneuve St Georges ;-) 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
MacOS X, player, long filename and accented chars : solved
Hi All, I would like to share a solution allowing to open movies with long filenames and accented characters in a player on MacOS X I made a sample stack to show this solution: http://www.tokitest.com/download/player.rev.sitx It should work with latin characters only I have tested with all characters I can key in from my keyboard, but if you have a file with characters that cause problem, please let me know. Kind 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: MacOS X, player, long filename and accented chars : solved
On 2005, Dec 16, , at 19:55, Dom wrote: Thierry Arbellot [EMAIL PROTECTED] wrote: http://www.tokitest.com/download/player.rev.sitx Ahem... an error has occured while expanding (bla bla) This an unsupported archive version The archive was compressed with Stuffit 10. It may be not backward compatible with previous version -- Revolutionario ___ 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: MacOS X, player, long filename and accented chars : solved
OK I will put the stack without compression on the server on Monday. Thierry On 2005, Dec 16, , at 20:35, Eric Chatonet wrote: Hi Thierry, Dom is a mac user and he can't decompress your archive since the last available version of Stuffit is 9.01 on this platform. I asked Klaus to send me your stack but I was unable too to open the archive he sent to me. Since your stack is light, I suggest that you put it on your server as a binary file without compressing it. Then we all be able to thank you :-) Best Regards from Paris, Eric Chatonet --- --- http://www.sosmartsoftware.com/[EMAIL PROTECTED]/ Le 16 déc. 05 à 20:25, Thierry Arbellot a écrit : The archive was compressed with Stuffit 10. It may be not backward compatible with previous version ___ 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: MacOS X, player, long filename and accented chars : solved
On 2005, Dec 16, , at 21:00, Yves COPPE wrote: Hi, I have a filename with a name in French Sébastien with your code it gives : SeA%CC%83A%CC%8Abastien Can you help me ? Thanks. Greetings. Yves COPPE [EMAIL PROTECTED] Hi Yves, I tested with a file named Sébastien.mov and I got the correct encoding Se%CC%81bastien.mov The player can open the file. Is it possible we don't have the same character é ? 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: Path with a word and an é
Yves, Tested on Panther, and it works with a slash after /Incorporés put specialFolderpath(Desktop)/Incorporés/ into tBureau answer file Choisir un fichier ? with tBureau as sheet I hope it helps Thierry On 2005, Oct 4, , at 21:13, Yves COPPE wrote: Hi list Rev 2.6 and Mac OSX X 10.4.2 FR French laguage user of rev, I have a problem with path to folder and french accent if I write a code ; put specialFolderpath(Desktop)/Incorpores into tBureau answer file Choisir un fichier ? with tBureau as sheet it opens on the answer DLOG in the right Folder If I write put specialFolderpath(Desktop)/Incorporés into tBureau answer file Choisir un fichier ? with tBureau as sheet it doesn't open correctrly at the rigjht place so Incorpores runs wel BUT incorporés doesn't run wel : once with e it's Ok, once with é, it doesn't run rigth. How can I proceed ? Greetings. Yves COPPE [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Determine active OS langguage
For OSX, I use the following code. On new installation, the languages might not be defined, then read the globaldomain will return an error. put replaceText(shell(defaults read NSGlobalDomain AppleLanguages),(\s|\(|\)),) into languagesList if offset(AppleLanguages,languagesList) 0 then -- error, domain AppleLanguages is not defined put replaceText(shell(defaults read NSGlobalDomain AppleLocale),(\s|\(|\)),) into languagesList if offset(AppleLocale,languagesList) 0 then -- error, domain AppleLocale is not defined -- use a trick: get the localized name of the trash do tell application quoteFinderquote return get displayed name of trash return end tell as appleScript put the result into theResult switch theResult case Corbeille -- French put French into languagesList break case Trash -- English put English into languagesList break -- add any other language default put empty into languagesList end switch end if end if Thierry On 2005, Oct 4, , at 21:26, Trevor DeVore wrote: Howdy folks, I need to find a way to determine the current language that is being used by the OS (OS X, Win 98 ) so I can load the proper language file for my application. For example, if my app launches and Windows XP is using a French interface, then I would load the French language file. Any ideas? -- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Anyone have any experience of CPlat???
Hi Dave, 3 years ago, I was looking for a cross platform RAD, then I have tried CPlat. CPlat is a library of C++ classes, it was provided with a RAD, but it seems the current version doesn't include anymore this RAD. Anyway, it was not stable and crashed a lot. I haven't developed a real project with CPlat, so I can't tell if it does the job right. But I think we can't compare CPlat and Revolution CPlat is NOT a cross platform development system, let say it's a cross platform library, you still need to use your development tools on each platform (XCode on Mac, MS Visual Studio on Windows...). You code in C++ and call the CPlat functions instead of the standard system functions. You have the benefit of C++ (fast code) and inconvenience (complexity and low productivity) Hope it helps. Thierry On 2005, Sep 28, , at 19:13, David Burgun wrote: Hi All, Does anyone have any experience of the CPlat Cross Platform Development System? I have been asked to evaluate it. If anyone has any information on how it compares to RunRev I'd be interested in hearing from you. 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: ANN: Some routines for Spotlight
Yves, Andre, I don't have Tiger to test mdfind, but if I understand well the problem, OS X filenames are UTF8 encoded. The following function will convert from UTF8 to ANSI, just replace thefilename with the actual string to decode. put unidecode(uniencode(thefilename,utf8),ansi) I hope this helps, Thierry On 2005, Aug 21, , at 21:28, Yves COPPE wrote: Le 21-août-05 à 21:20, Andre Garzia a écrit : Yves, I am trying here with accents and special chars... it appears that mdfind returns a mixed string. Like I have this file called çedilha (which is wrong portuguese, but serves right for our experiments). mdfind will return a string using with the ç encoded in what I think is more than two bytes and the rest of the filename in good plain text. So using uniDecode to reduce from twobytes representation will screw the rest of the filename, using uniEncode to put the rest of the string up to two bytes will also not work for it will re-encode the special chars... I am a little lost too, need more expert help. Andre Hi Andre, I'm happy to see that the problem does exist, non only on my computer. So I'm sure someone on the list will find the correction. Greetings. Yves COPPE [EMAIL PROTECTED] ___ 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
Re: opening files created by my app
Hi Christian, When you double-click on the file, an apple event is send to the app You just have to process this apple event. hereafter is some code sample: on appleEvent pClass, pID, pSender switch pClass pID case aevtodoc -- extract the path to the file to open request appleEvent data put it into theFilename -- this is the file to read -- put here your code to read the file break default pass appleEvent end switch end appleEvent Hope it helps Thierry On 2005, Jun 30, , at 21:37, Langers Christian wrote: Hello everybody, how do I do to have my app read it's own created data upon startup ? e.g. when double-clicking a text file, the text is loaded into the Textedit (on Mac)... I manage to link the created file to open my app, but not to read its content... So, if anybody could give me a hint... Thanks, Christian ___ 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
[OT] Does someone read Maclife in Germany ?
Hi all, I just found that Maclife (a German magazine) has published a test of my last app TOKI Shot in its release of June 2005. The result doesn't seem very good (note is 2.5/6) Has someone read this article ? I would like to know what says this article, or to get a copy of it. Thank you. Thierry Arbellot ___ 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: the ScreenRect
Could this help ? I have developed a function in an external that returns the coordinates of all monitors, one per line. The main screen is in the first line. function name: xTKScreenRect() It's available for download MacOS X http://www.digital-salade.com/toki/download/TokiUtilities.bundle.zip Windows 2000/XP http://www.digital-salade.com/toki/download/TokiUtilities.dll.zip Thierry On 2005, Jun 7, , at 16:19, Troy Rollins wrote: On Jun 7, 2005, at 10:06 AM, [EMAIL PROTECTED] wrote: We also need multi-monitor support. Our applications provide tools for a graphics department of 20 PC workstations. All of these have dual monitors using Nvidia cards. My apps developed with Rev will fail to work properly unless they are displayed on the primary (screen 1) monitor. Which is simply unacceptable. I have two projects that I am beginning right now. The first - involves strong support for multiple screens. Rev is ruled out due to Bug #193 The second - involves strong support for QuickTime streamed media. Rev is ruled out due to Bug #1239 #2692 Neither of which is helped by the lack of a data grid object #670. Maybe I just happen to do stuff at which Rev is particularly buggy, but I can't support Rev if it can't support my projects. -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: the ScreenRect
Thank you Andre. Here is the code : static charstaticText[255]; #ifdef __STDC__ void XTK_ScreenRect( char*args[], int nargs, char**retstring, Bool*pass, Bool*error) #else void XTK_ScreenRect(args, nargs, retstring, pass, error) char*args[]; int nargs; char**retstring; Bool*pass; Bool*error; #endif { GDHandlemainDevice; GDHandletheDevice; Rect*theRect; chartext[50]; mainDevice = GetMainDevice(); // main monitor theRect = ((*mainDevice)-gdRect); // copy coordinates in the first line sprintf(staticText,%d,%d,%d,%d,theRect-left,theRect-top,theRect- right,theRect-bottom); theDevice = GetDeviceList(); // get the first monitor in the list of all monitors while( theDevice!=NULL ) { if( theDevice!=mainDevice ) { // skip the main monitor, already in the first line theRect = ((*theDevice)-gdRect); sprintf(text,\n%d,%d,%d,%d,theRect-left,theRect-top,theRect- right,theRect-bottom); strcat(staticText,text);// add coordinates } theDevice = GetNextDevice(theDevice); // get next monitor } *retstring = staticText;// return the list of coordinates return; } Thierry PS: Andre, excuse me for my poor English, but what means coin a bash script ? On 2005, Jun 7, , at 19:00, Andre Garzia wrote: On Jun 7, 2005, at 12:00 PM, Thierry Arbellot wrote: Could this help ? I have developed a function in an external that returns the coordinates of all monitors, one per line. The main screen is in the first line. function name: xTKScreenRect() It's available for download MacOS X http://www.digital-salade.com/toki/download/TokiUtilities.bundle.zip Windows 2000/XP http://www.digital-salade.com/toki/download/TokiUtilities.dll.zip Thierry Thierry, congrats on the externals could you tell what function did you use to get the coordinates in MacOS X, maybe I can also coin a bash script to do the same effect! Cheers andre On 2005, Jun 7, , at 16:19, Troy Rollins wrote: On Jun 7, 2005, at 10:06 AM, [EMAIL PROTECTED] wrote: We also need multi-monitor support. Our applications provide tools for a graphics department of 20 PC workstations. All of these have dual monitors using Nvidia cards. My apps developed with Rev will fail to work properly unless they are displayed on the primary (screen 1) monitor. Which is simply unacceptable. I have two projects that I am beginning right now. The first - involves strong support for multiple screens. Rev is ruled out due to Bug #193 The second - involves strong support for QuickTime streamed media. Rev is ruled out due to Bug #1239 #2692 Neither of which is helped by the lack of a data grid object #670. Maybe I just happen to do stuff at which Rev is particularly buggy, but I can't support Rev if it can't support my projects. -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution -- Andre Alves Garzia 2004 BRAZIL http://studio.soapdog.org ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: the ScreenRect
actually, I was not able to do full test of the Windows version (no PC with dual monitor in the office) If someone could test and tell us the result, it would be great. Thank you. Thierry On 2005, Jun 7, , at 21:47, Troy Rollins wrote: On Jun 7, 2005, at 3:23 PM, Chipp Walters wrote: I wonder if there are registry settings you can find on the Window side for at least figuring out where the screens are? I would imagine that Thierry's windows version would work equally well. I just had not tried them on Windows, so couldn't confirm or deny that. -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: VideoGrabber on Windows XP
Hi Frédéric, Actually, VideoGrabber does work with QT on Windows. Unfortunately, there are very few capture cards delivered with QT driver on Windows. You can try a software like winVDIG that allows to drive any video grabber with QT on Windows http://www.vdig.com/WinVDIG/index.html I haven't tested the last release. Best regards Thierry On 2005, May 25, , at 15:17, Frédéric RINALDI wrote: Does VideoGrabber work with QuickTime on Windows XP, or only with Video For Windows? If is does, what component should I install to avoid the cannot load video component error on revInitializeVideoGrabber? Thanks ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: VideoGrabber on Windows XP
If is does, what component should I install to avoid the cannot load video component error on revInitializeVideoGrabber? did you install Capture QuickTime component (run QuickTime updater) Thierry ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Thierry Arbellot
Hi Tom, What's a surprise to see my name as a subject in this list ! Well, I have a product named TOKI LineTest made with Revolution. It can drive a video digitizer, and the very first release used the revVideoGrabber dll. It has been upgraded since this first release, and the last version can be downloaded from my web site http://www.tokitest.com This product is a line tester (also called pencil tester) for cartoons and animation movies. Is your father in this business ? Is he Tom McGrath who directed Madagascar ? Just curious too :-) Kind regards, Thierry On 2005, May 12, , at 00:26, Thomas McGrath III wrote: Hey, This is weird; I got this email from my Dad who lives in Florida. As far as I know he does not use Revolution at all. But I noticed the content right away of course. The subject is Thierry Arbellot from this very list. I think he was using a rev standalone from Thierry that must have a glitch in it. I am waiting for his response now. Curious, Tom On May 10, 2005, at 8:02 PM, Tom McGrath wrote: revInitializeVideoGrabber QT ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revmail and Tiger?
Hi Klaus, What is the text in fld body ? If there is a special character (for example with an umlaut), revMail will not work (bugzilla 2259) Notice that you can modify the revMail handler to fix this problem. Hope it helps. Regards Thierry On 2005, May 11, , at 13:32, Klaus Major wrote: Hi friends, i have some trouble using revmail on Tiger... But maybe this is no special Tiger problem...? revmail [EMAIL PROTECTED], , hallo,text works as exspected. But: put line 1 of fld 2 into adresse ## a VALID e-mail address! put fld body into bo revmail adresse, , Subject,bo does NOT, it only activates Mail, but does not create a new mail... Same if i use the direct references: revmail line 1 of fld 2, , Subject, fld body But this one does work: revmail line 1 of fld 2 Any hints are welcome :-) Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: File Associations Auto-Open with OS X
Hi Peter, Add the following handler to the main stack script: on appleEvent pClass, pID, pSender switch pClass pID case aevtodoc request appleEvent data -- extract the path of the file to open -- put here the code to process the file break default pass appleEvent end switch end appleEvent Regards, Thierry On 2005, May 10, , at 23:55, Peter Reid wrote: I've got a standalone developed with Rev 2.5.1 that I want to associate with a particular file extension for both OS X and Windows. On both platforms I can specify that all files with the extension .xyz is to be opened by a particular program. This works fine with Windows, but not with OS X (v10.3.9 by the way, in case it's relevant). In my preOpenStack handler I'm looking at the $0, $1 parameters and find that $1 is set to the name of the file I double-clicked on (.xyz) for Windows but is empty for OS X. So with OS X when the user double-clicks a .xyz data file, it opens my standalone OK but not the file itself. Is there a known solution for this for OS X so my users can simply double-click a file to cause it to open my standalone AND THEN the file they clicked on? Thanks Peter -- Peter Reid Reid-IT Limited, Loughborough, Leics., UK E-mail: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revmail and Tiger?
On 2005, May 11, , at 15:48, Klaus Major wrote: Bonjour Thierry, Guten Tag Klaus, ... Notice that you can modify the revMail handler to fix this problem. I know, thanks, will try your suggestion from Godzilla :-) damn, commenting out these 4 lines end up in a Compiler error... :-/ I didn't have any problem with Rev 2.5 and 2.5.1, OS X 10.2 and 10.3 Can I help ? Thierry ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revmail and Tiger?
On 2005, May 11, , at 16:14, Klaus Major wrote: Bonjour Thierry, On 2005, May 11, , at 15:48, Klaus Major wrote: Bonjour Thierry, Guten Tag Klaus, :-) Notice that you can modify the revMail handler to fix this problem. I know, thanks, will try your suggestion from Godzilla :-) damn, commenting out these 4 lines end up in a Compiler error... :-/ I didn't have any problem with Rev 2.5 and 2.5.1, OS X 10.2 and 10.3 Can I help ? Well, maybe this is a Tiger issue? Even my subject does contains umlauts and as i told you, commenting out the 4 lines that you mentioned in your bugziall entry give me an (AppleScript) compiler error...? Any ideas? AppleScript error ??? I should also test with Tiger, but I will not have it before 2 or 3 months... :-( Au revoir mon ami... Auf Wiedersehen, mein Freund ;-) Klaus Major [EMAIL PROTECTED] http://www.major-k.de Thierry ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Controlling brightness
Hi, A good place for this kind of question is the site MacScripter http://bbs.applescript.net I found this on this site: http://bbs.applescript.net/viewtopic.php?t=3899highlight=brightness Hope it helps Thierry Le 2005, Apr 7, , à 13:45, Richard Miller a écrit : Is there a shell or Apple script that can control the screen brightness under OS X (that could be used from within Rev)? Alternately, is there a way to generate an F1 or F2 function key message (as those keys adjust screen brightness on an IBook)? Thanks. Richard Miller Imprinter Technologies ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to test for a number
On 2005, Mar 16, , at 17:28, Klaus Major wrote: Hi Jonathan, Well, that brings up a possibility... Shouldn't there be a way to check for the system settings (perhaps in the registry) and adjust for that in the script? sounds good :-) Any hints on how to do this on win and a mac? Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de some hints to get the local decimal separator MacOS do get item 2 of (1.1 as string) as appleScript put the result into theDecimalSeparator replace quote with empty in theDecimalSeparator Windows 2000/XP put queryRegistry(HKEY_CURRENT_USER\Control Panel\International\sMonDecimalSep) into theDecimalSeparator Thierry ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to test for a number
Oops, seems I'm wrong. sMonDecimalSep specifies the symbol used to separate the decimal values in currency. this page explains all registry keys: http://www.microsoft.com/resources/documentation/Windows/2000/server/ reskit/en-us/Default.asp?url=/resources/documentation/Windows/2000/ server/reskit/en-us/regentry/69554.asp On 2005, Mar 16, , at 17:53, Lynch, Jonathan wrote: Is the registry key: sMonDecimalSep Different from: sDecimal ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thierry Arbellot Sent: Wednesday, March 16, 2005 11:37 AM To: How to use Revolution Subject: Re: How to test for a number On 2005, Mar 16, , at 17:28, Klaus Major wrote: Hi Jonathan, Well, that brings up a possibility... Shouldn't there be a way to check for the system settings (perhaps in the registry) and adjust for that in the script? sounds good :-) Any hints on how to do this on win and a mac? Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de some hints to get the local decimal separator MacOS do get item 2 of (1.1 as string) as appleScript put the result into theDecimalSeparator replace quote with empty in theDecimalSeparator Windows 2000/XP put queryRegistry(HKEY_CURRENT_USER\Control Panel\International\sMonDecimalSep) into theDecimalSeparator Thierry ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS delimiter question
On 2005, Mar 5, , at 08:34, MisterX wrote: Hello MacOS and linux friends Im writing a file path OS delimtier function... and im wondering if: all unixes use the / ? and if osx's path delimiter is still : or has it gone to slash form? Just for the trivia, do most mac stacks have the .rev file type appended by default to their filename? Thanks in advance Xavier OS X uses both : and / the Finder uses : but the shell uses / same problem if you write an external: Carbon functions uses : when standard C functions (e.g. fopen) use / Hope it helps. Thierry ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS delimiter question
On 2005, Mar 5, , at 08:29, Richard Gaskin wrote: MisterX wrote: all unixes use the / ? and if osx's path delimiter is still : or has it gone to slash form? The Finder lets me make a folder named 4/4/44, but not one named 4:4:44 -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ Right, but if you check with Terminal, the folder named 4/4/44 in the Finder is renamed 4:4:44 by the shell. Thierry pourquoi faire simple quand on peut faire compliqué? proverbe Shadock ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS delimiter question
do get shell(ls) and the folders both return results 4:4:44 On 2005, Mar 5, , at 10:26, MisterX wrote: aha! So if you do get shell(ls) and you have a folder named results 4/4/44 what do you get? Xavier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thierry Arbellot Sent: Saturday, March 05, 2005 09:47 To: How to use Revolution Subject: Re: OS delimiter question On 2005, Mar 5, , at 08:29, Richard Gaskin wrote: MisterX wrote: all unixes use the / ? and if osx's path delimiter is still : or has it gone to slash form? The Finder lets me make a folder named 4/4/44, but not one named 4:4:44 -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ Right, but if you check with Terminal, the folder named 4/4/44 in the Finder is renamed 4:4:44 by the shell. Thierry pourquoi faire simple quand on peut faire compliqué? proverbe Shadock ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS delimiter question
OS X is an Unix system, so the delimiter is slash But for backward compatibility with OS 9, Finder and other apps use : as delimiter Rev works with Unix-style names, it means the delimiter is slash If you need to convert between Unix and legacy Mac style, you could use the functions revMacFromUnixPath and revUnixFromMacPath regards, Thierry On 2005, Mar 5, , at 11:43, MisterX wrote: from http://www.osxfaq.com/tips/unix-tricks/ it seems it should be slash for shells... shouldn't it? Is there a translation at some point by runrev or a terminal mode that forces the translation maybe... I suppose Applescripts use the :... cheers Xavier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thierry Arbellot Sent: Saturday, March 05, 2005 10:55 To: How to use Revolution Subject: Re: OS delimiter question do get shell(ls) and the folders both return results 4:4:44 On 2005, Mar 5, , at 10:26, MisterX wrote: aha! So if you do get shell(ls) and you have a folder named results 4/4/44 what do you get? Xavier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thierry Arbellot Sent: Saturday, March 05, 2005 09:47 To: How to use Revolution Subject: Re: OS delimiter question On 2005, Mar 5, , at 08:29, Richard Gaskin wrote: MisterX wrote: all unixes use the / ? and if osx's path delimiter is still : or has it gone to slash form? The Finder lets me make a folder named 4/4/44, but not one named 4:4:44 -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ Right, but if you check with Terminal, the folder named 4/4/44 in the Finder is renamed 4:4:44 by the shell. Thierry pourquoi faire simple quand on peut faire compliqué? proverbe Shadock ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Hard Drive serial number
VBCode and Rev number are the same 5083A4C6 is the hexadecimal value of 1350804678 baseConvert(5083A4C6,16,10) convert from hexa to decimal Hope it helps. Thierry On 2005, Jan 25, , at 15:26, Paul Salyers wrote: At 05:06 AM 1/25/2005, you wrote: Paul Salyers wrote: RB gobbledygook snipped This is the code I have in VB for a hard drive serial number. Can some one help me convert this to Rev? I can't tell what the RB code does - but if it really is get the hard drive serial number then you should be able to find the function that Ken Ray recently published to this list. A search of the archive should find it (around mid-January). It is multi-platform, so if you only need the Win part of it, it could be shortened. -- Alex. I got that code, but some reason the code produces a different serial number than out current VB code, We need a code in Rev that produces the same serial number as out current VB code. EX: VBCode serial number is 1350804678 Out program currently has this serial number. Rev serial number is 5083-A4C6 I found last nite VB code that also produces this code So we need a serial number code in Rev that will produce a number like the first VB code to work with current programs. Any suggestions? Paul Salyers PS1 - Senior Rep. [EMAIL PROTECTED] Http://ps1.SoftSeven.org ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Hard Drive serial number
does this work ? put baseConvert(stsGetSerialNumber(C:),16,10) into fld 1 On 2005, Jan 25, , at 16:03, Paul Salyers wrote: At 08:41 AM 1/25/2005, Thierry Arbellot wrote: VBCode and Rev number are the same 5083A4C6 is the hexadecimal value of 1350804678 baseConvert(5083A4C6,16,10) convert from hexa to decimal Hope it helps. Thierry I tryed this but it didn't work: on mouseUp --put stsGetSerialNumber(C:) into fld 1 --Hex number this works put baseConvert(stsGetSerialNumber,16,10) into fld 1 --Trying to convert hex to dec --baseConvert(5083A4C6,16,10) --Your suggestion end mouseUp What am I doing wrong the above code didn't produce the same code as our VB programs Paul Salyers PS1 - Senior Rep. [EMAIL PROTECTED] Http://ps1.SoftSeven.org ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Disappearing image?
Ben, I have too this problem with rev 2.5 on MacOS X. When I change the name of the image, the image disappears and the size is 0. Did someone bugzilla this ? Thierry On 2005, Jan 23, , at 4:31, Ben Fisher wrote: Recently I have come across a disturbing error while creating a game in Rev. I have imported a few graphics as controls (not referenced). The weird part is that when I change the name of the graphic and close the properties box, the image *disappears*. The control still exists, but all of its imagedata is transparent. This only happens when the name is changed with the Properties box. When I change the name through a script, it works fine. I'm pretty sure that this isn't supposed to happen. In further investigation, it seems that the imagedata of the image is changed when its name is changed. Why this should happen I don't know. Also, changing the name will sometimes work normally when other properties are changed in the Properties box. I'm using the latest rev 2.5 on winxp. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Windows externals and the imagePixmapID
Actually, you know Windows programming better than me. When needed, I will ask you for help. Regards. Thierry On 2005, Jan 20, , at 1:16, Frank D. Engel, Jr. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aha! Turns out I was asking the wrong question, but that code certainly helped me to find a way to do it. I ended up using a GDI DIB Section object as an intermediary between the screen-level DDB and the printer DC; it went something like this (slightly modified to simplify, though coded in an external I'm working on for Rev): HDC printerDC;/* provided target DC */ HBITMAP screenDDB, sect, oldbits;/* screenDDB is the imagePixmapID from Rev */ BITMAP bmap; int dx, dy, dw, dh; /* provided position and size on printed page */ if (GetObject(screenDDB, sizeof(BITMAP), bmap) != sizeof(BITMAP)) failure-exit; /* create a DIB Section version of the bitmap */ sect = CopyImage(screenDDB, IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION); /* select it into a memory region */ memDC = CreateCompatibleDC(printerDC); oldbits = (HBITMAP)SelectObject(memDC, sect); /* render onto printer page */ StretchBlt(printerDC, dx, dy, dw, dh, memDC, 0, 0, bmap.bmWidth, bmap.bmHeight, SRCCOPY); /* clean up */ SelectObject(memDC, oldbits); DeleteDC(memDC); DeleteObject(sect); Now I'll be able to sleep tonight (well, at least the chances of it are improved)! Thank you. On Jan 19, 2005, at 3:41 PM, Thierry Arbellot wrote: I use the following code to create a screen HDC and attach the imagePixmapID to it. longimagePixmapId; HBITMAP screenImageBM; HDC theHdc; theHdc = CreateCompatibleDC(NULL); // screen DC screenImageBM = (HBITMAP) imagePixmapId; SelectObject(theHdc,screenImageBM); I hope it helps Thierry On 2005, Jan 19, , at 21:26, Frank D. Engel, Jr. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hmm, anyone know how I can use the Win32 API to obtain a HDC for that HBITMAP? I'm looking for a way to render the bitmap into another device context (specifically, a printer device context). Using the imagePixmapID seemed to me the easiest way to get the image across from a Rev stack to Win32 api code in an external, but I am starting to wonder... On Jan 19, 2005, at 9:31 AM, Frank D. Engel, Jr. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thank you! On Jan 19, 2005, at 4:47 AM, Thierry Arbellot wrote: imagePixmapID is an HBITMAP Thierry. On 2005, Jan 18, , at 19:44, Frank D. Engel, Jr. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does anyone know what form the imagePixmapID takes under the Windows engine for Rev? Is it an HBITMAP or an HDC, or something else entirely? Thank you! - - --- Frank D. Engel, Jr. [EMAIL PROTECTED] $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep John 3:16 John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB7VkN7aqtWrR9cZoRAqMYAJ4ooEuOcblOnUUz2LLwcl7OxvahyQCfaQrX tHEgStdm/CnD1DLueFNoM2Y= =wV7X -END PGP SIGNATURE- ___ $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution - --- Frank D. Engel, Jr. [EMAIL PROTECTED] $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep John 3:16 John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. $ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB7m9Y7aqtWrR9cZoRAlT3AJ4qXzEZz8rC3xovVx5tsVeF8uLJfwCffUHH Ntbc+NXKQLO4GFuyHWu9URw= =SBGG -END PGP SIGNATURE- ___ $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution - --- Frank D. Engel, Jr. [EMAIL PROTECTED] $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep John 3:16 John 3:16 For God so loved the world, that he gave his only begotten Son
Re: Windows externals and the imagePixmapID
imagePixmapID is an HBITMAP Thierry. On 2005, Jan 18, , at 19:44, Frank D. Engel, Jr. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does anyone know what form the imagePixmapID takes under the Windows engine for Rev? Is it an HBITMAP or an HDC, or something else entirely? Thank you! - - --- Frank D. Engel, Jr. [EMAIL PROTECTED] $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep John 3:16 John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB7VkN7aqtWrR9cZoRAqMYAJ4ooEuOcblOnUUz2LLwcl7OxvahyQCfaQrX tHEgStdm/CnD1DLueFNoM2Y= =wV7X -END PGP SIGNATURE- ___ $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Windows externals and the imagePixmapID
I use the following code to create a screen HDC and attach the imagePixmapID to it. longimagePixmapId; HBITMAP screenImageBM; HDC theHdc; theHdc = CreateCompatibleDC(NULL); // screen DC screenImageBM = (HBITMAP) imagePixmapId; SelectObject(theHdc,screenImageBM); I hope it helps Thierry On 2005, Jan 19, , at 21:26, Frank D. Engel, Jr. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hmm, anyone know how I can use the Win32 API to obtain a HDC for that HBITMAP? I'm looking for a way to render the bitmap into another device context (specifically, a printer device context). Using the imagePixmapID seemed to me the easiest way to get the image across from a Rev stack to Win32 api code in an external, but I am starting to wonder... On Jan 19, 2005, at 9:31 AM, Frank D. Engel, Jr. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thank you! On Jan 19, 2005, at 4:47 AM, Thierry Arbellot wrote: imagePixmapID is an HBITMAP Thierry. On 2005, Jan 18, , at 19:44, Frank D. Engel, Jr. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does anyone know what form the imagePixmapID takes under the Windows engine for Rev? Is it an HBITMAP or an HDC, or something else entirely? Thank you! - - --- Frank D. Engel, Jr. [EMAIL PROTECTED] $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep John 3:16 John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB7VkN7aqtWrR9cZoRAqMYAJ4ooEuOcblOnUUz2LLwcl7OxvahyQCfaQrX tHEgStdm/CnD1DLueFNoM2Y= =wV7X -END PGP SIGNATURE- ___ $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution - --- Frank D. Engel, Jr. [EMAIL PROTECTED] $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep John 3:16 John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. $ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB7m9Y7aqtWrR9cZoRAlT3AJ4qXzEZz8rC3xovVx5tsVeF8uLJfwCffUHH Ntbc+NXKQLO4GFuyHWu9URw= =SBGG -END PGP SIGNATURE- ___ $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution - --- Frank D. Engel, Jr. [EMAIL PROTECTED] $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep John 3:16 John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. $ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB7sJk7aqtWrR9cZoRAo9cAJ9yP2YKhPCrO4QZJMZZWX85rJDJJgCfadqz SWzB05iunT27tCMSBe5rfgo= =Ue8d -END PGP SIGNATURE- ___ $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: identify broken images
Hi, Have you tried the size property on the image ? if the size of image im_1 = 0 then ... Thierry On Monday, Dec 27, 2004, at 00:11 Europe/Paris, Claus Dreischer wrote: Hi, i have a small problem i don't see a simple solution for. Maybe someone here has one. I want to display JPGs from file, so i make a put URL (binfile: my_file) into image im_1 This is working OK. But when the JPG in the filepath my_file is faulty (broken download or something) The above line displays an empty image im_1. I now want to identify these faulty images. I tried the following with no result: if the imagedata of image im_1 is not empty then ... if image im_1 is not empty then ... if the length of image im_1 0 then ... Has anyone an idea how to identify an empty image? (its not realy empty but nothing is displayed) Regards, Claus. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: identify broken images
On Monday, Dec 27, 2004, at 13:17 Europe/Paris, Klaus Major wrote: Bonjour Thierry, Guten Tag Klaus, Hi, Have you tried the size property on the image ? if the size of image im_1 = 0 then ... c'est merveilleux Great idea, works fine, thanks a lot!!! Although i am the other Klaus (with a K) i appreciate this nice and clean solution, too ;-) This is my Christmas present for you ;-) Au revoir Auf Wiedersehen Thierry ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revMail, revGoURL
Hi, If you use rev 2.5, this bug has been fixed. You should run check for updates from the help menu. Thierry On Monday, Dec 27, 2004, at 18:40 Europe/Paris, duane poncy wrote: I'm sure I must be doing something stupid, but I am trying to put an email link in my menu. I have tried both revMail and revGoURL. Instead of opening my email program, it opens my browser to an http address followed by my mailto address. Other links (on websites, programs, etc.) open correctly, so it's not my system settings. I am on a Mac G4 with OSX. Any ideas? visit elohi gadugi: poetry, software, Cherokee culture and Native American rights. http://elohigadugi.org/ Another world is not only possible, she is on her way. On a quiet day, I can hear her breathing. - Arundhati Roy - ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: finding local IP?
On Tuesday, Dec 21, 2004, at 09:40 Europe/Paris, kweto wrote: Hello All, Thanks to much kind advise, I can now create stacks that are able to interact over my school's LAN. Next step is to simplify my messy scripting methods. Question: Is there a Rev command (or elegant trick?) for retrieving the local IP address of the computer on which a stack is running? For the moment, my half-baked solution is to (1) use the router software to assign each computer a permanent IP address, and then (2) store those IP addresses as a text file. That way, each time a LAN-based stack opens it retrieves its computer's IP address from that text file. There must be a better way, though! Cheers, Nicolas Cueto (Japan) Hi, 2 tricks for OS X and Win 2K theIPAddress is the local IP address of the computer MacOS X put replaceText(shell(/sbin/ifconfig en0 | head -3 | grep 'inet ' | cut -d' ' -f 2),(\s|\(|\)),) into theIPAddress Windows 2000/XP put 255.255.255.255:43222 into testSocket open datagram socket to testSocket put hostAddress(testSocket) into theIPAddress close socket testSocket Thierry ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: finding local IP?
On Tuesday, Dec 21, 2004, at 17:27 Europe/Paris, Dar Scott wrote: On Dec 21, 2004, at 2:14 AM, Thierry Arbellot wrote: 2 tricks for OS X and Win 2K theIPAddress is the local IP address of the computer MacOS X put replaceText(shell(/sbin/ifconfig en0 | head -3 | grep 'inet ' | cut -d' ' -f 2),(\s|\(|\)),) into theIPAddress Windows 2000/XP put 255.255.255.255:43222 into testSocket open datagram socket to testSocket put hostAddress(testSocket) into theIPAddress close socket testSocket I think with 2.5, the latter will work on OS X! It did just now on my system Revolution 2.5, anyway. Yay! You're right. Work on my Mac too (10.2.8 and Rev 2.5) Good to know. Thierry ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: display a colored rectangle behind each line
On Monday, Dec 20, 2004, at 20:45 Europe/Paris, Erik Hansen wrote: --- Thierry Arbellot [EMAIL PROTECTED] wrote: Bonsoir Jérome, I had the sample problem in one of my app. I used 2 different workarounds: 1. pad the line with enough space characters to make the line have the same width as the field 2. make the field transparent and display a colored rectangle behind each line. formidable! mais comment ca se fait? avec des autre champs revolutionaires? Yes, this is the revolution ;-) Very simple: set the opaque of the field to false, and everything behind the field can be seen. Put some white and blue stripes, and you get a background a la iTunes Thierry Erik Hansen = [EMAIL PROTECTED]http://www.erikhansen.org __ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to use backgroundColor
Bonsoir Jérome, I had the sample problem in one of my app. I used 2 different workarounds: 1. pad the line with enough space characters to make the line have the same width as the field 2. make the field transparent and display a colored rectangle behind each line If your target is just to have white and blue lines alternatively, you can put a pattern in the background of the field. But there are some restrictions on the pattern size, like 16 or 32 pixels. Hope it helps. Thierry On Sunday, Dec 19, 2004, at 21:17 Europe/Paris, Jérôme Rosat wrote: James, What I'm trying to do is: - line 1 of my list field: background color white - line 2 of my list field: background color light blue - line 3 of my list field: background color white - line 4 of my list field: background color light blue - etc. like a selected line. But the backgroundcolor of line property don't change the color of the entire line, only the background of the text. The foregroundcolor property specifies the color of object text not the background. Jérôme Le 19 déc. 04, à 20:55, James Cass a écrit : Jérôme - I'm not exactly sure what you're trying to do, but have you tried using foregroundcolor instead of backgroundcolor? HTHJames On Dec 19, 2004, at 11:55 AM, Jérôme Rosat wrote: Bonjour à tous, I try to change the background color of pair lines in a list field. This is my code: if vLigne/2 = trunc(vLigne/2) then set the backgroundColor of line vLigne of field fListeIcones to lightblue But only the background color of the text in the line change in light blue. Not all the line (for example the background color don't change under tab) and not in all the hight of the line. How to change the background color of an entire line in a list field ? Thanks for your answers. Jérôme Rosat ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution Jérôme Rosat 13, chemin des Palettes 1212 Grand-Lancy 022 880 20 70 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
[ANN] TOKI LineTest 4.1.1 released
Hi Everyone, I'm very pleased to announce the release of TOKI LineTest 4.1.1 TOKI LineTest is a linetest software for cartoonists and animators. It allows to shoot drawings with a video grabber, build the XSheet and play it back synchronized with the sound track. Run on MacOS X and Windows 2K/XP, available in English and French. The basis features of TOKI LineTest are free. You can download the free Lite version from (French site) www.tokitest.com or (English site) www.tokitest.com/toki/index_va.html Kind Regards Thierry Arbellot Digital Salade ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: FileType in Mac OSX
On Tuesday, Nov 2, 2004, at 19:07 Europe/Paris, Yves COPPE wrote: Hi list and French users, Hi Yves, Apercu (I don't know the name of the soft in English, sorry !) Preview in English Thierry. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS X Externals
On Tuesday, Oct 12, 2004, at 23:44 Europe/Paris, Frank D. Engel, Jr. wrote: I am trying to build an external for OS X (which I will eventually need to get working under Windows as well). There should be no outside dependencies from the external itself, other than the standard libc. The external contains two functions. I tried various things, and finally ended up with a .bundle file, courtesy of XCode. I tried several different placements of the file, and have the name of the bundle in the externals property of my main stack, but using 'answer the externalFunctions of this stack' from the msgbox always results in an empty message box (just the ever-present OK button). I cannot tell if Rev is not finding my external, if my external was not built correctly (found but considered corrupt and silently ignored), or if it is somehow being considered an 'empty' external (a valid external with no functions). Could anyone help me to debug this problem? Thank you! --- Frank D. Engel, Jr. [EMAIL PROTECTED] Frank, Have you set the full path to the bundle in the externals property of the main stack ? Thierry ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS X Externals
You can return binary data in argument: for example in transcript local thebinaryData theExternalCommand theBinaryData in C program { int retvalue; MCstringrdata; // put here your process rdata.sptr = pointerToBinaryData; rdata.length = sizeOfbinaryData; SetVariableEx(args[0],,rdata,retvalue); } On Wednesday, Oct 13, 2004, at 16:49 Europe/Paris, Frank D. Engel, Jr. wrote: Aha! Got it built and working. It had something to do with the prefix header, whatever that is. However, I now have a slightly different question. Since one of these functions returns a string with binary image data, that string may contain null bytes -- not a problem for Rev, but as far as I can tell, the return value from an external function call is null-terminated. How can I return a string value from an external function and include embedded null characters in the string? Thank you! On Oct 13, 2004, at 9:22 AM, Frank D. Engel, Jr. wrote: I don't mind copying it when built; it should not need to be redone too often after I have it working; there are two functions which I translated to C from Transcript in order to improve performance (they are quite slow under Transcript, since they need to look at each byte in the text of an image). Toward the beginning of the C source code, I placed this line: char Xname[] = PostgreSQL BLOB encoding functions external v0.0; (I previously posted the Transcript versions of the functions) At the end of external.c, I placed this code: Xternal Xtable[] = { {dbblob, XFUNCTION, 0, dbBLOB, dbabort}, {dbunblob, XFUNCTION, 0, dbUNBLOB, dbabort}, {, XNONE, 0, NULL, NULL} }; Note that the 'dbabort' function simply contains an fprintf function call (outputs to stderr). What else would be needed to get this working? I created an Xcode project using the Carbon Bundle template, and did simple changes to get the project to build with the following files listed when the project icon is selected in the left-hand pane: bytea-funcs.bundle (the target) Carbon.framework (from OS X) external.c (my code) InfoPList.strings (provided by Xcode, then modified) XCmdGlue.c (from the SDK) XCmdGlue.h (from the SDK) XCmdName.h (from the SDK) I also have XCmdFunc.c (from the SDK) copied into the project directory. Toward the end of XCmdGlue.c, there was a line: #include XCmdFunc.c I commented that line out because I could not get the project to build otherwise. After commenting out that line, the project now builds without errors or warnings, but does not work. Could this be related to the problem, and if so, how can I get the project to build with the line uncommented? My own code does not call any of the functions provided by the engine; I tried to keep it as simple as I could. On Oct 13, 2004, at 9:04 AM, Thierry Arbellot wrote: OK If you don't want to copy the bundle every-time you rebuild it, use the full path to the folder where XCode build the bundle. And each time you rebuild the bundle, you should close the stack, remove it from memory then reopen it. Another thing to check: have you add the 2 functions in the Xtable array declared in the external.c source file ? On Wednesday, Oct 13, 2004, at 14:40 Europe/Paris, Frank D. Engel, Jr. wrote: No, just the name. However, I have now tried using the EnhancedQT external, just to see how that one worked (place it where in order for it to work), and placing it in the Rev folder causes it to work, even w/o the full path in the externals of this stack, and the externalFunctions does return a list of functions. I placed my external in the same place, but have an empty list of externalFunctions. Apparently something is wrong, either in my C source code, or in the build process. On Oct 13, 2004, at 5:10 AM, Thierry Arbellot wrote: On Tuesday, Oct 12, 2004, at 23:44 Europe/Paris, Frank D. Engel, Jr. wrote: I am trying to build an external for OS X (which I will eventually need to get working under Windows as well). There should be no outside dependencies from the external itself, other than the standard libc. The external contains two functions. I tried various things, and finally ended up with a .bundle file, courtesy of XCode. I tried several different placements of the file, and have the name of the bundle in the externals property of my main stack, but using 'answer the externalFunctions of this stack' from the msgbox always results in an empty message box (just the ever-present OK button). I cannot tell if Rev is not finding my external, if my external was not built correctly (found but considered corrupt and silently ignored), or if it is somehow being considered an 'empty' external (a valid external with no functions). Could anyone help me to debug this problem? Thank you! --- Frank D. Engel, Jr. [EMAIL PROTECTED] Frank, Have you set the full
Re: shutdownrequest
On Tuesday, Oct 12, 2004, at 20:44 Europe/Paris, Yves COPPE wrote: Hi list I put in the file menu: case Quit [name of app] quit break I put in the file menu: case Quit [name of app] quit break At the mainstack level: on closeStackRequest quit end closeStackRequest on shutDownRequest answer Are you sure you want to quit [name of app]? with No or Yes if it is Yes then pass shutDownRequest else exit to top end if end shutDownRequest I use this for all platforms and it works like a charm! thanks to Mark and Thierry but it definitively doesn't work for me... I've tried many ways, but it's not as expected for example if I launch the app and immediately quit, no shutdownrequest is sent... Greetings. Yves COPPE [EMAIL PROTECTED] Yves, Are the substacks and the main stack in the same stack file ? If not, you should put a shutdownRequest handler in each stack file. Thierry ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: On openStack - preopenstack
Hi Christian, I'm testing Rev 2.5 for few days and I'm facing the same problem on OSX 10.2.8 I try to find a workaround, to display the splash screen before any other window, but can't make it work yet. Regards Thierry On Friday, Oct 1, 2004, at 10:48 Europe/Paris, Christian Langers wrote: Hello, I have project with this structure : Splash (is engine) - password stack - main window Here is the script for the splash screen : on preOpenStack set loc of this stack to the screenLoc end preOpenStack on checkForScreenSize if item 3 of the screenRect 1024 \ or item 4 of the screenRect 768 then answer error This Application requires a 1024x768 or larger screen. \ with Sorry quit end if end checkForScreenSize on openStack checkForScreenSize play jingle.aif wait until the sound is done close this stack palette stack t1 -- password stack end openStack This open first the splash screen which disappeared and then came the password stack... Everything worked well until vers 2.5 of revolution. On OS X (10.3.5.) doing a standalone gives me this behavior when starting : 1. the sound is played 2. the splash screen and the password stack are opened at the same time ; the sound is played at the same time too... I did a standalone of this project in OS X for windows : same behavior... I took my project on windows (virtual PC), did a standalone for PC and it worked as expected... Is there a bug in the OS X version of Revolution ? Can somebody confirm this ? Cheers, Christian From Luxembourg ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Project Builder Question (External Related)
Kevin After checking on the Apple site, the function itoa is not included in the system libraries provided with OS X. You should replace it with the function printf. http://developer.apple.com/documentation/DeveloperTools/Conceptual/ MovingProjectsToXcode/migration_differences/chapter_2_section_10.html Regards Thierry On Sunday, Sep 5, 2004, at 19:38 Europe/Paris, K wrote: I am sorry for my Project Builder ignorance I am used to using Code Warrior (*NIX development) and Visual Studio (Win32 Development). I seems to be experiencing linking problems with the stanard C/C++ library. Simple example: NOTE: This is a C version I experience simular problems with may c++ version. #include stdlib.h void somefunction( revolution/mc signature) { int result ; char *mcResult_ptr = calloc( (sizeof(int)*8+1), sizeof(char) ) ; //Do something.. itoa( result, mcResult_ptr, 10 ) ; } Here even though itoa is included via stdlib.h the linker will be unable to locate it. I assume the glibc/c-lib is not being linked. How do I correct this in Project Builder? Thanks, Kevin -==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=- Disclaimer: Any resemblance between the above views and those of my employer, my terminal, or the view out my window are purely coincidental. Any resemblance between the above and my own views is non-deterministic. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader. The question of the existence of the reader is left as an exercise for the second god coefficient. (A discussion of non-orthogonal, non-integral polytheism is beyond the scope of this article.) ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Re : And the Preferences MenuItem has problems too!
François, I have received this mail today, the bug should be fixed, but it doesn't say in which version, 2.5 or next release ? Regards Thierry From: [EMAIL PROTECTED] Date: Sun Sep 5, 2004 15:57:20 Europe/Paris To: [EMAIL PROTECTED] Subject: [Bug 1887] Preferences menu item http://support.runrev.com/bugdatabase/show_bug.cgi?id=1887 [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] Status|UNCONFIRMED |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2004-09-05 09:57 --- fixed. set the button name to edit and it will automatically delete the last two items of the menu and add a preferences menu item to the apple menu regardless of language. Use the label to set the actual menu title for the edit menu. If your looking to have an edit menu and don't want the last 2 items deleted, either a) add two blank items - which will still add the preferences menuitem to the apple menu b) change the name of the button to something like edit2 to myedit and then set the label to edit so that the engine ignores the edit menu., --- You are receiving this mail because: --- You reported the bug, or are watching the reporter. On Sunday, Sep 5, 2004, at 20:02 Europe/Paris, François Cuneo wrote: With and without! Amicalement François --- --- François Cuneo Au Champ du Pré 1353 Bofflens e-mail: mailto:[EMAIL PROTECTED] Web Cuk New Technologies, programmes éducatifs pour Mac: http://www.cuk.ch Web CUK, humeurs et tests sur le mac: http://www.cuk.ch Tél: ++41 (024) 441.17.81 Fax: ++41 (024) 441.17.05 De : Klaus Major [EMAIL PROTECTED] Répondre à : How to use Revolution [EMAIL PROTECTED] Date : Sun, 5 Sep 2004 12:17:40 +0200 À : How to use Revolution [EMAIL PROTECTED] Objet : Re: And the Preferences MenuItem has problems too! Bonjour François, Hello again! So, in the documentation, for the sepcial Preferences MenuItem on OSX, we can read: If your application's user interface is presented in a language other than English, set the name of the Edit menu button to Edit, and set its label to the correct translation. This ensures that the engine can find the Edit menu, while making sure that the menu is shown in the correct language. I tell Set the label of btn Edit of group Menubar 1 to Edition In this case, the Preference menuitem on OSX stays on the Edit menu and not in the Application Menu like it should be! If I leave the menu Edit with the label Edit, all is fine. Does this happen WITH or WITHOUT that namely empty folder xyz.lproj? Maybe they don't work together... Amicalement François - -- --- François Cuneo Au Champ du Pré 1353 Bofflens e-mail: mailto:[EMAIL PROTECTED] Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: link between standalone and doc on windows
Bonjour Jean Paul I found an old thread about this problem in the list http://lists.runrev.com/pipermail/use-revolution/2003-February/ 013341.html http://lists.runrev.com/pipermail/use-revolution/2003-February/ 013360.html Hope it helps Thierry On Saturday, Aug 28, 2004, at 11:50 Europe/Paris, [EMAIL PROTECTED] wrote: My standalone creates its own docs which extension is .hti On MacOS no problem, On windows The problem arises when I try to display sevral docs by doublecliking on their icon from the desktop. A double click on a doc icon lauches the standalone and a doc window is displayed. but what happens if I doubleclick on another doc icon ? I expect the standalone to display a second doc window. In facts, Windows lauches once more the standalone, and the two standalones coexist in the memory. How can I obtain on windows the same behavior as on MacOs, only one standalone managing any doc opened from the desktop ? Thank you for your help Cordialement Jean-Paul ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Send variables back to Rev from Applescript
I haven't too much experience with Applescript in Rev, but I can help in a simple script. I use the following script to get the physical ram of the computer and I get the returned value into the result variable. do get (system attribute quote ram quote ) / 1048 div 1000 as appleScript put the result into theRAM Thierry On Friday, Aug 20, 2004, at 14:21 Europe/Paris, Marian Petrides wrote: Richard's query about Applescript got me thinking about ways to use Applescripts in Rev code. One thing that isn't clear to me, however, is whether if you execute an Applescript using: do fld 1 as applescript and that Applescript returns a value, is there a way to capture that value and use it in other Revolution code? If so, how would one send a value (or better yet a list of values) back from Applescript to Rev? Thanks. M ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Send variables back to Rev from Applescript
Marian, you should remove the quotes if you put the script into a field try like this: get (system attribute ram ) / 1048 div 1000 Thierry On Friday, Aug 20, 2004, at 15:05 Europe/Paris, Marian Petrides wrote: When I implement Thierry's suggest exactly as written in a button script everything works fine. on mouseup do get (system attribute quote ram quote ) / 1048 div 1000 as appleScript put the result into theRAM put theRAM into fld 1 --now see if I can manipulate the variable which was passed put theRAM/2 into halfRAM put halfRAM into line 2 of field 1 end mouseup However, if I paste the very same command into field 2 and change the button script to read on mouseup do fld 2 as appleScript put the result into theRAM put theRAM into fld 1 end mouseup I now get a compiler error. And this isn't simply a copy/paste error since I get the same error if I manually type: get (system attribute quote ram quote ) / 1048 div 1000 into field 2 Any one have thoughts as to why this should be happening? Thanks. Marian On Aug 20, 2004, at 8:34 AM, Thierry Arbellot wrote: I haven't too much experience with Applescript in Rev, but I can help in a simple script. I use the following script to get the physical ram of the computer and I get the returned value into the result variable. do get (system attribute quote ram quote ) / 1048 div 1000 as appleScript put the result into theRAM Thierry ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Localization
on MacOS X put replaceText(shell(defaults read NSGlobalDomain AppleLanguages),(\s|\(|\)),) into theLanguagesList theLanguagesList will contains the list of the preferred languages as defined in the international panel of the system preferences, separated by comma e.g. en,fr or English,French For more information, you can visit the Apple Developer site: http://developer.apple.com/documentation/MacOSX/Conceptual/ BPInternational/Concepts/LanguageDesignations.html Thierry On Tuesday, Aug 17, 2004, at 00:24 Europe/Paris, Greg Hall wrote: Is there some way to detect in RR what language the user has logged in as (English, French, etc). I don't see one. Or do you just default to English and provide the user with a menu or preference of some kind to choose something else if they don't want that? Tx. Greg Hall [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Localization
On Tuesday, Aug 17, 2004, at 17:08 Europe/Paris, Jan Decroos wrote: on Mac OS X you can get the language by word 1 of item 1 of line 2 of shell(defaults read NSGlobalDomain AppleLanguages) - English or Dutch or German or ... Jan on MacOS 10.2.8 and Rev 2.1, this script returns empty To get the language, I use replaceText(shell(defaults read NSGlobalDomain AppleLanguages),(\s|\(|\)),) Thierry ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Localization
On Tuesday, Aug 17, 2004, at 17:45 Europe/Paris, Ken Ray wrote: on MacOS 10.2.8 and Rev 2.1, this script returns empty To get the language, I use replaceText(shell(defaults read NSGlobalDomain AppleLanguages),(\s|\(|\)),) Thierry, When you get this, is the first one in the list the one that is currently the active language? If not, how do you tell what is the currently active language? Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] Hi Ken, Yes, the first in the list is the active language. The languages in this list are sorted in the same order than the languages in the system preferences, international panel Regards. Thierry ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Best solution for building windows icon on mac?
Hi, I use Iconographer to build my icons for OSX and Windows (2K and XP). Works with Rev 2.1 and later. This shareware only costs 15$ http://www.mscape.com/products/iconographer.html Thierry. On Friday, Aug 13, 2004, at 18:50 Europe/Paris, Mark Swindell wrote: What's the best solution for building a Windows icon on MacOs or OSX that will be compatible with the standalone maker v 2.1? (16 bit 744 size) TIA Mark ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Quit in Mac OS X
Hi Yves, the answer is: shutdownRequest Thierry. On Thursday, Aug 12, 2004, at 13:46 Europe/Paris, Yves COPPE wrote: Hi list I come with an old known problem but I can't find my right way : on Mac OS X, when I choose in a standAlone Quit myAppName from the application menu, which menu Message is sent to the Engine ??? Greetings. Yves COPPE [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: 2 more questions about operations on text in fields
I did a test with the handler in a stack's script and got the same problem. But the special characters are properly passed in the keyDown message, also if the keyUp message is in a field script. Have you check the deleteKey and backspaceKey messages ? Thierry. On Monday, Aug 2, 2004, at 18:35 Europe/Paris, jbv wrote: OK, I've found a single solution for the 2 problems, simply by using send check_my_field to me in 0.1 seconds and starting to check the content of the fld as soon as it gets the focus, and stopping when that fld looses focus... It works, but I was wondering if there was any more elegant (less brute force) solution... JB Question #1 : I'm on Mac (french kbd), and strangely the following script : on keyup which put which end keyup doesn't catch french characters with accents (é à etc)... is there any settings to catch those keys ? - Question #2 : is there any equivalent to the returninfield message to catch the use of the delete key on parts of text contained in a field (in order to quickly know what's left in the field once users have used the delete key, but while the field still has the focus) ? Thanks in advance (again), JB ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Is a stack open?
Have a look at the openStacks function, this should be the solution to your problem Thierry On Friday, Jul 30, 2004, at 19:42 Europe/Paris, Frank D. Engel, Jr. wrote: Is there any easy way to determine through Transcript code if a particular substack of my main stack is currently open? Thank you! $0 Web Hosting with up to 120MB web space, 1000 MB Data Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Get It Now At www.doteasy.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Trap Force Quit on OS X?
Have a look a the Apple developer site I found some links that explain how to disable the Force Quit for an application Also, Force Quit send a kill signal to the application, perhaps the signal could be intercepted in some way. Hope it helps. http://developer.apple.com/technotes/tn2002/tn2062.html#Section6 http://developer.apple.com/technotes/tn2002/ tn2062.html#NotShowUpInForceQuit http://developer.apple.com/documentation/MacOSX/Conceptual/ BPRuntimeConfig/Concepts/PListKeys.html On Wednesday, Jul 28, 2004, at 21:54 Europe/Paris, Devin Asay wrote: Does anyone know of a way to trap the Mac OS X Force Quit key sequence (Cmd-Opt-Escape) in Revolution? I want to come up with a way of preventing a user from force quitting unless they have a valid password. Trapping rawKeyDown, for example, doesn't work: on rawKeyDown keyCode if the optionKey is down and the commandKey is down then if keyCode = 65307 then --65037 = esc key -- ask for a password here pass rawKeyDown end if end if end rawKeyDown Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: another quick multi-lingual question
Hi Lars, One idea is to use the do command and put the actual answer command line in a hidden text field, that will have 2 profiles. For example, create a text field answerDialog, set its visible property to false, input the actual command in the text property e.g. in the first profile answer Hello with Yes or No in the second profile answer Bonjour with Oui or Non in your script do the text of field answerDialog To test the selected button in the answer, you can do if it is Yes or it is Oui then ... Second idea Check the profile of the button in the script if the cRevGeneral[profile] of me is firstProfileName then answer ... -- first language else if the cRevGeneral[profile] of me is secondProfileName then answer ... -- second language end if Hope it helps. Thierry On Wednesday, Jul 28, 2004, at 14:50 Europe/Paris, Lars Brehmer wrote: Thanks to Thierry, by the way, for answering my last question on this! Now that my pop-up menus are bi-lingual, another quick question - if a button with two profiles has an answer dialog in its script, can that dialog be different for the two profiles? I tried to find a similar solution to using the text property for the pop-ups, but I am still stumped. Can anybody help? Thanx, Lars ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Messages problem
The something else happens more than once when the click duration is longer than 10 millisec Try to put the something else in the mouseDown handler, it will be processed only once per click on mouseDown (do something else as well) -- Places a marker at the mouseLoc. end mouseDown on checkMouse (do some stuff) --Puts the mouseLoc into a field. send checkMouse to me in 10 millisec --This loop is halted with a mouseDoubleDown in the card script. end checkMouse Thierry On Saturday, Jul 24, 2004, at 17:06 Europe/Paris, Jim Hurley wrote: I need help with flushing messages, at least I think it is a messages problem. In the handler below checkMouse repeatedly does some stuff, and, if the mouse was clicked (if the mouse is down), it does something else as well. The problem is that the something else often happens more than once, I assume because there is a checkMouse message hanging around. Is there a better way to prevent the repetition of the something else than waiting 5 ticks? on checkMouse (do some stuff) --Puts the mouseLoc into a field. if the mouse is down then (do something else as well) -- Places a marker at the mouseLoc. wait 5 ticks --I am using this line to keep something else from happening more than once. end if send checkMouse to me in 10 millisec --This loop is halted with a mouseDoubleDown in the card script. end checkMouse Jim ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Profiles for Pop-Up menu items
If you mean a button which style is popup, yes, you can use profiles for different languages in the menu. Use the text property to store the menu items. Thierry. On Friday, Jul 23, 2004, at 20:43 Europe/Paris, Lars Brehmer wrote: Can the menu items in a pop up menu have different profiles, say for different languages? None of the profile properties seem to handle this. Is there another way beyond my still meager skills? Thanks gang, Lars ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Profile issue in 2.2.1
I jut started to test Rev 2.2.1 (the 30 days trial version), and I face a problem while using profiles. I have a stack with 2 profiles. I use them to have different languages: the Master profile for English, a second profile, called French, for French language. On MacOS X, I check the preferred language defined in the system preferences and switch the profile according to the language, using the command revSetStackFileProfile. The standalone, built using Rev 2.1, does work fine. But with Rev 2.2.1, I can't make it work. I have tried all the profile options in the new standalone settings include profiles on objects and the profile library with include all profiles, also tried with Only include profiles selected below and French, also tried Set all objects to profile sets to French, but in all cases, the standalone is always in English, never in French. Worst, the command revSetStackFileProfile returns an error when runs in the standalone, but works fine from within the IDE. I suspect the profile library is not added to the standalone. Is it a new bug in 2.2.1 ? Can't find it in bugzilla. Does someone have a solution ? Thank you. Thierry ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: VideoGrabber
Hi Troy, Actually, the videoGrabber provided by RunRev is quite limited under Windows, as it doesn't support DirectShow. I hope RunRev will improve it. VFW is an old MS technology, some USB webcam are provided with such drivers. Very few video cards are supplied with QT for Windows drivers, I can't recommend this solution. I see one solution: use a plug-in that allows QT application to drive DirectShow capture devices. The plug-in does the interface between DirectShow and QT, then you can use it in Rev with the videoGrabber in QT mode. This is not a perfect solution, as the plug-in slows down the digitizing process (not sure you can get 30 frames/second full screen), but it works. I have tried WinVDIG ( http://www.vdig.com/WinVDIG/index.html ), it's free, but hasn't been updated for 2 years. Also take a look at Vdig ( http://www.abstractplane.com.au/products/vdig.jsp ), it's a commercial product, not tested, but I guess it works better. Regards. Thierry. On Thursday, Jul 1, 2004, at 04:00 Europe/Paris, Troy Rollins wrote: On Jun 30, 2004, at 7:27 PM, Troy Rollins wrote: It isn't a camcorder, but it is firewire. What class of device works best then? And, this is also the case with the QT method? Sorry to dwell, but this is a final, and crucial function of my software. Is there a known-to-work analog to digital converter that is compatible with VideoGrabber on Windows XP? USB or Firewire? The one I have a Dazzle Hollywood Edge does not seem compatible in either VFW or QT modes. I need to be able to take composite or S-Video and convert it to a videoGrabber compatible format. If I can find one that works, I can recommend that one. I currently don't have anything proving it works at all under Windows XP. OSX works with everything... of course. -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: VideoGrabber
On Thursday, Jul 1, 2004, at 15:35 Europe/Paris, Troy Rollins wrote: Do you happen to know any Win compatible AtoD converters that will actually work with videoGrabber. I'm totally in a corner on this. No. Sorry. Thierry ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: VideoGrabber
Don't know for XP, but tested with 2000 and VFW mode, it's ok. Thierry. On Wednesday, Jun 30, 2004, at 19:52 Europe/Paris, Troy Rollins wrote: Can anyone confirm that videoGrabber works under Windows XP in VFW mode? I'm not having any problems in OSX and QT mode, but under Windows I get an attractive black box centered in the screen. -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: VideoGrabber
Rev only supports VFW video capture, not WDM capture devices, part of DirectX/DirectShow. So, if you use DV Camcorder connected to firewire, it should not work with Rev. Thierry. On Wednesday, Jun 30, 2004, at 22:55 Europe/Paris, Troy Rollins wrote: On Jun 30, 2004, at 3:41 PM, Troy Rollins wrote: Well, I've hacked a while. My app errors whether in VFW or QT modes when videograbber is used, as does, it turns out, the sample videograbber stack. The device providing the video works fine in other (non Rev) video applications on the same machine. I should add that I'm not even capturing video, only previewing it. Video card issue? How can I tell? And if that is the case, why might it work fine outside of Rev, but fails in Rev apps (as well as the IDE.)? XP Home. 1394/Firewire in. -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: answer buttons incorporating a varible
Hi Rich, Try to put the expression in brackets. on makeChoices put someProduct into tProduct answer What's your pleasure? with new eval of another product\ or open old evaluation or (Evaluate tProduct) end makeChoices Thierry. On Sunday, May 30, 2004, at 20:50 Europe/Paris, Rich Lague wrote: I'm trying to get the answer command to give a button with quoted text and a variable in it. The following script results in 4 buttons: What's your pleasure?, new eval of another product, Evaluate and someProduct. on makeChoices put someProduct into tProduct answer What's your pleasure? with new eval of another product\ or open old evaluation or Evaluate tProduct end makeChoices I want 3 buttons with the last button reading Evaluate someProduct. I have also tried it like this: on makeChoices put someProduct into tProduct answer What's your pleasure? with new eval of another product\ or open old evaluation or Evaluate tProduct end makeChoices This script returns three buttons, but the last button reads Evaluate tProduct. Is there a way? Thanks! Rich Lague ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: finder language from MACOSX
Hi Paolo, You can use the following command: put replaceText(shell(defaults read NSGlobalDomain AppleLanguages),(\s|\(|\)),) into theLanguagesList the theLanguagesList variable will contain the list of the chosen languages by the user as there are in the system preferences. By example on my system: en,fr,ko Note that a language could be in a short format - en - or long format - English Hope it helps. Thierry. On Tuesday, May 11, 2004, at 17:53 Europe/Paris, paolo wrote: Do you know how can I get the language selected by the user on system preferences on MAC OS X ? Ciao Paolo ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Tab delimited data not working...
I think you should use item instead of word words are delimited by space, items by the itemDelimiter - put item 3 of line 1 of fld data Thierry. On Friday, Mar 26, 2004, at 14:42 Europe/Paris, Glen Bojsza wrote: Hello, I have a field which is filled with tab delimited data there will always be some missing data by the nature of the type of data being collect. I may have made an assumption ... If word 2 is missing in a line of 5 words then when I ask for word 3 I actually get word 4. The line shifts the words to the left. Does Revolution not count the tabs when it is counting the words? If I read a file into a spreadsheet and tell it the data is tab delimited it counts the words properly. I have set the itemDelimiter to tab but that does not solve the problem?? Example below I've typed the word tab to help explain 23 tab 35 tab 76 tab 55 tab 99 -- put word 3 of line 1 of fld data== 76 23 tab tab tab 76 tab 55 tab 99 -- put word 3 of line 1 of fld data== 55 (shouldn't it give 76 ??) Is this a bug, limitation, or a bad assumption? thanks, Glen ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: video_input.rev
Hi, Work with my Samsung USB Webcam, the buttons display the same video setting panel except the compression button that doesn't display anything. I think it should depend on your video camera driver, maybe there is no setting panel. Regards. Thierry On Saturday, Mar 20, 2004, at 16:07 Europe/Paris, Scott Kinder wrote: Hi, Has anyone had experience with the 'video_input.rev' sample stack. I can get it to record in the raw DV format (which is cool on its own), but none of the buttons to set compression, format, display or source seem to work. The compression button script does revVideoGrabDialog compression I tried this in the message box and still no-go. I checked in the Rev folder and there is a package named revvideograbber there. I'm on a MacOS 10.2.8 laptop running Rev 2.1.2 Thanks! Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Locate the desktop on Mac Classic?
Hello, Try the volumes functions. I think the first line is the startup disk. Hope it helps. Thierry. On Wednesday, Mar 10, 2004, at 11:02 Europe/Paris, Signe Marie Sanne wrote: Hello, I run an application from a CD-ROM. The students can use a note book, and their file shall end up either on the desktop or in a folder on the desktop on Mac. On my own Mac the harddisk is named /signes/ whereas the first component may vary on other people's computers:Harddisk, Mac HD etc. How can I identify its name from the CD-ROM in order to write the notes' file to the harddisk? Thanks in advance. Signe Marie Sanne 1. amanuensis Signe Marie Sanne e-mail: [EMAIL PROTECTED] Romansk Institutttel: +47 55 58 21 27 Øisteins gt. 1 5007 Bergen http://www.hf.uib.no/hfolk/mlab/hjem/default.html Norway ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Panther upgrade wrecks stack bindings
Hi Jim, I don't know yet about Panther, but you can try this (it works with Jaguar) : select a stack which extension is rev open the contextual menu (control-click) select get info expand open with select the Rev app you want to open with click Change all button Hope it helps. Regards. Thierry. On Friday, Feb 20, 2004, at 21:40 Europe/Paris, Jim Lyons wrote: I am not a happy camper today. After upgrading to Panther last night, and being disappointed by a number of other OT things, now double-clicking my stacks won't launch my latest version (2.1.2) of Revolution. (Dragging them to the Rev icon or opening from Rev still works fine.) After the upgrade, they launched the 2.0 version I still had in the applications folder instead. I tried resaving a stack under the new version, but double-clicking that stack still launched the old version. So I put the old version in the trash and tried it again. This time I got an unexpected error dialog and no launch at all. Then I tried control-clicking a stack and choosing Revolution 2.1 from the Open With... menu; that worked, so I quit and tried double-clicking again. Now it wants to start up the OS9 environment and launch the fat version of 2.1! I restarted the system hoping that would straighten things out. Well, now a few stacks have the normal Rev icon and do open 2.1 -- all of them are downloaded stacks. All the stacks I made and saved with 2.1 (and a few other downloaded stacks) now have the fat icon and they want to run MacOSFat version under Classic when double-clicked. Argh!!! Can any fellow mac types out there help me straighten this mess out? Thanks... Jim Lyons 8^( ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Compilers?
MacOS X : Project Builder Windows : MS Visual C++ 6 MacOS 9 : Code Warrior 7 (but I don't work anymore on OS 9) Thierry. Le Monday, 2 Feb 2004, à 00:01 Europe/Paris, Dar Scott a écrit : What compilers are you folks using for what platforms (from what platforms) for making externals? (Other comments? Recommendations? Etc.) Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revInitializeVideoGrabber question
Hi doug, The doc is wrong, a parameter is missing. The correct syntax is : revInitializeVideoGrabber the short name of this stack,QT,100,100,200,200 Regards. Thierry. Le Friday, 30 Jan 2004, à 12:18 Europe/Paris, Doug Lerner a écrit : In the IDE, if I try the docs example: revInitializeVideoGrabber QT,100,100,200,200 in the message window, the following error occurs: Message execution error: Error description: send: error in message expression Am I getting ahead of myself? doug ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Filtering with more than 4 types (OSX)
Hi dreamer, Just for information, if I remember well, MacOS limits the filtering up to 4 types. A custom proc filter is needed to filter more than 4 types. But sorry, I don't know how to do simply in Rev. The only idea I have is to write an external that will call the MacOS file selector with a custom file proc according to your need. Regards. Thierry. Le Wednesday, 28 Jan 2004, à 10:22 Europe/Paris, Éric Chatonet a écrit : Bonjour à tous les Reveurs, OSX 10.3 Rev 2.1.2 I want to display a dialog allowing the user to choose only pictures i.e BMP,MooV, JPEG, PNG, GIF and TIFF (cross platform app). Only the four first types are considered: answer file tPrompt with filter MooVJPEGPNGfGIFfTIFFBMP -- filters correctly MooV,JPEG,PNG and GIF while TIFF and BMP files are disabled answer file tPrompt with filter PNGfGIFfTIFFBMP MooVJPEG -- filters correctly PNG, GIF, TIF and BMP while MooV and JPEG files are disabled Any idea to by-pass this apparent limitation? Mille mercis par avance ! Eric Chatonet ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Filtering with more than 4 types (OSX)
Smart workaround, but what if the user want to navigate to another directory within the file selector ? Thierry. Le Wednesday, 28 Jan 2004, à 14:18 Europe/Paris, Jan Decroos a écrit : From: Thierry Arbellot [EMAIL PROTECTED] Subject: Re: Filtering with more than 4 types (OSX) To: How to use Revolution [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi dreamer, Just for information, if I remember well, MacOS limits the filtering up to 4 types. A custom proc filter is needed to filter more than 4 types. But sorry, I don't know how to do simply in Rev. The only idea I have is to write an external that will call the MacOS file selector with a custom file proc according to your need. Regards. Thierry. Couldn't you solve this by : - create (before the answer file ...) a temporary invisible directory (starting with a '.', like .myTmpDir), - move all files you don't want to see to that directory, - show the answer, - restore the files from that hidden directory back and - remove the hidden directory ? It's not nice, but this should work. Regards, Jan ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: shutDownRequest being called twice
Good question. I never asked myself about it before, I just used local variable to share and retain value within handlers in the same script and it does work. I found this in the documentation : The value of a script local variable is retained between handlers, but is lost when you quit the application, when you close the stack (unless its destroyStack property is false), or when the script is re-compiled. So, if you are in one of those cases, you can use a script local variable. Thierry. Le Sunday, 25 Jan 2004, à 04:39 Europe/Paris, Doug Lerner a écrit : Wouldn't you have to make the processingShutDown flag a global to retain its value for something like this? doug On 1/25/04 1:40 AM, Thierry Arbellot [EMAIL PROTECTED] wrote: try this local processingShutDown = false on shutDownRequest if processingShutDown = false then answer Are you sure you want to quit? with No or Yes if it is Yes then put true into processingShutDown pass shutDownRequest end if end if end shutDownRequest Hope it helps Thierry Le Saturday, 24 Jan 2004, à 15:25 Europe/Paris, Doug Lerner a écrit : I am seeing my are you sure you want to shut down twice (the shutDownRequest handler) prompt twice now. I think the reason for this is that I added an insert script for stack mainstack into back so I could make use of the mainstack handlers in all the stacks. But the shutDownRequest handler looks like this: on shutDownRequest answer Are you sure you want to quit? with No or Yes if it is Yes then pass shutDownRequest end if end shutDownRequest I need to pass shutDownRequest. I think the pass shutDownRequest is passing it up the path and it is re-encountering itself in the backScripts. Any ideas of how to avoid this problem? Thanks, doug ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: shutDownRequest being called twice
try this local processingShutDown = false on shutDownRequest if processingShutDown = false then answer Are you sure you want to quit? with No or Yes if it is Yes then put true into processingShutDown pass shutDownRequest end if end if end shutDownRequest Hope it helps Thierry Le Saturday, 24 Jan 2004, à 15:25 Europe/Paris, Doug Lerner a écrit : I am seeing my are you sure you want to shut down twice (the shutDownRequest handler) prompt twice now. I think the reason for this is that I added an insert script for stack mainstack into back so I could make use of the mainstack handlers in all the stacks. But the shutDownRequest handler looks like this: on shutDownRequest answer Are you sure you want to quit? with No or Yes if it is Yes then pass shutDownRequest end if end shutDownRequest I need to pass shutDownRequest. I think the pass shutDownRequest is passing it up the path and it is re-encountering itself in the backScripts. Any ideas of how to avoid this problem? Thanks, doug ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: The clock cursor
It happens often on my Mac (OX 10.2.8, Rev 2.1) Open the message box and run unlock cursor Regards. Thierry. On Thursday, Jan 22, 2004, at 10:05 Europe/Paris, Doug Lerner wrote: In the OS X IDE the clock cursor suddenly won't go away. I can still select and browse as needed, so the tools are working, but the cursor is a clock. I realize that if I quit the IDE and restart it would probably reset, but has anybody seen this happen before? doug ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: trouble with loading externals...
Hi, revzeroconf.bundle is the external for MacOS X and revzeroconf.dll is for Windows You should copy the files in the revolution folder (what you did well) if you want to use them from the IDE Set the externals... command actually doesn't load the external. The external is loaded when the stack is open. Try the following: open the stack input the command set the externals of stack cool to revzeroconf.bundle or set the externals of stack cool to revzeroconf.dll according to the platform save and close the stack may be better to quit Rev launch Rev and open the stack Hope it helps Thierry. On Thursday, Jan 22, 2004, at 09:49 Europe/Paris, Andre Garzia wrote: Hi Folks, I've got this externals revzeroconf.bundle and revzeroconf.dll... they are inside the stacks folder and also at /Applications/Revolution 2.1.2/ folder. When the stack loads, it cant find the externals... I used set the externals of stack cool to revzeroconf.bundle return revzeroconf.dll can anyone point my obvious mistake. never used externals before... -- Andre Alves Garzia 2004 BRAZIL http://studio.soapdog.org ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution