f-script-talk Mailing List for F-Script (Page 16)
Brought to you by:
pmougin
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
(4) |
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(8) |
May
(12) |
Jun
(3) |
Jul
(5) |
Aug
(4) |
Sep
(1) |
Oct
(1) |
Nov
(2) |
Dec
(4) |
2003 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
(14) |
Jun
(5) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
(2) |
Nov
(2) |
Dec
|
2004 |
Jan
(3) |
Feb
(9) |
Mar
(1) |
Apr
(6) |
May
|
Jun
|
Jul
(3) |
Aug
(3) |
Sep
(11) |
Oct
(29) |
Nov
|
Dec
(3) |
2005 |
Jan
(8) |
Feb
(12) |
Mar
|
Apr
(1) |
May
(31) |
Jun
|
Jul
(7) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(2) |
2006 |
Jan
(13) |
Feb
(1) |
Mar
(5) |
Apr
(3) |
May
(1) |
Jun
(13) |
Jul
(2) |
Aug
(22) |
Sep
(15) |
Oct
(1) |
Nov
(1) |
Dec
|
2007 |
Jan
(7) |
Feb
(3) |
Mar
(2) |
Apr
(5) |
May
|
Jun
(6) |
Jul
(2) |
Aug
(1) |
Sep
(2) |
Oct
(3) |
Nov
(12) |
Dec
(5) |
2008 |
Jan
(2) |
Feb
|
Mar
(2) |
Apr
(2) |
May
(4) |
Jun
(31) |
Jul
(9) |
Aug
(10) |
Sep
(3) |
Oct
(4) |
Nov
|
Dec
|
2009 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Philippe M. <pm...@ac...> - 2002-07-24 10:52:44
|
A new super cool version of the famous F-Script Anywhere! http://web.sabi.net/nriley/software/#fsa Best, Phil |
From: Philippe M. <pm...@ac...> - 2002-07-18 14:36:22
|
http://web.sabi.net/nriley/software/#fsa Best, Phil |
From: Philippe M. <pm...@ac...> - 2002-07-15 16:55:34
|
The article is on-line at:=20 http://www.macdevcenter.com/pub/a/mac/2002/07/12/embed_fscript.html The source code package (ready to use Project Builder projects) for all = the examples is at: =20 http://www.fscript.org/download/EmbeddingFScript.tar.gz Best, Phil |
From: Philippe M. <pm...@ac...> - 2002-07-03 11:52:20
|
Hi all, Nicholas Riley has released F-Script Anywhere 1.1.1. This version includes many bug fixes, cleanups, and significantly reduces startup time. It also comes with a nice F-Script code snipet that lets you click on a view to examine it. You can download it from http://web.sabi.net/nriley/software/#fsa Phil. |
From: Philippe M. <pm...@ac...> - 2002-06-07 11:28:01
|
Bob, Thanks for the feedback. The 1.2.2 version is now officially released (it is the same as the one you already have). As for HighLevelOOP.pdf, it is not included by mistake... (Still available directly from the web site). EmbeddingFScriptIntoCocoa.pdf was not in the previous version (actually, it is not released yet), but I have probably sent it to you in a private e-mail (or else, you have entered the twilight zone :-) By the way, I still hope to see it published by O'Reilly soon. Best, Phil PS: Are some of you on the list planning to come to ESUG 2002 this summer? ----- Original Message ----- From: bob ackerman To: f-s...@li... Sent: Thursday, June 06, 2002 7:19 PM Subject: Re: [F-Script-talk] New F-Script version (1.2.2) On Tuesday, June 4, 2002, at 05:12 PM, Philippe Mougin wrote: Hi, You can get the binaries for F-Script 1.2.2 at: http://www.fscript.org/download/FScriptBin-20020604.tar.gz Source code at: http://www.fscript.org/download/FScriptSources-20020604.tar.gz This is a maintenance version that correct several bugs (including the recently discussed block archiving problem). It also comes with a few little goodies. Let me know of any problems you can have with this version. If all seems ok, I will announce the release publicly. works for me. but i am not stressing it. just noting that there a few things in the 1.2.1 dist that aren't in the 1.2.2 dist as it is (FScriptBin-20020604): HighLevelOOP.pdf, EmbeddingFScriptIntoCocoa.pdf intentional? Best, Phil |
From: bob a. <rd...@pa...> - 2002-06-06 17:19:42
|
On Tuesday, June 4, 2002, at 05:12 PM, Philippe Mougin wrote: > Hi, > > You can get the binaries for F-Script 1.2.2 at: > http://www.fscript.org/download/FScriptBin-20020604.tar.gz > > Source code at: > http://www.fscript.org/download/FScriptSources-20020604.tar.gz > > This is a maintenance version that correct several bugs (including the > recently discussed block archiving problem). It also comes with a few > little goodies. > > Let me know of any problems you can have with this version. If all seems > ok, I will announce the release publicly. works for me. but i am not stressing it. just noting that there a few things in the 1.2.1 dist that aren't in the 1.2.2 dist as it is (FScriptBin-20020604): HighLevelOOP.pdf, EmbeddingFScriptIntoCocoa.pdf intentional? > Best, > > Phil |
From: Philippe M. <pm...@ac...> - 2002-06-05 00:15:34
|
Hi, You can get the binaries for F-Script 1.2.2 at: http://www.fscript.org/download/FScriptBin-20020604.tar.gz Source code at: http://www.fscript.org/download/FScriptSources-20020604.tar.gz This is a maintenance version that correct several bugs (including the recently discussed block archiving problem). It also comes with a few little goodies. Let me know of any problems you can have with this version. If all seems ok, I will announce the release publicly. Best, Phil |
From: Philippe M. <pm...@ac...> - 2002-05-28 10:24:25
|
Bill, Thank you for the report. It prompted the discovery of two very serious bugs in the Block archiving support. The first one prevents correct un-archiving of a block with cascade message. The exact nature and scope of the other bug is under investigation at this time (read: I'm not going to sleep a lot this night). Those bugs will be corrected in the next version and a source code patch will be available before that. You should also note that the way you archive the block in your example is not correct. FSUnarchiver is a private class that should not be used; only the F-Script run-time know how to use it. The correct way to save and load objects from F-Script is using the save: and load: methods (cf. section 9 of the guide). So in your example, you would do: > converter save:'/tmp/converter.fsobj' > cvt := sys load:'/tmp/converter.fsobj' Best, Phil ----- Original Message ----- From: "bill fancher" <fa...@pa...> To: <f-s...@li...> Sent: Saturday, May 25, 2002 11:21 PM Subject: [F-Script-talk] FSArchiver/FSUnarchiver bug? > Trying to archive the converter from "Scripting Cocoa with F-Script" I > encountered the following: > > > FSArchiver archiveRootObject: converter toFile: '/tmp/converter.fsobj' > true > > > cvt := FSUnarchiver unarchiveObjectWithFile: '/tmp/converter.fsobj' > > > cvt value: 'moo' > > Uncaught system exception: signal 10 > > This may have something to do with message patterns, as avoiding them > seems to avoid the problem. > > Paste the following into F-Script.app to reproduce: > > converter := [:title | |window conversionScript form button line| > window := NSWindow alloc initWithContentRect:(125<>513 extent:400<>200) > styleMask:NSTitledWindowMask + NSClosableWindowMask > + NSMiniaturizableWindowMask + > NSResizableWindowMask > backing:NSBackingStoreBuffered > defer:NO. > > conversionScript := [(form cellAtIndex:2) setStringValue:(form > cellAtIndex:0) > floatValue * (form cellAtIndex:1) floatValue. form selectTextAtIndex:0]. > > form := (NSForm alloc initWithFrame:(60<>90 extent:320<>85)) autorelease. > form addEntry:@{'Exchange Rate per $1', 'Dollars to Convert', 'Amount in > Other Currency'}. > form setAutosizesCells:YES; setTarget:conversionScript; setAction:#value. > > button := (NSButton alloc initWithFrame:(250<>20 extent:90<>30)) > autorelease. > button setBezelStyle:NSRoundedBezelStyle; setTitle:'Convert'; > setTarget:conversionScript; setAction:#value. > > line := (NSBox alloc initWithFrame:(15<>70 extent:370<>2)) autorelease. > > window contentView addSubview:@{form, button, line}. > window setTitle:title; orderFront:nil. > ]. > FSArchiver archiveRootObject: converter toFile: '/tmp/converter.fsobj'. > cvt := FSUnarchiver unarchiveObjectWithFile: '/tmp/converter.fsobj'. > cvt value: 'moo'. > > -- > bill > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > F-Script-talk mailing list > F-S...@li... > https://lists.sourceforge.net/lists/listinfo/f-script-talk > |
From: bob a. <rd...@pa...> - 2002-05-26 00:00:34
|
On Saturday, May 25, 2002, at 02:21 PM, bill fancher wrote: > Trying to archive the converter from "Scripting Cocoa with F-Script" I > encountered the following: > > FSArchiver archiveRootObject: converter toFile: '/tmp/converter.fsobj' > true > > cvt := FSUnarchiver unarchiveObjectWithFile: '/tmp/converter.fsobj' > > cvt value: 'moo' > Uncaught system exception: signal 10 > This may have something to do with message patterns, as avoiding them > seems to avoid the problem. > > Paste the following into F-Script.app to reproduce: > > converter := [:title | |window conversionScript form button line| > window := NSWindow alloc initWithContentRect:(125<>513 extent:400<>200) > styleMask:NSTitledWindowMask + NSClosableWindowMask > + NSMiniaturizableWindowMask + > NSResizableWindowMask > backing:NSBackingStoreBuffered > defer:NO. > > conversionScript := [(form cellAtIndex:2) setStringValue:(form > cellAtIndex:0) > floatValue * (form cellAtIndex:1) floatValue. form selectTextAtIndex:0] > . > > form := (NSForm alloc initWithFrame:(60<>90 extent:320<>85)) > autorelease. > form addEntry:@{'Exchange Rate per $1', 'Dollars to Convert', 'Amount > in Other Currency'}. note that the line above is where the error occurs. that's your clue. it works in FScript, but not on unarchiving. i would guess that it isn't archiving the item within? and storing off a value that isn't valid on unarchiving. but then again... it the inspector is showing me the actual text that it is failing on, not some pointer thingy. so, i don't know what. post the answer if you figure it out. i have only made half-way through the guide, so i am 1/2 past a total beginner. fun stuff. almost no activity on this list. although i did get responses when i posted questions. from Philippe. if you don't get an answer you could try emailing him directly. i got a response that way the first time i had a problem. actually, i note that you answered my first question on this list. hello, again. > form setAutosizesCells:YES; setTarget:conversionScript; > setAction:#value. > button := (NSButton alloc initWithFrame:(250<>20 extent:90<>30)) > autorelease. > button setBezelStyle:NSRoundedBezelStyle; setTitle:'Convert'; > setTarget:conversionScript; setAction:#value. > > line := (NSBox alloc initWithFrame:(15<>70 extent:370<>2)) autorelease. > > window contentView addSubview:@{form, button, line}. > window setTitle:title; orderFront:nil. > ]. > FSArchiver archiveRootObject: converter toFile: '/tmp/converter.fsobj'. > cvt := FSUnarchiver unarchiveObjectWithFile: '/tmp/converter.fsobj'. > cvt value: 'moo'. > > -- > bill > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > F-Script-talk mailing list > F-S...@li... > https://lists.sourceforge.net/lists/listinfo/f-script-talk > |
From: bill f. <fa...@pa...> - 2002-05-25 21:21:21
|
Trying to archive the converter from "Scripting Cocoa with F-Script" I encountered the following: > FSArchiver archiveRootObject: converter toFile: '/tmp/converter.fsobj' true > cvt := FSUnarchiver unarchiveObjectWithFile: '/tmp/converter.fsobj' > cvt value: 'moo' Uncaught system exception: signal 10 This may have something to do with message patterns, as avoiding them seems to avoid the problem. Paste the following into F-Script.app to reproduce: converter := [:title | |window conversionScript form button line| window := NSWindow alloc initWithContentRect:(125<>513 extent:400<>200) styleMask:NSTitledWindowMask + NSClosableWindowMask + NSMiniaturizableWindowMask + NSResizableWindowMask backing:NSBackingStoreBuffered defer:NO. conversionScript := [(form cellAtIndex:2) setStringValue:(form cellAtIndex:0) floatValue * (form cellAtIndex:1) floatValue. form selectTextAtIndex:0]. form := (NSForm alloc initWithFrame:(60<>90 extent:320<>85)) autorelease. form addEntry:@{'Exchange Rate per $1', 'Dollars to Convert', 'Amount in Other Currency'}. form setAutosizesCells:YES; setTarget:conversionScript; setAction:#value. button := (NSButton alloc initWithFrame:(250<>20 extent:90<>30)) autorelease. button setBezelStyle:NSRoundedBezelStyle; setTitle:'Convert'; setTarget:conversionScript; setAction:#value. line := (NSBox alloc initWithFrame:(15<>70 extent:370<>2)) autorelease. window contentView addSubview:@{form, button, line}. window setTitle:title; orderFront:nil. ]. FSArchiver archiveRootObject: converter toFile: '/tmp/converter.fsobj'. cvt := FSUnarchiver unarchiveObjectWithFile: '/tmp/converter.fsobj'. cvt value: 'moo'. -- bill |
From: Philippe M. <pm...@ac...> - 2002-05-06 14:32:10
|
It is possible to output things on stdout using Cocoa APIs (since, stdout is a UNIX file, you can use the Cocoa file I/O APIs). It is also possible to launch "system commands" from F-Script; Again, you can use standard Cocoa APIs from F-Script to do that. You can also look at the FSTask class that comes with F-Script (this class is not documented but you can figure how it works by looking at source code and the example in the header file). While not completely trivial, it would not be too hard to write a standard UNIX command line tool version of F-Script: a tool that would read its instructions on stdin and produces some output on stdout. But as it stands, it would be far to offer the convenience of Perl to deal with files, systems commands and so on. We would need to add an easy notation to cretate "files" objects and a high-level and well integrated way to deal with "system commands" and to generate output to stdout. Best, Phil ----- Original Message ----- From: "bob ackerman" <rd...@pa...> Subject: [F-Script-talk] stdout in fscripter > i notice that if i have a syntax error in a script, it gets printed out in > the terminal session where i ran the script. > so might it be possible to directly output a string from a script to the > terminal via stdout, say? > a longer shot would be to get command line arguments when running a script. > that would make fscripter a fully functional command line tool. > well, maybe not fully functional - would need a way to execute system > commands from an script and retrieve results from stdin. > thinking of it as high power perl with system level access on one side, > and Cocoa access on the other, with FScript as the language in the middle. > is any of this even feasible - as feature requests? |
From: Philippe M. <pm...@ac...> - 2002-05-03 16:58:46
|
Thanks! Codame for the project was "Fun Script". In the end it became F-Script. Best, Phil ----- Original Message ----- From: "bob ackerman" <rd...@pa...> Subject: Re: [F-Script-talk] Re: inspectWith objects > very good. i am learning - slowly. thank you. > by the way, what does the 'F' in 'F-Script' stand for? > > i wish success to FScript. > |
From: bob a. <rd...@pa...> - 2002-05-03 16:33:00
|
i notice that if i have a syntax error in a script, it gets printed out in the terminal session where i ran the script. so might it be possible to directly output a string from a script to the terminal via stdout, say? a longer shot would be to get command line arguments when running a script. that would make fscripter a fully functional command line tool. well, maybe not fully functional - would need a way to execute system commands from an script and retrieve results from stdin. thinking of it as high power perl with system level access on one side, and Cocoa access on the other, with FScript as the language in the middle. is any of this even feasible - as feature requests? |
From: bob a. <rd...@pa...> - 2002-05-03 16:25:04
|
very good. i am learning - slowly. thank you. by the way, what does the 'F' in 'F-Script' stand for? i wish success to FScript. On Friday, May 3, 2002, at 05:12 AM, Philippe Mougin wrote: > > Note that "#airplane" is just a compact notation equivalent to the > following > block literal: [:arg| arg airplane]. > Actually, you are not restricted to use the compact notation for blocks > when > invoking "inspectWith:", or any other method requiring blocks as > arguments. > Thus, you can express arbitrarily complex expression in your blocks... > > So what you want is: > > F inspectWith:{#ident, [:aFlight | aFlight airplane location]} > > > -- Phil > > ----- Original Message ----- > Subject: [F-Script-talk] inspectWith objects > > trying to use inspectWith on tutorial objects: > F inspectWith:{#ident,#airplane} > > but 'airplane' is an object. > so if i wanted to include, say, 'location' value in the inspectWith, what > would be the syntax. > > this doesn't work: > F inspectWith:{#ident,#airplane location} > |
From: Philippe M. <pm...@ac...> - 2002-05-03 12:15:02
|
Note that "#airplane" is just a compact notation equivalent to the following block literal: [:arg| arg airplane]. Actually, you are not restricted to use the compact notation for blocks when invoking "inspectWith:", or any other method requiring blocks as arguments. Thus, you can express arbitrarily complex expression in your blocks... So what you want is: F inspectWith:{#ident, [:aFlight | aFlight airplane location]} -- Phil ----- Original Message ----- Subject: [F-Script-talk] inspectWith objects trying to use inspectWith on tutorial objects: F inspectWith:{#ident,#airplane} but 'airplane' is an object. so if i wanted to include, say, 'location' value in the inspectWith, what would be the syntax. this doesn't work: F inspectWith:{#ident,#airplane location} |
From: Philippe M. <pm...@ac...> - 2002-05-03 12:03:26
|
Hi Bob, You can't really make an alias for a message send using F-Script. However, what you can do to avoid retyping a lengthy sequence of code is to factorize it in a block. For instance, here is a block that will send your specific "inspectWith:" message to the provided argument. ins := [:inpectedObject | inspectedObject inspectWith:{#name, #address, #salary}] You can then execute the block by sending it a "value" message and providing the required argument. For example: ins value:(P at:P address = 'PARIS') Best, Phil ----- Original Message ----- From: bob ackerman To: f-s...@li... Sent: Thursday, May 02, 2002 5:48 AM Subject: [F-Script-talk] make an alias i saw a nice command in the tutorial: inspectWith:{#name, #address, #salary} so i tried it with another command: (P at:P address = 'PARIS') inspectWith:{#name, #address, #salary} and it worked. good. so i thought it would be nice to have an alias for it. but i couldn't figure out how. i tried putting it in a block: ins := [inspectWith:{#name, #address, #salary}] but that didn't work. any way to make an alias for it? |
From: bob a. <rd...@pa...> - 2002-05-02 04:13:20
|
trying to use inspectWith on tutorial objects: F inspectWith:{#ident,#airplane} but 'airplane' is an object. so if i wanted to include, say, 'location' value in the inspectWith, what would be the syntax. this doesn't work: F inspectWith:{#ident,#airplane location} |
From: bob a. <rd...@pa...> - 2002-05-02 03:48:38
|
i saw a nice command in the tutorial: inspectWith:{#name, #address, #salary} so i tried it with another command: (P at:P address = 'PARIS') inspectWith:{#name, #address, #salary} and it worked. good. so i thought it would be nice to have an alias for it. but i couldn't figure out how. i tried putting it in a block: ins := [inspectWith:{#name, #address, #salary}] but that didn't work. any way to make an alias for it? |
From: bob a. <rd...@pa...> - 2002-05-01 04:12:27
|
i want to see results of actions in my script. they don't show up in terminal, nor console, nor a file redirect. if i put '5 + 7' in a script can i see/print/write the result? |
From: Sven A. S. <sve...@ma...> - 2002-04-29 15:43:09
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bob, you're right, I can reproduce the error now. Seems like this bug has been obscured by my test setup. I don't know how the fscripter path can be relevant after its successful start. Maybe the NSNotification center somehow uses the program's path to deliver notifications (judging from the error message the notification delivery is where the problem occurs) and the startup path is different than the one in the shebang line. I don't know when I will have time to look at this... If you can live with it, so can I :-) Cheers, Sven On Monday, April 29, 2002, at 04:35 AM, bob ackerman wrote: > oh. if i run my script in same directory as the fscripter file, it > works. > i had fscripter in a different directory than my script with a full > path in the shebang line. > now it works with first line as: #! fscripter > which is how examples are written. > so i guess it has always been this way? > i can live with it this way. > > > _______________________________________________ > F-Script-talk mailing list > F-S...@li... > https://lists.sourceforge.net/lists/listinfo/f-script-talk > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (Darwin) Comment: For info see http://www.gnupg.org iD8DBQE8zWoHVpUkGuwnAeURAm+FAJ9+CPrw3XxqzijkGJTc2g6DDF8dFACeO5Wz aIjt76eCaVQUzPU9+DuoFKk= =9Q/K -----END PGP SIGNATURE----- |
From: Philippe M. <pm...@ac...> - 2002-04-29 10:00:20
|
Hi Bob, > is there a concept of a subroutine in F-Script? so a full app could be created? F-Script blocks allow you to write F-Script "subroutines". Blocks can takes parameters and return a result, they have local variables, and also a few more interesting capacities (see "bBock closure" in the Smalltalk literature). > or is it meant to be included in a 'real' app using C or Java and called > from there? Blocks can be invoked from F-Script code, and also from Objective-C. In addition, F-Script comes as a framework you can link with your own applications. This makes it relatively easy to build an "Objective-C" app for which most of the code is in fact written in F-Script. > but it is interactive, so how used from an app that feeds it input and gets > output from it? i feel like i don't get it :)-:(. F-Script gives you the option of accessing the scripting engine programmatically. See the FSInterpreter class documentation. Best, Phil |
From: bob a. <rd...@pa...> - 2002-04-29 02:35:24
|
oh. if i run my script in same directory as the fscripter file, it works. i had fscripter in a different directory than my script with a full path in the shebang line. now it works with first line as: #! fscripter which is how examples are written. so i guess it has always been this way? i can live with it this way. |
From: bob a. <rd...@pa...> - 2002-04-29 01:16:54
|
has anyone tried fscripter with FScript-1.2.1? I get an error when i run it trying to create a window: 2002-04-26 21:16:37.267 fscripter[476] looking for fsMenuHandler... 2002-04-26 21:16:37.278 fscripter[476] new instance 2002-04-26 21:16:38.394 fscripter[476] creating fscript object... 2002-04-26 21:16:38.722 fscripter[476] Error 1011 in _sendFinishLaunchingNotification author of fscripter suggests it may not work with FScript 1.2.1. is there a concept of a subroutine in F-Script? so a full app could be created? or is it meant to be included in a 'real' app using C or Java and called from there? but it is interactive, so how used from an app that feeds it input and gets output from it? i feel like i don't get it :)-:(. |
From: Nathan S. <st...@jp...> - 2002-04-26 21:51:47
|
What if.... F-Script's object browser could be implemented on some sort of iPod type device with a jog wheel. When the user needs to input text or numbers there's have to be some sort of letter-number "spinner" which might be problematic... but I think a lot could be done with an object browser and a jog wheel... anyway, it's fun to daydream about an f-script PDA.... -Nathan Strange |
From: Philippe M. <pm...@ac...> - 2002-04-26 11:43:06
|
Nicholas Riley has released F-Script Anywhere 1.1. This version includes user interface tweaks, fixes for a few minor bugs, and support for = F-Script 1.2.1. You can get it at http://web.sabi.net/nriley/software/ Best, Phil |