RE: postgres mc
Check the title of the message you replied to. :-) pg short for postgres Ok, I got on, it worked! What is pg? Is this a CGI script? ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Bringing an MC app to the front
I have two MC-based apps in which one causes the other to open documents within it. Thanks to the discussion here before, I have good communication beteen the apps (Apple events on Mac, polling a file on Win). Now the problem is that if the second app is already open, it opens documents okay but stays in the background. How can I hae one MC-based app bring another one to the front? I've tried: get tell application quote tAppName quote to activate do it as applescript Even though the value of tAppName is correct, the reult comes back execution error. Do I need to build an AppleScript dictionary entry for activate for that to work? Earler discussion here made it seem somehow simpler... -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.1: 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: MC front end to PostgreSQL
Dominique a écrit : Just have an eye at http://acacia93.dyndns.org/citalis.xml in using Mon iCab plante (erreur 2) sur le javascript ;- My iCab copy chokes (error 2) on the javascript used in your page ;- Maybe not your fault, but iCab's... ;-) -- Regards, (-8 Dominique ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard Hello Dominique, Thanks for the info. Are you speaking from the indexes page form submit javascript ? It works ok under Netscape 4.7, different issues of Explorer, Mozilla 1.3 and Opera 5 under Linux, Jaguar, Win98 and Win2K. It's a javascript 1.5 specs code. Does anyone know if there are good reasons to avoid this issue of js (or not) ? In betwin : i'm working on the client-side front-end of the Citalis tests db and expect to use a dedicated metacard 2.43 stack to manage the sql insert, update and delete queries. If i get the needed results in using the libURL 1.0.8 POST command abilities, the mc front-end will replace the standard web forms in most of the nexts production apps to come. -- Bien 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
Re: Bringing an MC app to the front
RIchard, you can use open file through AppleScript; MC doesn't seem to support the activate event properly (I've already told Scott about this). Here's an example: tell application Finder open file path to the app end tell That should do it... - Original Message - From: Richard Gaskin [EMAIL PROTECTED] To: MetaCard List [EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 1:08 PM Subject: Bringing an MC app to the front I have two MC-based apps in which one causes the other to open documents within it. Thanks to the discussion here before, I have good communication beteen the apps (Apple events on Mac, polling a file on Win). Now the problem is that if the second app is already open, it opens documents okay but stays in the background. How can I hae one MC-based app bring another one to the front? I've tried: get tell application quote tAppName quote to activate do it as applescript Even though the value of tAppName is correct, the reult comes back execution error. Do I need to build an AppleScript dictionary entry for activate for that to work? Earler discussion here made it seem somehow simpler... -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.1: 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 ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Bringing an MC app to the front
RIchard, you can use open file through AppleScript; MC doesn't seem to support the activate event properly (I've already told Scott about this). Here's an example: tell application Finder open file path to the app end tell That should do it... Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Richard Gaskin [EMAIL PROTECTED] To: MetaCard List [EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 1:08 PM Subject: Bringing an MC app to the front I have two MC-based apps in which one causes the other to open documents within it. Thanks to the discussion here before, I have good communication beteen the apps (Apple events on Mac, polling a file on Win). Now the problem is that if the second app is already open, it opens documents okay but stays in the background. How can I hae one MC-based app bring another one to the front? I've tried: get tell application quote tAppName quote to activate do it as applescript Even though the value of tAppName is correct, the reult comes back execution error. Do I need to build an AppleScript dictionary entry for activate for that to work? Earler discussion here made it seem somehow simpler... -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.1: 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 ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Bringing an MC app to the front
Ken Ray wrote: How can I hae one MC-based app bring another one to the front? I've tried: get tell application quote tAppName quote to activate do it as applescript Even though the value of tAppName is correct, the result comes back execution error. Do I need to build an AppleScript dictionary entry for activate for that to work? Earler discussion here made it seem somehow simpler... RIchard, you can use open file through AppleScript; MC doesn't seem to support the activate event properly (I've already told Scott about this). Here's an example: tell application Finder open file path to the app end tell I have no trouble opening the file, the problem is bringing that app to the front. Will that script bring the app forward? How can I bring the app forward without opening a document? -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.1: 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: Bringing an MC app to the front
Yes, that is what I use to bring an app to the front. You don't need to open a document, just point it to the app. Here's an example from OS X: tell application Finder open file Enterprise:users:kenray:desktop:applications:MyApp end tell Note this also works with the .app extension as well. Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ tell application Finder open file path to the app end tell I have no trouble opening the file, the problem is bringing that app to the front. Will that script bring the app forward? How can I bring the app forward without opening a document? ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Bringing an MC app to the front
BTW: You can also do it by setting the frontmost of the process through AppleScript. Here's a link to the tip on my site: http://www.sonsothunder.com/devres/metacard/metacard.htm?ascr004 Have fun, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Richard Gaskin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 4:16 PM Subject: Re: Bringing an MC app to the front Ken Ray wrote: How can I hae one MC-based app bring another one to the front? I've tried: get tell application quote tAppName quote to activate do it as applescript Even though the value of tAppName is correct, the result comes back execution error. Do I need to build an AppleScript dictionary entry for activate for that to work? Earler discussion here made it seem somehow simpler... RIchard, you can use open file through AppleScript; MC doesn't seem to support the activate event properly (I've already told Scott about this). Here's an example: tell application Finder open file path to the app end tell I have no trouble opening the file, the problem is bringing that app to the front. Will that script bring the app forward? How can I bring the app forward without opening a document? -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.1: 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 ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Bringing an MC app to the front
Ken Ray wrote: BTW: You can also do it by setting the frontmost of the process through AppleScript. Here's a link to the tip on my site: http://www.sonsothunder.com/devres/metacard/metacard.htm?ascr004 Way cool. Got something for Windows? -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.1: 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
Listing Files Within a Folder
Hello everyone, What's the best way of getting a list of files that reside in a number of subfolders within a parent folder? What I've done is establish the path to the parent folder. I then use the Directories command to get a list of subfolders, and by setting the directory property to each subfolder in a repeat loop, I obtain files lists using the Files. Greg Gregory Lypny Concordia University ___ Better for us if you don't understand. The Tragically Hip http://rubbersoul.concordia.ca ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
RE: Listing Files Within a Folder
You will need either a repeat loop or recursion I'd go for the repeat loop. There's a neat way to use a queue for tree traversal as in the following pseudocode: put the directories of the root folder into a queue (probably a multi-line variable) put the files of the root folder into tFiles repeat until the queue is empty put the head of the queue into tPath put the directories of folder tPath after the tail of the queue put the files of the root folder after tFiles end repeat Theis algorithmn will result in level-order traversal. So if you have a tree: 1 / \ 2 5 / \ /\ 3 4 6 7 You will get the files in the order 1,2,5,3,4,6,7 If you want to get the files by in-order traversal (1,2,3,4,5,6,7) then you need to use a stack and push the sub-directories of a folder on after you pop the folder. Still repeating until the stack is empty. Cheers Monte -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Gregory Lypny Sent: Thursday, 19 December 2002 9:11 AM To: [EMAIL PROTECTED] Subject: Listing Files Within a Folder Hello everyone, What's the best way of getting a list of files that reside in a number of subfolders within a parent folder? What I've done is establish the path to the parent folder. I then use the Directories command to get a list of subfolders, and by setting the directory property to each subfolder in a repeat loop, I obtain files lists using the Files. Greg Gregory Lypny Concordia University ___ Better for us if you don't understand. The Tragically Hip http://rubbersoul.concordia.ca ___ 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: mollases mode
Has anyone seen MC switching into a mollases mode? I have seen that several times and attributed it to other factors, but I just had it occuring in rather pure conditions, so I am now quite certain that it is MC itself. When it gets into this modus, MC is so slow to respond to appleevents (we are talking Mac OS here) that most of them time out. I can click to switch to Finder or other app (it takes a while but eventually happens) and other apps are working fine. In this modus, MC takes a very long time before it decides to redraw windows. It does not respond to mouse clicks or command keys. Sending quit appleevent produces an error that applescript dictionary is not available. Memory does not seem to be a factor. At least there is plenty of free memory in the system and the utilization bar as shown by finder indicates that MC has plenty of heap space. A common factor in each case is that it has been running as cgi for a couple days. (Yes, it switches into this modus with no user present at the keyboard.) Same thing for 2.4.2 and 2.4.3 under OS either 8.6 or 9.2.2. I had a similar problem on windows. I had an application which had to run 24/7 and which would slow down after a couple of days. I was storing all communication in and out in a field which was supposed to be truncated to 200 lines but, the truncation code didn't work right. This meant that the field just kept growing. I also noticed that my memory usage hadn't increased dramatically but my processor usage did go high. Basically, check to see if you have a field or a variable which is being allowed to grow infinitely. Since it's a CGI, I suspect you're doing some logging Rich Mooney Payne Sparkman Mfg. ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: MC front end to PostgreSQL
mmm interesting replace the standard web forms in most of the next production apps how can MC replace an HTML Web form? do you mean you will distribute MC stacks and the user won't go through a browser? Sivakatirswami On Wednesday, December 18, 2002, at 10:38 AM, Pierre Sahores wrote: In betwin : i'm working on the client-side front-end of the Citalis tests db and expect to use a dedicated metacard 2.43 stack to manage the sql insert, update and delete queries. If i get the needed results in using the libURL 1.0.8 POST command abilities, the mc front-end will replace the standard web forms in most of the nexts production apps to come. ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Bringing an MC app to the front
Funny you should mention that... Today I found a very cool command-line app that can be called from MC that will do just that (and more)... http://www.prcview.com It is free for non-commercial use, but needs to be licensed for commercial use. I'll keep looking around for a better (fully free) solution... Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Richard Gaskin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 4:41 PM Subject: Re: Bringing an MC app to the front Ken Ray wrote: BTW: You can also do it by setting the frontmost of the process through AppleScript. Here's a link to the tip on my site: http://www.sonsothunder.com/devres/metacard/metacard.htm?ascr004 Way cool. Got something for Windows? -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.1: 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 ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: MC front end to PostgreSQL
Hello, Excuse me for budding in but ... YEAH! How can MC replace an HTML Web form? Use MetaCard's widgets instead of the poor unreliable ones that we have to use when using HTML to create the form and JavaScript to make it interactive. Instead of the submit button, your script then POSTs the fields of the MetaCard-based form to a CGI. No need for any HTML or any JavaScript. Everything from within MetaCard, and the fact that MC runs on ANY platform achieves the same multi-platform-ness as the web-only solution. But MetaCard's interactivity far surpasses what can ever be achieved by even the most-creative JavaScript scriptor. Interactive validation of the fields, for example, is a cinch in MetaCard. Adjusting the contents of one or more subsequent popup menus, according to what the user fills in to the form, is also a cinch to implement; night-and-day when compared to HTML and JavaScript. Do you mean you will distribute MC stacks and the user won't go through a browser? You certainly can. Let's conquer the Web with MetaCard, Alain Farmer __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Listing Files Within a Folder
You can use the tip at my site: http://www.sonsothunder.com/devres/revolution/revolution.htm?_file007 Have fun! Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Gregory Lypny [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 4:40 PM Subject: Listing Files Within a Folder Hello everyone, What's the best way of getting a list of files that reside in a number of subfolders within a parent folder? What I've done is establish the path to the parent folder. I then use the Directories command to get a list of subfolders, and by setting the directory property to each subfolder in a repeat loop, I obtain files lists using the Files. Greg Gregory Lypny Concordia University ___ Better for us if you don't understand. The Tragically Hip http://rubbersoul.concordia.ca ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard