Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Can't double-click rebol scripts on iMac

From: joel:neely:fedex at: 26-Aug-2002 7:41

Hi, Andrew, Andrew Martin wrote:
> There has to be an association in the operating system between > files with the extension ".r" and the Rebol interpreter. >
No. You're describing the Visual CP/M method, not the standard MacOS mechanism. With MacOS, the directory entry of each file has two attributes "creator" and "file type" which are normally set by the application that creates the file. The "creator" attribute tells which application to launch when the file is double-clicked (usually the creating application itself), and the "file type" allows an application to have multiple "flavors" of documents (e.g. end-user documents vs. read-only templates) that it treats differently. Doing this with a one-to-three-letter suffix on the file name itself is a very fragile substitute used by some big company in Redmond, based on legacy designs going back at least to the early 1970's. It's very easy for the user to change the suffix accidentally while renaming a file, and then the relationship is broken.
> With > this association, the iMac operating system will automatically > launch Rebol and "give it" the file that's been double clicked > on. The association is usually created when Rebol/View is > installed, but not for Rebol/Core. > > Perhaps you could try installing Rebol/View on your iMac? >
I don't know what OS is running on Sabin's system, but View is not yet available for MacOS/X; it's been marked "pending" on the RT web site for a long time. I've been watching for it, as my main laptop these days is an iBook running OS/X. I'm thoroughly happy with it except for the fact that I'm excluded from doing anything in View. I normally work on a combination of MacOS, w2k, w95, Solaris, and a little HP-U/X, so I try to avoid becoming dependent on anything that I can't use across all platforms. -jn- -- ; Joel Neely joeldotneelyatfedexdotcom REBOL [] do [ do func [s] [ foreach [a b] s [prin b] ] sort/skip do function [s] [t] [ t: "" foreach [a b] s [repend t [b a]] t ] { | e s m!zauafBpcvekexEohthjJakwLrngohOqrlryRnsctdtiub} 2 ]