Re: Answer File Command

2002-12-07 Thread Gregory Lypny
Hello Richard,

	Downloaded from a repository of scientific data, I believe they are 
Unix text files, but I don't know which application created them.  How 
would I find out?

	Greg

On Saturday, December 7, 2002, at 12:03  PM,  Richard Gaskin wrote:

Message: 2
Date: Fri, 06 Dec 2002 11:43:01 -0800
Subject: Re: Answer File Command
From: Richard Gaskin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]

Gregory Lypny wrote:


Answer File of type TEXT   - displays Appleworks but dims plain text
Answer File of type TEXT   - displays Appleworks but dims plain text


What is the file type of these plain text files?  And which 
application
created them?

--
 Richard Gaskin
 Fourth World Media Corporation
 Developer of WebMerge 2.1: Publish any database on any site

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



Re: Answer File Command

2002-12-07 Thread Richard Gaskin
Gregory Lypny wrote:

 On Saturday, December 7, 2002, at 12:03  PM,  Richard Gaskin wrote:

 Gregory Lypny wrote:
 
 Answer File of type TEXT   - displays Appleworks but dims plain text
 Answer File of type TEXT   - displays Appleworks but dims plain text
 
 What is the file type of these plain text files?  And which
 application
 created them?
 
 Downloaded from a repository of scientific data, I believe they are
 Unix text files, but I don't know which application created them.  How
 would I find out?

ResEdit's File-Get Info feature, or use Rev to get the detailed files which
will contain the file type.

-- 
 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: Answer File Command

2002-12-06 Thread Gregory Lypny
Thanks Andu, Richard, Jacqueline, Monte, and Dar:

	I'll go back and retry some of these suggestions for the Answer File 
command.  I actually experimented with variations of what you've 
suggested, but the problem was usually that all files were eligible 
(not dimmed) for selection; that's a big problem because the utility 
stack I'm developing indexes big (15 to 220 MB) text files, and opening 
the wrong one would result in endless churning as MC looks for stuff 
that isn't there.  But as I say, I'll give your variations a shot, and 
send up a flag if it works.

	Thanks,

		Greg



	Gregory Lypny
	Associate Professor
	John Molson School of Business
	Concordia University
	_
	Absence of evidence is not evidence of absence.
	- Anonymous

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


Re: Answer File Command

2002-12-06 Thread Gregory Lypny
Hello again,

	In response to my question about filtering out text files with Answer 
File, there was some suggestion that Mac OS X is a bit quirky in 
displaying files.  Based on some of your suggestions, here's what I got 
with OS X (Jaguar) and two types of text files (Appleworks and plain 
text).  In the first four cases below, which differ from one another 
only in the use of the words type or filter and quotation marks, 
AppleWorks text files are displayed but plain text are dimmed (bad).  
The fifth case, based on Andu's suggestion resulted in all files in the 
folder being dimmed!  In other words, it does the opposite of what I 
understood it would do.

Answer File of type TEXT   - displays Appleworks but dims plain text
Answer File of type TEXT   - displays Appleworks but dims plain text
Answer File with filter TEXT   - displays Appleworks but dims plain text
Answer File with filter TEXT   - displays Appleworks but dims plain 
text
Answer File with filter *.txt   - dims everything!

	Greg

P.S.  What is the convention for putting quotations around a word or 
phrase in an email to ensure something reasonable is displayed?  Should 
I use the asterik?



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


Re: Answer File Command

2002-12-06 Thread Richard Gaskin
Gregory Lypny wrote:

 Answer File of type TEXT   - displays Appleworks but dims plain text
 Answer File of type TEXT   - displays Appleworks but dims plain text

What is the file type of these plain text files?  And which application
created them?

-- 
 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: Answer File Command

