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

[REBOL] Re: Watson - what is so special about it?

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

Hi, Petr, Sabin can correct me if I misunderstood ... Petr Krenzelok wrote:
> Sabin Densmore wrote: > > > An instance of Rebol has to be running in order to execute the > > .r scripts -- or am I missing something? > > > > I ended up using Applescript, because it would run on double- > > click from the desktop. Same with some apps I'm working on for > > windows -- Rebol has to be running to launch the apps. > > > > Sorry, buti it completly escapes my understanding, what you are > talking about? How do you want to run Rebol script without > running Rebol? And what magic do you think runs your AppleScript?
... but I believe that Sabin is referring to the fact that a Mac user normally doesn't start an application and then open a file within that application, but simply double-clicks on a document (file) and the appropriate application is automatically launched and the file is loaded (or run, as appropriate). Other interpreted languages I've used in the Mac environment have their own embedded editors; script files are actually created by the interpreter, which records itself as the application to be run when the script file is double-clicked. The "magic" that runs AppleScript (or any other truly Mac-aware language) works in that fashion. The information about which application owns a document is stored in the directory entry, instead of being exposed in the file name, so that the user doesn't normally ever think about it, and can't accidentally mess it up by changing the file name, as can happen in the primitive system used by Visual CP/M (AKA windows). Manipulating this hidden information to change which application runs when a file is double-clicked (e.g. instead of running the text editor used to create the REBOL script file, launch REBOL itself and ask it to load the double-clicked file) is not usually done by end users in MacOS (and they normally don't *need* to do that kind of thing if they use MacOS-aware applications that can create their own types of files). -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 ]