Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

FileInfo XFcn date format

36 views
Skip to first unread message

André Tremblay

unread,
Jul 1, 2018, 4:08:25 PM7/1/18
to SuperCard Discussion
Hello, 

I am trying to emulate Rinaldi's GetFileInfo XCFN. Using FileInfo(HFSPath), I am getting the result:

True
DNeg
8BIM
26474174
0
False
Sun, Jun 10, 2018 9:22:05 PM
Sun, Jun 10, 2018 9:32:09 PM

On my OS X, configured as "Frank Canadian" I can't convert the dates of line 7 and 8. I can't figure out the date format.

I am missing something or should I write a conversion function?

Regards

André Tremblay
PhotoGraphex

Scott

unread,
Jul 2, 2018, 10:38:48 AM7/2/18
to SuperCard Discussion
What are you trying to convert it to and what happens when you try?

Bill Bowling

unread,
Jul 2, 2018, 11:30:08 AM7/2/18
to 'ckuehne134' via SuperCard Discussion
Did Rinaldi ever work with SuperCard?

I have many fond memories using Rinaldi XCMS / XFNCS prior to 1999 when I left the coding world for 17 years.

Bill

On Jul 02, 2018, at 7:38 AM, Scott <scottin...@gmail.com> wrote:

What are you trying to convert it to and what happens when you try?

--
You received this message because you are subscribed to the Google Groups "SuperCard Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supercard-tal...@googlegroups.com.
To post to this group, send email to superca...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/supercard-talk/24c6c03f-5fd1-43b7-aa16-809f88e7be0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

André Tremblay

unread,
Jul 2, 2018, 11:34:49 AM7/2/18
to SuperCard Discussion


Le lundi 2 juillet 2018 10:38:48 UTC-4, Scott a écrit :
What are you trying to convert it to and what happens when you try?

Hello Scott,

It seems that with my system configured as “French Canadian” the date result is not considered as a valid date. 

For instance:

put FileInfo(HFS_path) into InfoOfFile

get line 7 of InfoOfFile

convert it to seconds 

The result is the text of ”line 7 of InfoOfFile“, in my case ”Sun, Jun 10, 2018 9:32:09 PM”.

For the successful emulation of the antique XCFN, I need to have those two lines to be converted to SHORT DATE and TIME.

It is most likely a matter of localization of the date format.

Thank your for your help!
 
André Tremblay
PhotoGraphex

André Tremblay

unread,
Jul 2, 2018, 12:10:09 PM7/2/18
to SuperCard Discussion



Hello Bill,  

Did Rinaldi ever work with SuperCard?

I could not tell, bust most likely not, I am fairly new to SuperCard, I am actually starting to use it with version 4.8.

I am trying to convert an HyperCard / WindowScript project that dates back to end of the 80's, beginning of the 90's. The original project is still in use under OS X Tiger. Until Yosemite, I was able to use it remotely through AppleEvents. This convenience was terminated with OS X Captan. 

In the process of conversion, because of the fair amount of scripting, I found that the best approach is to emulate the old XCMD's and  XCFN, at least as a first step. 

I have in the project a number of stacks with more than a hundred of those, of different sources, about thirty of them were coded internally with CompileIt! But the greatest chunk was provided by Frederic Rinaldi, who was a great contributor to the HyperCard community at the time. Event today I am very thankful to him, as all of his production was included in stacks that provided full documentation and test bench, which is invaluable in the actual process of emulation.

 I have many fond memories using Rinaldi XCMS / XFNCS prior to 1999 when I left the coding world for 17 years.

Yes! found memories! Personally, I left HyperCad coding in 1992, I hired a young fellow to continue the work until 1995 to accomplish what I consider, even to this day, a great project, quite in advance to its days. 

Regards

André Tremblay
PhotoGraphex

Charles Silverman

unread,
Jul 2, 2018, 12:55:09 PM7/2/18
to superca...@googlegroups.com
I seem to remember the Rinaldi Collection offering both SuperCard and somewhat later RunRev externals, or at least labeling his externals for compatibility. 

Charles

Sent from my iPhone

Message has been deleted

codegreen

unread,
Jul 2, 2018, 2:20:48 PM7/2/18
to SuperCard Discussion
Oops, my bad...

Back in early February I rewrote all the date formatting stuff to use the latest Carbon APIs, then updated FileInfo to piggyback onto it to return localized dates (again).

Then in April I discovered there were some subtle and nasty inconsistencies between how those APIs work and what the current Cocoa stuff does, so I reluctantly ripped all the newly updated date formatting code out and replaced it with a pure Cocoa implementation.

Unfortunately I forgot that there was now an external in 4.8 that also read the same STR# resource with the Latin language ISO codes used by the Carbon version, so when I yanked it everywhere suddenly became English again...

This should fix the problem.

Sorry about that...

-Mark


FileInfo.bundle 2.zip

Vince

unread,
Jul 2, 2018, 5:51:43 PM7/2/18
to SuperCard Discussion
OK, I realize I am getting old and stupider by the minute, but when I download that file and unzip it, I get a bundle file. Opening SC and trying to place it into a project like Xtend would be good, but it doesn't let me do that. If I open SC Help and go into Xtend, I see menu for import a new SC XFCN, but the bundle is disabled in the file picker dialog. If I use the "Other" menu in Xtend and select "Import other" (or something like that), I can choose the fileInfo bundle but when I do it says "file contains no resources."  I was thinking that if we were sharing or adding an XFCN that it would be in a project and I could just use the Xtend to copy it into the Xtend project. Fileinfo is an XFCN isn't it?

What am I missing here?

Vince

codegreen

unread,
Jul 2, 2018, 6:01:07 PM7/2/18
to SuperCard Discussion
I don't think the Help system has a UI for importing raw bundles.

You need to import it into a project first using SE or the RTE Resource Manager. From there the Help import function should work (or of course you can just use SE to open Xtend and swap the XFcn out manually).

-Mark

André Tremblay

unread,
Jul 2, 2018, 8:55:12 PM7/2/18
to SuperCard Discussion
Hello Mark,
 
This should fix the problem.

Sure it works and it is already at work!

Thank a bunch!

André Tremblay
PhotoGraphex 
Reply all
Reply to author
Forward
0 new messages