2002-12-05 Thread Richard Gaskin
Gregory Lypny wrote:

 I'm writing a handler to open files and restrict the choices to text
 files.
 
 answer file Choose your data fileŠ with filter TEXT
 
 When I use the filter above in OS X, AppleWorks text files are
 recognized but plain text files are not (they're dimmed).  I'd like to
 be able to choose among all files with a .txt extension.  What am I
 doing wrong?

'TEXT' would only be used with the type keyword:

  answer file Choose your data file... of type TEXT

Filters are used as string matches like this:

  answer file Choose your data file... with filter *.txt

 
Also, for cross-platform compatibility you may want to use three periods
rather than the ellipss character at the end of your prompt.

-- 
 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: Answer File Command

2002-12-05 Thread Monte Goulding


 Try
 answer file Choose your data file… with filter *.txt

This doesn't work for me on OS X. I think what we need is a combined filter
like:
TEXT|*.txt. This way we don't need to test the platform and it would work
properly on OS X also.

Just my 2 cents (1 cent US ;-)

Monte

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



Re: Answer File Command

2002-12-05 Thread J. Landman Gay
On 12/5/02 12:05 PM, Gregory Lypny wrote:

My apologies for the last message; I forgot to include a subject.  Let 
me try again…

Hello everyone,

I'm writing a handler to open files and restrict the choices to text files.

 answer file Choose your data file… with filter TEXT

When I use the filter above in OS X, AppleWorks text files are 
recognized but plain text files are not (they're dimmed).  I'd like to 
be able to choose among all files with a .txt extension.  What am I 
doing wrong?

This works for me in OS X:

 answer file Choose a file: of type TEXT

I see all types of files, both those with .txt suffixes and those 
without, including BBEdit files, text files created by 2 different 
browsers, and MC-generated text files.

However, I have noticed several times that OS X doesn't always 
recognize files right away. There have been times when a file was 
dimmed in the file dialog that shouldn't be. These are almost always new 
files, just downloaded or just created. Sometimes moving the file to the 
desktop and back will fix it, sometimes it takes hours before the Finder 
sees it as the right file type.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

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


Re: Answer File Command

2002-12-05 Thread Dar Scott

On Thursday, December 5, 2002, at 06:50 PM, Monte Goulding wrote:


This doesn't work for me on OS X. I think what we need is a combined 
filter
like:
TEXT|*.txt. This way we don't need to test the platform and it would 
work
properly on OS X also.

YES!

(Whoops.  I'm having trouble keeping my activity to lurking.)

Dar Scott

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



Re: Answer File Command

2002-12-05 Thread Yennie
Also, you'll notice that when you try to open an unknown file type in OS X and switch the application-chooser popup from "Recommended Applications" to "All Applications", the grayed-out applications remain grayed out... *except* for their icons. Happens every time here on 10.2.1.

So the bugginess is clearly an OS thing.

However, I have noticed several times that OS X doesn't always 
"recognize" files right away. There have been times when a file was 
dimmed in the file dialog that shouldn't be. These are almost always new 
files, just downloaded or just created. Sometimes moving the file to the 
desktop and back will fix it, sometimes it takes hours before the Finder 
"sees" it as the right file type.




RE: ANSWER FILE command

2001-01-19 Thread Simon Lord

Well, Gregory had the right idea the first time if he added a few 
more words to his script.

Instead of just saying:

answer file  "Show me the file."

Try this:

answer file  "Show me the file." with "OK" or "Delete my disk" or 
"Make coffee" or "Cancel"

The [if it is "cancel" then exit mouseUp] will now work.


"Cancel" is actually in the result in the answer file,ask file and asswer
folder commands

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jack Rarick
Sent: Thursday, 18 January 2001 9:20 AM
To: [EMAIL PROTECTED]
Subject: Re: ANSWER FILE command




Gregory Lypny wrote:

  Hi Everyone,

   When I use the "answer file" command as below, clicking "Cancel"
  does not cause an exit out of the handler.  What am I doing wrong?

 answer file  "Show me the file."
  if it is "Cancel" then exit mouseUp

   Regards,

Greg

Canceling leaves "it" empty.  Try this:

Answer file "Show me the file:"
if it = "" then exit mouseup



Good luck,

Jack Rarick
Braintree Athletic Systems


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.

-- 


Cheers,
Simon

All your .com .net and .org domains for only $14.50 each.
Get them while they last... http://www.amigo-3.com/hosting/

--
"The great discoveries in science are not punctuated by 'Eureka! I've 
found it!' but rather "Hmmm,that's funny" Isaac Asimov 

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: ANSWER FILE command

2001-01-18 Thread Gregory Lypny

Thanks Jack,

 That seems to be contrary to the way that ASK and ANSWER work in 
general.  I thought I had read in the MetaCard Reference that "it" would 
be passed the name of the button clicked.  I'll try out your suggestion.

 Regards,

  Greg



On 18/1/2001 2:39 PM, [EMAIL PROTECTED] wrote:

From: Jack Rarick [EMAIL PROTECTED]
Subject: Re: ANSWER FILE command
Date: Wed, 17 Jan 2001 22:50:26 +
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; 
x-mac-creator="4D4F5353"
Content-Transfer-Encoding: 7bit
References: [EMAIL PROTECTED]



Gregory Lypny wrote:

 Hi Everyone,

  When I use the "answer file" command as below, clicking "Cancel"
 does not cause an exit out of the handler.  What am I doing wrong?

   answer file  "Show me the file."
 if it is "Cancel" then exit mouseUp

  Regards,

   Greg

Canceling leaves "it" empty.  Try this:

Answer file "Show me the file:"
if it = "" then exit mouseup



Good luck,

Jack Rarick
Braintree Athletic Systems



_
Gregory Lypny
Associate Professor of Finance
Concordia University

_
"Take chances, make mistakes!"
   - Ms Frizzle, The Magic School Bus



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: ANSWER FILE command

2001-01-17 Thread Jack Rarick



Gregory Lypny wrote:

 Hi Everyone,

  When I use the "answer file" command as below, clicking "Cancel"
 does not cause an exit out of the handler.  What am I doing wrong?

   answer file  "Show me the file."
 if it is "Cancel" then exit mouseUp

  Regards,

   Greg

Canceling leaves "it" empty.  Try this:

Answer file "Show me the file:"
if it = "" then exit mouseup



Good luck,

Jack Rarick
Braintree Athletic Systems


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: ANSWER FILE command

2001-01-17 Thread Sjoerd Op 't Land

Gregory Lypny wrote/ schreef:

 Hi Everyone,
 
 When I use the "answer file" command as below, clicking "Cancel"
 does not cause an exit out of the handler.  What am I doing wrong?
 
 answer file  "Show me the file."
 if it is "Cancel" then exit mouseUp
You could have find this out yourself by using this:
  answer file "Show me the file."
  answer it  return  the result

But I'll give it here:
  answer file "Show me the file."
  if it is empty then exit mouseUp
-- or
  if the result is "Cancel" then exit mouseUp

 Regards,
 
 Greg
Hope this helps,
Sjoerd


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.