Re: Getting a files icon...
Ken Ray wrote: > A file's icon is in the resource fork of the file (Mac OS 9), a separate > .icns resource file (Mac OS X) or in the compiled application resources > (Windows), and so it's not really a part of what the file system stores > about a file. The OS provides the icon based on its file association (stored > in the desktop database in Mac and in the Registry in Windows). Either way, > it will require moving resources around to get at the icon. I wonder if one could use getResource() to obtain the raw data and parse out the image and stuff that into imagedata. -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.2: Publish any database on any site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Getting a files icon...
JR, A file's icon is in the resource fork of the file (Mac OS 9), a separate .icns resource file (Mac OS X) or in the compiled application resources (Windows), and so it's not really a part of what the file system stores about a file. The OS provides the icon based on its file association (stored in the desktop database in Mac and in the Registry in Windows). Either way, it will require moving resources around to get at the icon. Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: "RCS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 8:01 PM Subject: Getting a files icon... > Is there any way to get a files icon from MetaCard? There is nothing in > the 'detailed files', and I do not see anything obvious in the docs... > > Thank you, > JR > > ___ > metacard mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/metacard > ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: CGI Frustration
> This is probably too obvious to ask, but are you sure you have the path > statement at the beginning correct? Yes, and it actually is working now. I was missing a couple of library files that MetaCard needed under Linux. The "#!mc" did refer to the same folder that the CGI was running in, so it's working fine now. Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Getting a files icon...
Is there any way to get a files icon from MetaCard? There is nothing in the 'detailed files', and I do not see anything obvious in the docs... Thank you, JR ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: CGI Frustration
This is probably too obvious to ask, but are you sure you have the path statement at the beginning correct? This it tripped me in the beginning. everything seemed perfectly set up, but the path to the engine was wrong If you are being hosted on a virtual server, this can be an issue. If it is an issue, just look at Apache's error logs and you may need to set the path to the mc.exe to something along the lines of : #!/export/vhost/com/h/himalayanacademy/www/public_html/cgi-bin/mc i.e. just look at any path in the error logs and emulate that I had, initially wrongly assumed that I could must put #!mc on startup etc. because the engine was in the same (cgi-bin) directory as the scripts that were calling it... i.e. the default assumption would be "use a relative path" but, not so... won't work. On Wednesday, January 22, 2003, at 10:02 AM, Ken Ray wrote: Yes, I set both the Linux executable and the script to 755. What shared libs would MetaCard need? Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 1:40 PM Subject: Re: CGI Frustration ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
RE: MC 2.5b3 or 2.4 style?
Just wondering where I should focus some efforts... So I'll ask the kind users before guessing and fixing later... Do you prefer the 2.5 script editor or the 2.4 interface (Metacard's)? I've updated the 2.4 Script Editor X into 2.5 style! It's totally cool what you can do with MC given backward compatibility! And ideas are sprouting everywhere! So I wish you all a great weekend! It is snowing in Luxembourg which is amazing (almost an inch and people panic!). We need another meter to launch cyberworking! (Before it comes to that, I go surfing with my other toy!) _ / __\___=_ |=/ \___)==/ \|= http://monsieurx.com MetaCard Performance RAD and surfing Tools! ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
RE: MC 2.5b3
It's my fault, I complained to Scott that in debugging some menus weren't necessary!!! ;)) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Ernst M. Reicher > Sent: Saturday, February 01, 2003 8:18 PM > To: [EMAIL PROTECTED] > Subject: MC 2.5b3 > > > Hi, > does it make sense not to have access to the tools-menu in debugMode??? > since 2.5b2 I think it´s disabled.. > > Regards, > Ernst > > > ___ > metacard mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/metacard > ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: No return from "post" on Linux? A bug?
Allo Sadhu, Scott, List, > > Scott, > > Regarding this post, I have determined, it is not a bug. Sorry to have > bothered you. > > It is a portability issue (my problem). I find the stack files are not > portable between the slightly different versions of MC on the development, > versus the deployment machines. I certainly could have expected that. > Hey, well .. it mostly worked! It ran. It just could not retrieve > any data. But almost doesn't count. > > My solution is to redevelop the application under the version of MC > running on the target machine. You don't need, Sadhu, to rebuild all the app if you stick the commun part of it in a first stack and the issue-specific part of it in a second stack. You can even set each one as the substack of the other and get them working together in using the start using command or a simple send message to an object set in the second or substack ;) > Since it is a small and simple application, rebuilding the UI from scratch > is not that hard - much easier than trying to upgrade the version of > Linux on the target machine. (That would be required to bring the MC > versions into synch.) The main stack script file where most all the > work is done still functions as is except, no split command on this > earlier version of MC so I have to recode that part. No biggie. > > The application now retreives the data from a PostgreSQL db and all > is well. Call this one a wrap. > > Sadhu > > ___ > metacard mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/metacard -- Cordialement, Pierre Sahores Inspection académique de Seine-Saint-Denis. Applications et bases de données WEB et VPN Qualifier et produire l'avantage compétitif ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
MC 2.5b3
Hi, does it make sense not to have access to the tools-menu in debugMode??? since 2.5b2 I think it´s disabled.. Regards, Ernst ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: No return from "post" on Linux? A bug?
Scott, Regarding this post, I have determined, it is not a bug. Sorry to have bothered you. It is a portability issue (my problem). I find the stack files are not portable between the slightly different versions of MC on the development, versus the deployment machines. I certainly could have expected that. Hey, well .. it mostly worked! It ran. It just could not retrieve any data. But almost doesn't count. My solution is to redevelop the application under the version of MC running on the target machine. Since it is a small and simple application, rebuilding the UI from scratch is not that hard - much easier than trying to upgrade the version of Linux on the target machine. (That would be required to bring the MC versions into synch.) The main stack script file where most all the work is done still functions as is except, no split command on this earlier version of MC so I have to recode that part. No biggie. The application now retreives the data from a PostgreSQL db and all is well. Call this one a wrap. Sadhu ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Alias - never mind
I looked through the docs again...and there it was! JR ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Alias?
RCS wrote: > I am sure this has been covered, but evidently, nobody told me... > > How do you do an alias (or shortcut)? I do not see any function that would > allow me to do anything like this... create alias to file -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.2: Publish any database on any site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Set custom Icon property - Mac OS9
RCS wrote: > Is there a way to set the custom icon propety of a file to TRUE on Mac > OS9? The problem is, when I copy a file and it's resources, the resulting > files icon reverts to the internal reference... > > I did see that 'some' of the flag properties are supported...but not the > one I want! Maybe it is undocumented? Not in MetaTalk itself, but I'm sure there's a way to do it through MetaCard using AppleScript. -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.2: Publish any database on any site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Alias?
I am sure this has been covered, but evidently, nobody told me... How do you do an alias (or shortcut)? I do not see any function that would allow me to do anything like this... Thanks, RCS ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Set custom Icon property - Mac OS9
Is there a way to set the custom icon propety of a file to TRUE on Mac OS9? The problem is, when I copy a file and it's resources, the resulting files icon reverts to the internal reference... I did see that 'some' of the flag properties are supported...but not the one I want! Maybe it is undocumented? Thanks, JR ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: say it isn't so
Thanks for the replies and the code example...I guess I was just complaining. If I parse the files in a repeat (checking the first item in each line) and exit when I find it, it is fast enough. Sometimes I think in terms of 'toolbox' calls that we used to have to do direct manipulation on stuff... JR > RCS wrote: > > > Do I really have to do a 'files' function, and 'walk' through all of the > > files (possibly hundreds) in the list until I find the one I am intereted in > > just to get the file 'type' and 'creator' on a Mac? > > Not if you have a couple minutes to turn it into a one-liner: > > function fwMacFileType pPath > local tSaveDir, tShortFileName, tFileList, tLine, tType > -- > put the directory into tSaveDir > set the itemdel to "/" > put the last item of pPath into tShortFileName > delete last item of pPath > set the directory to pPath > put the detailed files into tFileList > put lineoffset(cr&urlEncode(tShortFileName)&comma, cr&tFileList&comma) > into tLine > if tLine > 0 then > set the itemdel to comma > put last item of line tLine of tFileList into tType > end if > set the directory to tSaveDir > return tType > end fwMacFileType > > > --__--__-- > > Well, it depends how do you know which file you are interested in. If > you know the file name up front, then you can fetch the info > directly. Otherwise, if you use some rules to determine which file is > THE one to check, then I see no other way. Of course, you may be able > to use your determination rules to either sort or search through the > list of filenames to bring those of interest to top or extract them > from the list, thus reducing your investigation to a subset of files. > > Robert > > --__--__-- > ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: POST Command
Hi Dave, Yes, I'll give the socketTimeOutInterval a try. As for the headers returned by libUrlSetLogField, they look pretty much like the example you show here, except that on one or two occasions a content length line of 83 or 84 was included. Greg On Saturday, February 1, 2003, at 01:07 AM, [EMAIL PROTECTED] wrote: Message: 2 Date: Fri, 31 Jan 2003 17:11:51 + To: [EMAIL PROTECTED] From: Dave Cragg <[EMAIL PROTECTED]> Subject: Re: POST Command Reply-To: [EMAIL PROTECTED] At 11:42 am -0500 31/1/03, Gregory Lypny wrote: Hi Dave, Thanks for responding. Yes, I have checked the result function after the post, and it is always empty. If I omit the CDML tag -Max=All from my post, I immediately get the default 25 records returned. And curiously, when I transfer the database to my local Mac and post to localhost, as I mentioned, all records are, in fact, returned. To check if it's just a timeout, try increasing the socketTimeoutInterval. The default is 1 (milliseconds). Try setting it to 3. What is logged when you use libUrlSetLogField? It should show the http headers returned by the server. I've only used Filemaker's xml features (different from CDML I think), but I guess the format should be similar. Here, the headers look something like this: HTTP/1.1 200 OK Date: Fri, 31 Jan 2003 16:19:28 GMT Server: FileMakerPro/5.5v2 WebCompanion/5.5v3 MIME-Version: 1.0 Transfer-Encoding: chunked Content-Type: text/xml; charset=utf-8 Expires: Tue, 12 Nov 1963 00:36:00 GMT Anything significantly different in your case? In particular, is there a Content-Length or Transfer-Encoding field? Cheers Dave ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: 2.5b3 was posted tonite !!!!
> Both on Mac and Windows the home stack shows "2.5B2"; the same is > returned by "put the version". Wasn't this different with former updates > despite the fact that you have to add an old home stack to the new > files? > > Anyway, Metacard is progressing at a really fast pace and with > impressive features (maybe too fast for the Revolution people). > Hardly did I release the "send"-button when the fix is already there: 2.5b3 is showing now. W.S. ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard