f-script-talk Mailing List for F-Script (Page 2)
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: Tommy S. <TO...@HE...> - 2008-07-13 14:55:53
|
I've encountered an problem when using Scripting Bridge to control MindManager. (F-script 2.0 alpha 4) First some setup code: mindManager := SBApplication applicationWithBundleIdentifier: 'com.mindjet.mindmanager.7' d := mindManager documents objectWithName: 'Applescript, Python och andra sätt att styra macen' Then if I do like this: > (d topics) task I get a list of SBObjects, like this one: <SBObject @0xbe16a0: task of MindManagerTopic id "3CABF503-13D3-487B-BA14-7E000E6AA2B7" of MindManagerDocument "Mindmap" of application "MindManager" (1263)> But, if I do like this: > (d topics at:1) task I get a MindManagerTask object, like this one: <MindManagerTask @0xbd2120: task of MindManagerTopic 1 of MindManagerDocument "Mindmap" of application "MindManager" (1263)> I'm a F-script newbee, but am I correct in assuming that these two operations are supposed to result in the same type of objects? /Tommy |
From: Tommy S. <to...@he...> - 2008-07-12 23:00:28
|
I belive the problem is a new security feature in Leopard. See http://osiris.laya.com/blog/?p=21#comment-22322 (Since an earlier version of F-script Anywhere added the user to the procmod group, this probably only bites new users.) ------------------------------------------------------------------ Tommy Sundström 070-213 09 20 to...@he... Helt Enkelt ab Kockumsgatan 3 B se-211 42 Malmö Blogg: http://www.anvandbart.se Jaiku: http://tommysundstrom.jaiku.com ------------------------------------------------------------------ |
From: Peter J. H. <hph...@ju...> - 2008-07-02 14:42:04
|
Thanks for your reply! Am 02.07.2008 um 15:55 schrieb Nathan Strange: > Maybe the F-Script Anywhere application was installed as root. > Using get info in the finder (command-I) may shed some light on the > problem. The F-Script Anywhere application was installed by me from my admin account. I just trashed the app and reinstalled it from the FScriptBin-20080516 distribution from Philippes site. I took care to use the version for OS 10.5. No change. (I am on 10.5.4 currently.) Permissions on the app are: - my current account: read-write - staff and everyone: read only or drwxr-xr-x when doing ls -l from my current admin account I previously had added admin read-write, with no change. Now I downloaded FSA once again from Robert Chin's blog at http://osiris.laya.com/blog/?p=24 Same story when launched from the Finder and from the Terminal (both proposed options), except the error message is different: F-Script Anywhere was unable to install itself in the selected application (process ID 61117), because an error of type -134217726 occurred. The FSA from the binary distro, however, returns: F-Script Anywhere was unable to install itself in the selected application (process ID 61117), because F-Script Anywhere must be installed in a Cocoa application running as the current user. You may be attempting to install in a setuid application, which is not supported. The most interesting thing is that my previously proposed solution works only with the app from Philippe's binary distribution and NOT with the FSA downloaded from Robert Chin's blog. So there are clearly two different versions labeled 1.3.1. > You can also experiment with the unix 'open' command which is like > double clicking on an app. > > i.e. try: > > open /Applications/Programming/FScriptBin/F-Script\ Anywhere.app > sudo open /Applications/Programming/FScriptBin/F-Script\ Anywhere.app > > if neither of these work, something is wonky with the bundle. If > only the second one works, something is wonky with the permissions > on the bundle. Both fail - even after reinstalling the app from the freshly extracted binary distribution. The app launches of course but F-Script injection fails. This is all very odd. I would like to try the source but the source for v. 1.3.1 does not seem to be available. Something is rotten here. What is going on? Thanks for any pointers for troubleshooting this matter. Thanks again, Peter > On Jul 2, 2008, at 3:33 AM, Peter J.Hartmann wrote: > >> Philippe, >> >> I finally managed to use F-Script Anywhere successfully. >> The solution, however, is odd: I launch the app from the terminal >> using >> >> sudo /Applications/Programming/FScriptBin/F-Script\ Anywhere.app/ >> Contents/MacOS/F-Script\ Anywhere >> >> Why is this? Why is it, that for other users there seems no need to >> do. >> >> I am running it from an Admin-Account. >> F-Script Anywhere therefore is running as root, whereas all the >> target >> apps are running under my admin log-in name. >> Both F-Script Anywhere and the target apps have read-write-access >> from >> my admin account and the admin group. >> >> What might be happening. >> Repairing access privileges using Disk Utility made no difference. >> >> Thanks again, >> >> Peter >> >> Am 23.06.2008 um 22:37 schrieb Philippe Mougin: >> >>> Hi Peter, >>> >>> It works well for me (Mac OS X 10.5 Intel, F-Script Anywhere >>> 1.3.1). What platform are you running on ? Which version of F- >>> Script Anywhere ? >>> >>> Philippe >>> >>> Le 20 juin 08 à 21:52, Peter J.Hartmann a écrit : >>> >>>> >>>> Hi, >>>> >>>> I'd have liked to make Preview.app somewhat scriptable. >>>> >>>> I downloaded the most recent F-Script binary but it turns out >>>> that I >>>> am unable to inject F-Script into any application but itself >>>> (i.e. F- >>>> Script Anywhere). >>>> >>>> I invariably get the following message: >>>> >>>> F-Script Anywhere was unable to install itself in the selected >>>> application (process ID 492), because F-Script Anywhere must be >>>> installed in a Cocoa application running as the current user. >>>> >>>> You may be attempting to install in a setuid application, which is >>>> not >>>> supported. >>>> >>>> This is a bit cryptic. >>>> >>>> Preview.app, Mail and all the others shown in the list of running >>>> applications certainly are Cocoa apps. >>>> They are all launched from my user account and run under my user >>>> name. >>>> >>>> Furthermore, what is a setuid application? >>>> >>>> I suspected a conflict with input managers, removed them and >>>> rebooted >>>> the machine. >>>> >>>> No avail. >>>> >>>> Any ideas? >>>> >>>> Thanks a lot! >>>> >>>> ___ Peter Hartmann ________ >>> >>> >>> >> >> >> ___ Peter Hartmann ________ >> >> mailto:hph...@ju... >> >> >> >> ------------------------------------------------------------------------- >> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! >> Studies have shown that voting for your favorite open source project, >> along with a healthy diet, reduces your potential for chronic >> lameness >> and boredom. Vote Now at http://www.sourceforge.net/community/cca08 >> _______________________________________________ >> F-Script-talk mailing list >> F-S...@li... >> https://lists.sourceforge.net/lists/listinfo/f-script-talk > > > ___ Peter Hartmann ________ mailto:hph...@ju... |
From: Nathan S. <nst...@ma...> - 2008-07-02 13:53:07
|
Maybe the F-Script Anywhere application was installed as root. Using get info in the finder (command-I) may shed some light on the problem. You can also experiment with the unix 'open' command which is like double clicking on an app. i.e. try: open /Applications/Programming/FScriptBin/F-Script\ Anywhere.app sudo open /Applications/Programming/FScriptBin/F-Script\ Anywhere.app if neither of these work, something is wonky with the bundle. If only the second one works, something is wonky with the permissions on the bundle. hope that is helpful... -Nathan On Jul 2, 2008, at 3:33 AM, Peter J.Hartmann wrote: > Philippe, > > I finally managed to use F-Script Anywhere successfully. > The solution, however, is odd: I launch the app from the terminal > using > > sudo /Applications/Programming/FScriptBin/F-Script\ Anywhere.app/ > Contents/MacOS/F-Script\ Anywhere > > Why is this? Why is it, that for other users there seems no need to > do. > > I am running it from an Admin-Account. > F-Script Anywhere therefore is running as root, whereas all the target > apps are running under my admin log-in name. > Both F-Script Anywhere and the target apps have read-write-access from > my admin account and the admin group. > > What might be happening. > Repairing access privileges using Disk Utility made no difference. > > Thanks again, > > Peter > > Am 23.06.2008 um 22:37 schrieb Philippe Mougin: > >> Hi Peter, >> >> It works well for me (Mac OS X 10.5 Intel, F-Script Anywhere >> 1.3.1). What platform are you running on ? Which version of F- >> Script Anywhere ? >> >> Philippe >> >> Le 20 juin 08 à 21:52, Peter J.Hartmann a écrit : >> >>> >>> Hi, >>> >>> I'd have liked to make Preview.app somewhat scriptable. >>> >>> I downloaded the most recent F-Script binary but it turns out that I >>> am unable to inject F-Script into any application but itself >>> (i.e. F- >>> Script Anywhere). >>> >>> I invariably get the following message: >>> >>> F-Script Anywhere was unable to install itself in the selected >>> application (process ID 492), because F-Script Anywhere must be >>> installed in a Cocoa application running as the current user. >>> >>> You may be attempting to install in a setuid application, which is >>> not >>> supported. >>> >>> This is a bit cryptic. >>> >>> Preview.app, Mail and all the others shown in the list of running >>> applications certainly are Cocoa apps. >>> They are all launched from my user account and run under my user >>> name. >>> >>> Furthermore, what is a setuid application? >>> >>> I suspected a conflict with input managers, removed them and >>> rebooted >>> the machine. >>> >>> No avail. >>> >>> Any ideas? >>> >>> Thanks a lot! >>> >>> ___ Peter Hartmann ________ >> >> >> > > > ___ Peter Hartmann ________ > > mailto:hph...@ju... > > > > ---------------------------------------------------------------------- > --- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > F-Script-talk mailing list > F-S...@li... > https://lists.sourceforge.net/lists/listinfo/f-script-talk |
From: Peter J. H. <hph...@ju...> - 2008-07-02 10:33:46
|
Philippe, I finally managed to use F-Script Anywhere successfully. The solution, however, is odd: I launch the app from the terminal using sudo /Applications/Programming/FScriptBin/F-Script\ Anywhere.app/ Contents/MacOS/F-Script\ Anywhere Why is this? Why is it, that for other users there seems no need to do. I am running it from an Admin-Account. F-Script Anywhere therefore is running as root, whereas all the target apps are running under my admin log-in name. Both F-Script Anywhere and the target apps have read-write-access from my admin account and the admin group. What might be happening. Repairing access privileges using Disk Utility made no difference. Thanks again, Peter Am 23.06.2008 um 22:37 schrieb Philippe Mougin: > Hi Peter, > > It works well for me (Mac OS X 10.5 Intel, F-Script Anywhere > 1.3.1). What platform are you running on ? Which version of F- > Script Anywhere ? > > Philippe > > Le 20 juin 08 à 21:52, Peter J.Hartmann a écrit : > >> >> Hi, >> >> I'd have liked to make Preview.app somewhat scriptable. >> >> I downloaded the most recent F-Script binary but it turns out that I >> am unable to inject F-Script into any application but itself (i.e. F- >> Script Anywhere). >> >> I invariably get the following message: >> >> F-Script Anywhere was unable to install itself in the selected >> application (process ID 492), because F-Script Anywhere must be >> installed in a Cocoa application running as the current user. >> >> You may be attempting to install in a setuid application, which is >> not >> supported. >> >> This is a bit cryptic. >> >> Preview.app, Mail and all the others shown in the list of running >> applications certainly are Cocoa apps. >> They are all launched from my user account and run under my user >> name. >> >> Furthermore, what is a setuid application? >> >> I suspected a conflict with input managers, removed them and rebooted >> the machine. >> >> No avail. >> >> Any ideas? >> >> Thanks a lot! >> >> ___ Peter Hartmann ________ > > > ___ Peter Hartmann ________ mailto:hph...@ju... |
From: Philippe M. <pm...@ac...> - 2008-06-29 21:21:37
|
Among other things, this version fixes the cascade regression. Cascades now work reliably. Also of interest: methods defined using F-Script now have access to the _cmd argument. Binaries: http://www.fscript.org/download/FScriptBin-2_0_alpha.zip Sources: http://www.fscript.org/download/FScriptSources-2_0_alpha.zip -Philippe |
From: Philippe M. <pm...@ac...> - 2008-06-29 04:03:03
|
There is a complete F-Script bundle for the TextMate editor (http://macromates.com/ ) You can install it by following the instruction in TextMate's help (section 5.7: Getting More Bundle) Philippe Le 19 juin 08 à 20:45, Arcadio Rubio García a écrit : > Hi, > > I'm new to F-Script and I've just started a project that will involve > a pretty decent amount of F-Script coding. > > Is there any editor that provides F-Script support (e.g. an Emacs > mode)? What editor do you use? > > Thanks in advance. > > - Arcadio |
From: Philippe M. <pm...@ac...> - 2008-06-25 21:52:29
|
David, Thanks for your example. There is a regression in F-Script 2.0 alpha 3 with regard to cascades (i.e., not specifically related to the use of the scripting bridge). I'm going to look at this further and fix it for alpha 4. Meanwhile, avoid using cascades altogether. Philippe Le 25 juin 08 à 15:37, David J. Goehrig a écrit : > I managed to work around it but the general gist is: > > sba := SBApplication applicaitonWithBundleIdentifier: > 'com.apple.quicktimeplayer'. > mov1 := (sba open: '/Users/dave/Desktop/Sing.alternate.mov') at: 0. > mov1 selectAt: 9000 to: 18000; copy. > > Crashes. But: > > sba := SBApplication applicaitonWithBundleIdentifier: > 'com.apple.quicktimeplayer'. > mov1 := (sba open: '/Users/dave/Desktop/Sing.alternate.mov') at: 0. > mov1 selectAt: 9000 to: 18000. > mov1 copy. > > Works! > > However: > > mov2 := (sba open: '/Users/dave/Desktop/target.mov') at: 0. > mov2 setCurrentTime: mov2 duration; paste. > > Also works! > So it seems to be some sort of weird interaction between message > passing, the scripting bridge, and the specific set of operations. > > I haven't had time to delve into it further. > > Dave > > > > -- > > David J. Goehrig > > > Email: da...@ne... > > |
From: Peter J. H. <hph...@ju...> - 2008-06-24 07:30:57
|
Philippe, OS 10.5.3 PPC (Dual G4 867 MHZ) with current F-Script binary distribution, i.e. Script Anywhere 1.3.1. Thanks for any pointers to troubleshoot this situation. What might possibly interfere? If I had access to the source I could try to run it in the debugger, but so I am at my wit's end. I suspect that the error message is bogus somehow, i.e. an error message originally intended for a different error. This, BTW, are the system.log messages I get right after launching the app and trying to inject into an application: Jun 24 09:25:48 DerG4 /Applications/Programming/FScriptBin/F-Script Anywhere.app/Contents/MacOS/F-Script Anywhere[32197]: CPSGetNextProcess(): This call is deprecated and should not be called anymore. Jun 24 09:25:48 DerG4 /Applications/Programming/FScriptBin/F-Script Anywhere.app/Contents/MacOS/F-Script Anywhere[32197]: CPSGetProcessInfo(): This call is deprecated and should not be called anymore. Jun 24 09:25:48 DerG4 /Applications/Programming/FScriptBin/F-Script Anywhere.app/Contents/MacOS/F-Script Anywhere[32197]: CPSPBGetProcessInfo(): This call is deprecated and should not be called anymore. Jun 24 09:25:48 DerG4 [0x0-0x217217].net.sabi.FScriptAnywhereApp[32197]: libMatch: object: / Applications/DocViewers/Adobe Reader 8/Adobe Reader.app/Contents/MacOS/ AdobeReader malformed object (unknown load command 12) Jun 24 09:25:48 DerG4 [0x0-0x217217].net.sabi.FScriptAnywhereApp[32197]: libMatch: for architecture i386 object: /System/Library/CoreServices/Finder.app/ Contents/MacOS/Finder malformed object (unknown load command 9) Jun 24 09:25:48 DerG4 [0x0-0x217217].net.sabi.FScriptAnywhereApp[32197]: libMatch: for architecture ppc7400 object: /System/Library/CoreServices/Finder.app/ Contents/MacOS/Finder malformed object (unknown load command 8) Jun 24 09:25:48 DerG4 [0x0-0x217217].net.sabi.FScriptAnywhereApp[32197]: libMatch: for architecture i386 object: /System/Library/CoreServices/Finder.app/ Contents/MacOS/Finder malformed object (unknown load command 9) Jun 24 09:25:48 DerG4 [0x0-0x217217].net.sabi.FScriptAnywhereApp[32197]: libMatch: for architecture ppc7400 object: /System/Library/CoreServices/Finder.app/ Contents/MacOS/Finder malformed object (unknown load command 8) Jun 24 09:25:48 DerG4 F-Script Anywhere[32197]: our pid 32197 Jun 24 09:25:49 DerG4 [0x0-0x217217].net.sabi.FScriptAnywhereApp[32197]: libMatch: object: / Applications/DocViewers/Adobe Reader 8/Adobe Reader.app/Contents/MacOS/ AdobeReader malformed object (unknown load command 12) Jun 24 09:25:49 DerG4 [0x0-0x217217].net.sabi.FScriptAnywhereApp[32197]: libMatch: for architecture i386 object: /System/Library/CoreServices/Finder.app/ Contents/MacOS/Finder malformed object (unknown load command 9) Jun 24 09:25:49 DerG4 [0x0-0x217217].net.sabi.FScriptAnywhereApp[32197]: libMatch: for architecture ppc7400 object: /System/Library/CoreServices/Finder.app/ Contents/MacOS/Finder malformed object (unknown load command 8) Jun 24 09:25:49 DerG4 [0x0-0x217217].net.sabi.FScriptAnywhereApp[32197]: libMatch: for architecture i386 object: /System/Library/CoreServices/Finder.app/ Contents/MacOS/Finder malformed object (unknown load command 9) Jun 24 09:25:49 DerG4 [0x0-0x217217].net.sabi.FScriptAnywhereApp[32197]: libMatch: for architecture ppc7400 object: /System/Library/CoreServices/Finder.app/ Contents/MacOS/Finder malformed object (unknown load command 8) Jun 24 09:25:51 DerG4 /usr/sbin/ocspd[32203]: starting Thanks again, Peter Am 23.06.2008 um 22:37 schrieb Philippe Mougin: > Hi Peter, > > It works well for me (Mac OS X 10.5 Intel, F-Script Anywhere > 1.3.1). What platform are you running on ? Which version of F- > Script Anywhere ? > > Philippe > > Le 20 juin 08 à 21:52, Peter J.Hartmann a écrit : > >> >> Hi, >> >> I'd have liked to make Preview.app somewhat scriptable. >> >> I downloaded the most recent F-Script binary but it turns out that I >> am unable to inject F-Script into any application but itself (i.e. F- >> Script Anywhere). >> >> I invariably get the following message: >> >> F-Script Anywhere was unable to install itself in the selected >> application (process ID 492), because F-Script Anywhere must be >> installed in a Cocoa application running as the current user. >> >> You may be attempting to install in a setuid application, which is >> not >> supported. >> >> This is a bit cryptic. >> >> Preview.app, Mail and all the others shown in the list of running >> applications certainly are Cocoa apps. >> They are all launched from my user account and run under my user >> name. >> >> Furthermore, what is a setuid application? >> >> I suspected a conflict with input managers, removed them and rebooted >> the machine. >> >> No avail. >> >> Any ideas? >> >> Thanks a lot! >> >> ___ Peter Hartmann ________ > > > ___ Peter Hartmann ________ mailto:hph...@ju... |
From: Philippe M. <pm...@ac...> - 2008-06-23 22:34:49
|
Great. BTW, if you haven't read it yet, you will find some useful information on the design of the optimized array programming model in the OOPAL paper, section 8.2, at http://www.fscript.org/documentation/OOPAL.pdf Philippe Le 24 juin 08 à 00:23, Peter A Passaro a écrit : > > Excellent, thanks again Philippe, that is exactly what I was looking > for. I do need every bit of speed I can get as I am working with data > sets of a few Gb in size and performing a number of intensive > operations on them, so I'll try to apply my optimization tricks where > appropriate. I'll start experimenting and let you know how it turns > out. > > Peter > > On 23 Jun 2008, at 20:23, Philippe Mougin wrote: > >> Peter, >> >> You'll not need to modify the existing F-Script source code. The >> system is extensible and you can achieve what you want in a modular >> way by putting your code in Objective-C categories that you can >> build as separate bundles and load dynamically if you want. >> >> For method that deal with whole arrays (i.e., that have no meaning >> for single numbers; e.g. calculating an average value given an array >> of numbers), you should first implement your method in a category of >> NSArray, in order to deal with the situation where you'd have an >> array of NSNumber objects. See for instance how the method "reverse" >> is implemented in F-Script's FSNSArray category. In your case you'll >> also need to make sure you raise an error if objects other that >> NSNumbers are found in the array. Then, if you want to have >> optimized implementations for situations where F-Script is able to >> determine that the array is made of numbers, you should add little >> stubs in a category of Array (again, for an example, see how the >> "reverse" method is implemented in the Array class) as well as your >> optimized implementations in a category of ArrayRepDouble (see how >> the "reverse" method is implemented in the ArrayRepDouble class). >> >> For math methods that make sense on single numbers (like cos, sin, >> abs, etc.), you should first implement your method on single number >> objects. To do that, implement them for NSNumber objects in your own >> category of NSNumber (look at FSNSNumber for examples). Note that, >> at this point, you automatically get array programming for these >> methods. F-Script will take care of automatically broadcasting >> messages when you deal with arrays. In general this is fast enough. >> If you need to go even faster, you can implement optimized versions >> of your methods in a category of ArrayRepDouble. You'll just have to >> add simpleLoop_xxx or doubleLoop_xxx methods in your category >> (depending on the message pattern your math operation supports). See >> ArrayRepDouble.m for example of implementing these simpleLoop_xxx >> and doubleLoop_xxx methods. >> >> Feel free to ask for further clarifications if needed. >> >> Philippe >> >> Le 23 juin 08 à 19:29, Peter A Passaro a écrit : >> >>> >>> Hi Philippe and All, >>> >>> I'm starting to work my way through the F-Script framework code, and >>> the first thing I would like to do is add some additional math >>> operators to the ArrayRepDouble class. Could you possibly give me a >>> quick overview of the framework classes I will need to modify in >>> order >>> for this to work properly? >>> >>> Specifically, what I would like to add is a bunch of statistics and >>> vector operations for arrays of doubles. I have been writing Obj-C >>> wrappers (or alternative functions) for many of the functions in the >>> GNU Scientific Library, and I would like to bring these into F- >>> Script >>> so I can avoid the back and forth conversion of arrays of doubles- >>>> NSNumbers->doubles. >>> >>> I may also be interested in contributing a plotting/graphing >>> application for arrays of doubles to F-Script, I have one I am >>> developing for visualizing large time series data sets that will >>> probably work well. Let me know if this might be interesting. >>> >>> Best, >>> Peter >>> >>> Peter Passaro >>> Research Officer >>> Dept of Informatics/Dept of Biology >>> Pevensey III >>> University of Sussex >>> Falmer, Brighton BN1 9QH, UK >>> Office + 44 (0)1273 877590 >>> P.A...@su... |
From: Peter A P. <p.a...@su...> - 2008-06-23 22:23:28
|
Excellent, thanks again Philippe, that is exactly what I was looking for. I do need every bit of speed I can get as I am working with data sets of a few Gb in size and performing a number of intensive operations on them, so I'll try to apply my optimization tricks where appropriate. I'll start experimenting and let you know how it turns out. Peter On 23 Jun 2008, at 20:23, Philippe Mougin wrote: > Peter, > > You'll not need to modify the existing F-Script source code. The > system is extensible and you can achieve what you want in a modular > way by putting your code in Objective-C categories that you can > build as separate bundles and load dynamically if you want. > > For method that deal with whole arrays (i.e., that have no meaning > for single numbers; e.g. calculating an average value given an array > of numbers), you should first implement your method in a category of > NSArray, in order to deal with the situation where you'd have an > array of NSNumber objects. See for instance how the method "reverse" > is implemented in F-Script's FSNSArray category. In your case you'll > also need to make sure you raise an error if objects other that > NSNumbers are found in the array. Then, if you want to have > optimized implementations for situations where F-Script is able to > determine that the array is made of numbers, you should add little > stubs in a category of Array (again, for an example, see how the > "reverse" method is implemented in the Array class) as well as your > optimized implementations in a category of ArrayRepDouble (see how > the "reverse" method is implemented in the ArrayRepDouble class). > > For math methods that make sense on single numbers (like cos, sin, > abs, etc.), you should first implement your method on single number > objects. To do that, implement them for NSNumber objects in your own > category of NSNumber (look at FSNSNumber for examples). Note that, > at this point, you automatically get array programming for these > methods. F-Script will take care of automatically broadcasting > messages when you deal with arrays. In general this is fast enough. > If you need to go even faster, you can implement optimized versions > of your methods in a category of ArrayRepDouble. You'll just have to > add simpleLoop_xxx or doubleLoop_xxx methods in your category > (depending on the message pattern your math operation supports). See > ArrayRepDouble.m for example of implementing these simpleLoop_xxx > and doubleLoop_xxx methods. > > Feel free to ask for further clarifications if needed. > > Philippe > > Le 23 juin 08 à 19:29, Peter A Passaro a écrit : > >> >> Hi Philippe and All, >> >> I'm starting to work my way through the F-Script framework code, and >> the first thing I would like to do is add some additional math >> operators to the ArrayRepDouble class. Could you possibly give me a >> quick overview of the framework classes I will need to modify in >> order >> for this to work properly? >> >> Specifically, what I would like to add is a bunch of statistics and >> vector operations for arrays of doubles. I have been writing Obj-C >> wrappers (or alternative functions) for many of the functions in the >> GNU Scientific Library, and I would like to bring these into F-Script >> so I can avoid the back and forth conversion of arrays of doubles- >>> NSNumbers->doubles. >> >> I may also be interested in contributing a plotting/graphing >> application for arrays of doubles to F-Script, I have one I am >> developing for visualizing large time series data sets that will >> probably work well. Let me know if this might be interesting. >> >> Best, >> Peter >> >> Peter Passaro >> Research Officer >> Dept of Informatics/Dept of Biology >> Pevensey III >> University of Sussex >> Falmer, Brighton BN1 9QH, UK >> Office + 44 (0)1273 877590 >> P.A...@su... >> >> >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> F-Script-talk mailing list >> F-S...@li... >> https://lists.sourceforge.net/lists/listinfo/f-script-talk >> > > |
From: Philippe M. <pm...@ac...> - 2008-06-23 20:37:39
|
Hi Peter, It works well for me (Mac OS X 10.5 Intel, F-Script Anywhere 1.3.1). What platform are you running on ? Which version of F-Script Anywhere ? Philippe Le 20 juin 08 à 21:52, Peter J.Hartmann a écrit : > > Hi, > > I'd have liked to make Preview.app somewhat scriptable. > > I downloaded the most recent F-Script binary but it turns out that I > am unable to inject F-Script into any application but itself (i.e. F- > Script Anywhere). > > I invariably get the following message: > > F-Script Anywhere was unable to install itself in the selected > application (process ID 492), because F-Script Anywhere must be > installed in a Cocoa application running as the current user. > > You may be attempting to install in a setuid application, which is not > supported. > > This is a bit cryptic. > > Preview.app, Mail and all the others shown in the list of running > applications certainly are Cocoa apps. > They are all launched from my user account and run under my user name. > > Furthermore, what is a setuid application? > > I suspected a conflict with input managers, removed them and rebooted > the machine. > > No avail. > > Any ideas? > > Thanks a lot! > > ___ Peter Hartmann ________ |
From: Philippe M. <pm...@ac...> - 2008-06-23 19:23:36
|
Peter, You'll not need to modify the existing F-Script source code. The system is extensible and you can achieve what you want in a modular way by putting your code in Objective-C categories that you can build as separate bundles and load dynamically if you want. For method that deal with whole arrays (i.e., that have no meaning for single numbers; e.g. calculating an average value given an array of numbers), you should first implement your method in a category of NSArray, in order to deal with the situation where you'd have an array of NSNumber objects. See for instance how the method "reverse" is implemented in F-Script's FSNSArray category. In your case you'll also need to make sure you raise an error if objects other that NSNumbers are found in the array. Then, if you want to have optimized implementations for situations where F-Script is able to determine that the array is made of numbers, you should add little stubs in a category of Array (again, for an example, see how the "reverse" method is implemented in the Array class) as well as your optimized implementations in a category of ArrayRepDouble (see how the "reverse" method is implemented in the ArrayRepDouble class). For math methods that make sense on single numbers (like cos, sin, abs, etc.), you should first implement your method on single number objects. To do that, implement them for NSNumber objects in your own category of NSNumber (look at FSNSNumber for examples). Note that, at this point, you automatically get array programming for these methods. F-Script will take care of automatically broadcasting messages when you deal with arrays. In general this is fast enough. If you need to go even faster, you can implement optimized versions of your methods in a category of ArrayRepDouble. You'll just have to add simpleLoop_xxx or doubleLoop_xxx methods in your category (depending on the message pattern your math operation supports). See ArrayRepDouble.m for example of implementing these simpleLoop_xxx and doubleLoop_xxx methods. Feel free to ask for further clarifications if needed. Philippe Le 23 juin 08 à 19:29, Peter A Passaro a écrit : > > Hi Philippe and All, > > I'm starting to work my way through the F-Script framework code, and > the first thing I would like to do is add some additional math > operators to the ArrayRepDouble class. Could you possibly give me a > quick overview of the framework classes I will need to modify in order > for this to work properly? > > Specifically, what I would like to add is a bunch of statistics and > vector operations for arrays of doubles. I have been writing Obj-C > wrappers (or alternative functions) for many of the functions in the > GNU Scientific Library, and I would like to bring these into F-Script > so I can avoid the back and forth conversion of arrays of doubles- >> NSNumbers->doubles. > > I may also be interested in contributing a plotting/graphing > application for arrays of doubles to F-Script, I have one I am > developing for visualizing large time series data sets that will > probably work well. Let me know if this might be interesting. > > Best, > Peter > > Peter Passaro > Research Officer > Dept of Informatics/Dept of Biology > Pevensey III > University of Sussex > Falmer, Brighton BN1 9QH, UK > Office + 44 (0)1273 877590 > P.A...@su... > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > F-Script-talk mailing list > F-S...@li... > https://lists.sourceforge.net/lists/listinfo/f-script-talk > |
From: Philippe M. <pm...@ac...> - 2008-06-23 17:30:51
|
Le 23 juin 08 à 17:49, Peter A Passaro a écrit : > Hi All, > > I just realized my code suggestion in the last post about single > word commands won't work well for F-Script, as the object browser > and other F-Script components are using the -description method of > objects to query their name or class. This causes the object to > execute itself every time I open a brower. Back to the drawing > board... > > I'll dig into the F-Script framework to see how Philippe is using > objects and see if I can figure out a way to do this. This may be > too much of an ask within the bounds of the F-Script system though. > What I was going for was something along the lines of an object that > self executes, like a Block that doesn't require the -value method > to execute, but this probably breaks the style metaphor of F-Script. > What I will probably do is just have an object in the interpreter > named "COM" that has as its methods all the relevant system commands > for my app, i.e. for a new document: "COM newDoc". > > Philippe, am I correct in thinking that their are no one word > commands (other than object descriptions) in F-Script? Correct. The strategy of defining a "COM" object will work fine. You can also easily add support single word command in the interpreter view by modifying the "command:from:" method in FSInterpreterView to test for the class of the result and, if it is of a given class (e.g. NEAFSCommand), ask it to execute its command. Note that this approach will only work for single word command entered interactively (i.e., not inside scripts). if you want to support single word commands inside scripts, you'll have to digg deeper in the run-time, but it should still be fairly easy. The loop inside the "STATEMENT_LIST: " case of the execute_rec() function in FSExecEngine.m is probably the place where you'll want to insert the code supporting single word commands. Philippe |
From: Peter A P. <p.a...@su...> - 2008-06-23 17:29:25
|
Hi Philippe and All, I'm starting to work my way through the F-Script framework code, and the first thing I would like to do is add some additional math operators to the ArrayRepDouble class. Could you possibly give me a quick overview of the framework classes I will need to modify in order for this to work properly? Specifically, what I would like to add is a bunch of statistics and vector operations for arrays of doubles. I have been writing Obj-C wrappers (or alternative functions) for many of the functions in the GNU Scientific Library, and I would like to bring these into F-Script so I can avoid the back and forth conversion of arrays of doubles- >NSNumbers->doubles. I may also be interested in contributing a plotting/graphing application for arrays of doubles to F-Script, I have one I am developing for visualizing large time series data sets that will probably work well. Let me know if this might be interesting. Best, Peter Peter Passaro Research Officer Dept of Informatics/Dept of Biology Pevensey III University of Sussex Falmer, Brighton BN1 9QH, UK Office + 44 (0)1273 877590 P.A...@su... |
From: Peter A P. <p.a...@su...> - 2008-06-23 15:49:49
|
Hi All, I just realized my code suggestion in the last post about single word commands won't work well for F-Script, as the object browser and other F-Script components are using the -description method of objects to query their name or class. This causes the object to execute itself every time I open a brower. Back to the drawing board... I'll dig into the F-Script framework to see how Philippe is using objects and see if I can figure out a way to do this. This may be too much of an ask within the bounds of the F-Script system though. What I was going for was something along the lines of an object that self executes, like a Block that doesn't require the -value method to execute, but this probably breaks the style metaphor of F-Script. What I will probably do is just have an object in the interpreter named "COM" that has as its methods all the relevant system commands for my app, i.e. for a new document: "COM newDoc". Philippe, am I correct in thinking that their are no one word commands (other than object descriptions) in F-Script? Peter Passaro Research Officer Dept of Informatics/Dept of Biology Pevensey III University of Sussex Falmer, Brighton BN1 9QH, UK Office + 44 (0)1273 877590 P.A...@su... |
From: Jeff B. <hyp...@ma...> - 2008-06-22 18:43:14
|
On Jun 22, 2008, at 10:15 AM, Philippe Mougin wrote: > Le 21 juin 08 à 05:40, Jeff Biggus a écrit : >> On Jun 20, 2008, at 3:51 PM, Philippe Mougin wrote: >>> Forgot to add that there is also a syntax coloring set for pico/ >>> nano. >>> If you want it, let me know (it's not yet public). >> >> I have one also that I'm fairly fond of > > Actually, I was referring to yours... ha! |
From: Arcadio R. G. <arc...@gm...> - 2008-06-22 15:17:03
|
> I have one also that I'm fairly fond of, though it's not perfect, > if anyone is likewise interested. > > -Jeff For what editor? I'd be really interested in something for Emacs or Vi. - Arcadio |
From: Philippe M. <pm...@ac...> - 2008-06-22 15:15:56
|
Le 21 juin 08 à 05:40, Jeff Biggus a écrit : > On Jun 20, 2008, at 3:51 PM, Philippe Mougin wrote: >> Forgot to add that there is also a syntax coloring set for pico/nano. >> If you want it, let me know (it's not yet public). > > I have one also that I'm fairly fond of Actually, I was referring to yours... Philippe |
From: Jeff B. <hyp...@ma...> - 2008-06-22 14:24:36
|
On Jun 20, 2008, at 3:51 PM, Philippe Mougin wrote: > Forgot to add that there is also a syntax coloring set for pico/nano. > If you want it, let me know (it's not yet public). I have one also that I'm fairly fond of, though it's not perfect, if anyone is likewise interested. -Jeff |
From: Philippe M. <pm...@ac...> - 2008-06-22 08:40:45
|
Peter, This is fixed in the forthcoming alpha. You'll be able to use carriage return characters (i.e., ASCII code 13, specified using the \r escape sequence in string literals) to emulate a user pressing the Return key . Philippe Le 14 juin 08 à 13:29, Peter A Passaro a écrit : > > Hi Philippe and Co, > > I'm currently integrating F-Script into my time series analysis > software and I am wondering about how to use FSInterpreterView > properly. What I would like to do is execute commands that I have sent > to FSInterpreterView via the -putCommand method. Specifically, what I > would like is a convenience method similar to the ShellView method - > executeCurrentComand that is accessible from FSInterpreterView. > > Should I go ahead and write my own convenience methods by altering > CLIview and ShellView as necessary? Or is there just a much simpler > way to do this that I am missing? My intention here is to go through a > number of processing steps automatically, and let the user observe > what is happening. I could just use the FSInterpreter directly and > return its results, but I still need a way to get the user back to the > command prompt (possibly by faking a RETURN keyDown event to the > view). > > By the way, f-script is an absolutely brilliant package - it is > fantastic that this is available and completely open source. I have > been using it heavily for about two weeks, and have found myself > starting to rely on it for my Cocoa dev. I'm trying to put together an > intuitive system for academics (mostly neuroscientists) for analyzing > and simulating time series data, and I wanted to include a scripting > language. The APL + Cocoa style syntax is exactly what I needed. I > have been using the GNU scientific library for fast vector processing > and math functions, so I'm now looking at ways of using the best > features of both the GSL and f-script together. > > Peter Passaro > Research Officer > Dept of Informatics/Dept of Biology > Pevensey III > University of Sussex > Falmer, Brighton BN1 9QH, UK > Office + 44 (0)1273 877590 > P.A...@su... |
From: Peter A P. <p.a...@su...> - 2008-06-22 02:20:47
|
Thanks for that Phillipe. The hack worked fine, but it will be nice not to get compiler warnings :) Another possible convenience method suggestion for the FSInterpreterView - a method for creating one word commands. I've added one word commands for accessing some of the more commonly used methods in my objects by using NSInvocationOperation for a quick solution. In the example below, NEAFSCommand is a subclass of NSInvocationOperation that I override the -description method to tell it to invoke itself and return the returnString (to the FSInterpreterView). The interpreter then will invoke the method assigned to an NEAFSCommand object when its name is entered in the interpreter view. In the object that has the method I want to make a single word method, I include the lines newDoc = [[NEAFSCommand alloc] initWithTarget:self selector:@selector(newDocument:) object:nil]; [(NEAFSCommand *)newDoc setReturnString:@"new Document Created"]; [interpreter setObject:newDoc forIdentifier:@"newDoc"]; The -description method of NEAFSCommand contains: [[self invocation] invoke]; return returnString; The reason I'm doing this is because I want to have a set of simple, top-level commands for use inside the interpreter that are specific to the operation of my app. This also provides a shorthand to create a workflow of commands inside a block. Peter Passaro Research Officer Dept of Informatics/Dept of Biology Pevensey III University of Sussex Falmer, Brighton BN1 9QH, UK Office + 44 (0)1273 877590 P.A...@su... On 21 Jun 2008, at 16:56, Philippe Mougin wrote: > Peter, > > This is fixed in the forthcoming alpha. > You'll be able to use carriage return characters (i.e., ASCII code > 13, specified using the \r escape sequence in string literals) to > emulate a user pressing the Return key . > > Philippe > > Le 14 juin 08 à 13:29, Peter A Passaro a écrit : > >> >> Hi Philippe and Co, >> >> I'm currently integrating F-Script into my time series analysis >> software and I am wondering about how to use FSInterpreterView >> properly. What I would like to do is execute commands that I have >> sent >> to FSInterpreterView via the -putCommand method. Specifically, what I >> would like is a convenience method similar to the ShellView method - >> executeCurrentComand that is accessible from FSInterpreterView. >> >> Should I go ahead and write my own convenience methods by altering >> CLIview and ShellView as necessary? Or is there just a much simpler >> way to do this that I am missing? My intention here is to go >> through a >> number of processing steps automatically, and let the user observe >> what is happening. I could just use the FSInterpreter directly and >> return its results, but I still need a way to get the user back to >> the >> command prompt (possibly by faking a RETURN keyDown event to the >> view). >> >> By the way, f-script is an absolutely brilliant package - it is >> fantastic that this is available and completely open source. I have >> been using it heavily for about two weeks, and have found myself >> starting to rely on it for my Cocoa dev. I'm trying to put together >> an >> intuitive system for academics (mostly neuroscientists) for analyzing >> and simulating time series data, and I wanted to include a scripting >> language. The APL + Cocoa style syntax is exactly what I needed. I >> have been using the GNU scientific library for fast vector processing >> and math functions, so I'm now looking at ways of using the best >> features of both the GSL and f-script together. >> >> Peter Passaro >> Research Officer >> Dept of Informatics/Dept of Biology >> Pevensey III >> University of Sussex >> Falmer, Brighton BN1 9QH, UK >> Office + 44 (0)1273 877590 >> P.A...@su... > > |
From: Philippe M. <pm...@ac...> - 2008-06-21 01:30:47
|
Forgot to add that there is also a syntax coloring set for pico/nano. If you want it, let me know (it's not yet public). Philippe |
From: Peter J. H. <hph...@ju...> - 2008-06-20 23:49:49
|
Hi, I'd have liked to make Preview.app somewhat scriptable. I downloaded the most recent F-Script binary but it turns out that I am unable to inject F-Script into any application but itself (i.e. F- Script Anywhere). I invariably get the following message: F-Script Anywhere was unable to install itself in the selected application (process ID 492), because F-Script Anywhere must be installed in a Cocoa application running as the current user. You may be attempting to install in a setuid application, which is not supported. This is a bit cryptic. Preview.app, Mail and all the others shown in the list of running applications certainly are Cocoa apps. They are all launched from my user account and run under my user name. Furthermore, what is a setuid application? I suspected a conflict with input managers, removed them and rebooted the machine. No avail. Any ideas? Thanks a lot! ___ Peter Hartmann ________ mailto:hph...@ju... |
From: Philippe M. <pm...@ac...> - 2008-06-19 19:15:59
|
Hey David, I haven' t experienced this problem. Could you provide us with an example of F-Script code that suffer from it? I'll look at what goes wrong then. Philippe Le 19 juin 08 à 03:03, David J. Goehrig a écrit : > > Hey all, > > I've been trying to do some simple movie manipulation with Quicktime > Player and SBApplication, and what I'm experiencing is FScript going > nuts if I attempt to do any two things in anything near quick > succession. > > If each command is entered into the commandline individually and run > by > hand it runs beautifully, but if I try to chain any to a receiver > using > ; it goes tits up. > > Any ideas? > > Dave > > -- > > David J. Goehrig > > > Email: da...@ne... |