mutsu-developers Mailing List for Mutsu Applescript Studio Repository (Page 2)
Status: Beta
Brought to you by:
mfenner
You can subscribe to this list here.
| 2002 |
Jan
(43) |
Feb
(8) |
Mar
(9) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|
|
From: Martin F. <ma...@sc...> - 2002-01-19 11:18:10
|
Phil, > By AppleScript 1.8 do you mean AS 1.8.1? 1.8.1 was quickly released to > fix around thirteen bugs and > is _not_ included in ASS but is included in 10.1.2. I'm not sure. But I guess we should assume people have 10.1,2, because that is needed to run Studio applications without the Developer Tools installed. > BTW, I built RSSX and it works pretty well. Could you let me know what > you're trying to achieve with > the sed script? This was a quick & dirty script to parse the RSS. It works, but I have decided that it makes more sense to do the text parsing in Perl. At least in the beginning I wouldn't use the Perl XML and RSS modules. > I should be in the position to add something to the repository myself > in a couple of weeks (have > ploughed through _so_ much documentation. Bill Cheeseman's "Vermont > Recipes" was very helpful and I > can recommend Aaron Hillegass's "Cocoa Programming for OS X". It's > better for quick results than > Apple's "Learning Cocoa"). I'm looking forward to what you are going to post. If you still have problems with SSH and CVS, send me a private message so that we figure this out. You guys probably know that I started an Applescript Studio FAQ at http://www.osaxen.com/modules.php?op=modload&name=FAQ&file=index&myfaq=yes& id_cat=1&categories=Applescript+Studio&parent_id=0 Drop me a not if you have interesting material. Including UNIX scripts into an Applescript Studio project should certainly be a topic. - Martin |
|
From: Phil D. <phi...@ma...> - 2002-01-19 09:48:04
|
On 19/01/2002 at 08:14, ma...@sc... (Martin Fenner) wrote: > AppleScript 1.8, supplied with AppleScript Studio and soon in Mac OS X > 10.1.2, contains a new POSIX File class with a POSIX Path property. The > POSIX Path property takes a Cocoa POSIX file path (slash-delimited) as > its > direct object and converts it to a standard AppleScript file reference of > the form 'file "disk:folder:file"' (colon delimited). (You can convert > that > to a colon-delimited string using the 'as string' coercion, but this > isn't > necessary here.) By AppleScript 1.8 do you mean AS 1.8.1? 1.8.1 was quickly released to fix around thirteen bugs and is _not_ included in ASS but is included in 10.1.2. BTW, I built RSSX and it works pretty well. Could you let me know what you're trying to achieve with the sed script? I should be in the position to add something to the repository myself in a couple of weeks (have ploughed through _so_ much documentation. Bill Cheeseman's "Vermont Recipes" was very helpful and I can recommend Aaron Hillegass's "Cocoa Programming for OS X". It's better for quick results than Apple's "Learning Cocoa"). Have also nearly finished implementing drag n' drop, Loek. I'll mail you with my test stuff when I've finished. Regards, Phil. |
|
From: Martin F. <ma...@sc...> - 2002-01-19 07:14:15
|
Loek, > The work around I used in MacPAR is the following: > > set theApp to path to me as alias > set theAppPath to POSIX path of theApp as text > set theApp to theAppPath & "/Contents/Resources/par" -- this is now par > plus its full path > set theAppPath to theAppPath & "/Contents/Resources/" -- this is now > the path to par The POSIX Path coercion is confusing. According to the following message from Bill Cheeseman on the Studio mailing list (and my own test), it does the opposite of what you expect - it takes a POSIX path and returns an alias: AppleScript 1.8, supplied with AppleScript Studio and soon in Mac OS X 10.1.2, contains a new POSIX File class with a POSIX Path property. The POSIX Path property takes a Cocoa POSIX file path (slash-delimited) as its direct object and converts it to a standard AppleScript file reference of the form 'file "disk:folder:file"' (colon delimited). (You can convert that to a colon-delimited string using the 'as string' coercion, but this isn't necessary here.) You therefore don't need to write the traditional handler using AppleScript text item delimiters to do the conversion. Your script will therefore have problems. - Martin |
|
From: Loek J. <loe...@xs...> - 2002-01-18 22:25:29
|
Dear Martin, Sorry that I come back to you so late but I have been rather busy on my work and also on bug fixing MacPAR. I hope to release the second beta this weekend. The work around I used in MacPAR is the following: set theApp to path to me as alias set theAppPath to POSIX path of theApp as text set theApp to theAppPath & "/Contents/Resources/par" -- this is now par plus its full path set theAppPath to theAppPath & "/Contents/Resources/" -- this is now the path to par (par is here the Unix par to be called in the shell). This is followed by extensive checking for "faulty" characters (see the Applescript for full details). Hope this helps. Loek >Loek, > >did you make any progress including your par file into your studio >project? I have a similar problem now because I want to include a >sed script. According to the Applescript Studio list, you should do >the following: > >tell main bundle to set thePath to path for resource "rss" extension "sed" >set theXML to do shell script thePath & " " & theXML > >This unfortunately doesn't work. The POSIX path coercion actually >turns a POSIX path into an alias (so the other way around). > >- Martin > > >_______________________________________________ >Mutsu-developers mailing list >Mut...@li... >https://lists.sourceforge.net/lists/listinfo/mutsu-developers |
|
From: Phil D. <phi...@ma...> - 2002-01-17 10:46:45
|
>From this mornings' first AppleScriptStudio digest: >Many posts to this list reflect, directly or indirectly, the need for >Studio reference documentation. This is just to let you know that work >is under way. >Steve >Apple Tech Pubs Will be very handy when using with Cocoa and scripting languages (well, a man can hope ;-) Regards, Phil. |
|
From: Martin F. <ma...@sc...> - 2002-01-17 05:37:52
|
Loek, did you make any progress including your par file into your studio project? I have a similar problem now because I want to include a sed script. According to the Applescript Studio list, you should do the following: tell main bundle to set thePath to path for resource "rss" extension "sed" set theXML to do shell script thePath & " " & theXML This unfortunately doesn't work. The POSIX path coercion actually turns a POSIX path into an alias (so the other way around). - Martin |
|
From: Martin F. <ma...@sc...> - 2002-01-16 19:33:23
|
Phil, > I need a favour though. Could someone mail me a copy of RSSX. My CVS > nightmare continues (all is in > place and I'm still refused access...). I would be happy to mail you the files, but anonymous CVS should work without SSH or passwords. Have you tried this as well? - Martin |
|
From: Phil D. <phi...@ma...> - 2002-01-16 19:02:35
|
Hi, Loek. Been looking into your drag and drop and using Cocoa it can be done. Using a method of NSView, it's easy to drag into a text editor but it'll take a bit more work to for it to do what you want. I'm building a few tests and I'll let you know how it goes. Haven't had much time for anything else (am learning Carbon as well; all helps). I need a favour though. Could someone mail me a copy of RSSX. My CVS nightmare continues (all is in place and I'm still refused access...). Speak to you soon, Regards, Phil. |
|
From: Martin F. <ma...@sc...> - 2002-01-16 14:16:03
|
I've added my first Applescript Studio application to the Mutsu CVS Repository. RSSX reads RDF/RSS files, displays the headlines and lets you click on the headline to go to the website for the full story. This is version 1.0a1, meaning it works but needs a lot of improvements before it can be released. I want to to use grep instead of Applescript to parse the XML and I need an interface for multiple RSS sites (the URL is currently hard-coded to fetch the last ten scripting additions from osaxen.com). - Martin |
|
From: Martin F. <ma...@sc...> - 2002-01-15 19:43:37
|
Loek, here is a script from the Scriptbuilders archive that converts a Mac path to a UNIX path. Similar to your stuff, but also takes special characters into account. http://files.macscripter.net/ScriptBuilders/MacOS-X/Mac_Unix_Path.hqx > If you wish to put up the bug tracker, please go ahead! I added bug and feature request trackers. I doubt that users will make use of them in the beginning, but we can use them for development. For starters I added the file not found error reported by some MacPar users. > I was that now a fifth developer has joined the crew! He has not yet joined the mailing list. - Martin |
|
From: Phil D. <phi...@ma...> - 2002-01-15 18:42:54
|
On 15/01/2002 at 19:11, loe...@xs... (Loek Jehee) wrote:
[snip]
>
> Problem is maybe in the code to convert the ordinary Applescript path
> and filenames into Unix. The function "POSIX path of" is real shitty, it
> doesn't do its job good at all. E.g. if there are any strange characters
> like !@#$%'\/.-[]}{ etcetera in the name of a folder on the path, then
> this function doesn't recognize this at all and the result is a path
> which
> immediately crashes UNIX. This definitely needs to be improved in
> Applescript!
I've been reading up on this problem today (a lot of people are complaining of the same thing), so
I'll read through the relevant docs and try to see if I can come up with a fix :)
>
> So I had to work around this problem by placing ""-s around the filename
> and doing some error checking for "faulty" characters in the pathname.
> But maybe the code is still not perfect enough. So, everybody, please
> do some beta testing for me!! and have a good look at the code to find
> any errors. I will do that myself too but so far no further errors
> found...
>
> I spoke with the PAR developer ZEP who ported PAR to OS X, and he
> advised me to add a preference panel to include the options -f and +C.
> I am working on that right now. Also, I want to add drag and drop in
> the second release, if possible. Everybody is invited to work on the code
> if you wish.
I'd be delighted to. Speak to you soon,
Regards,
Phil.
|
|
From: Martin F. <ma...@sc...> - 2002-01-15 18:33:15
|
Loek, I will have a close look at your code, especially the file path conversions. Do you want me to set up the bug tracking system at Sourceforge for you? - Martin |
|
From: Loek J. <loe...@xs...> - 2002-01-15 18:23:27
|
>Loek, > >Well done with MacPar! I saw the piece you wrote at macosxhints.com >and am really pleased for you. > >Keep up the good work. > >Regards, > >Phil. Hi Phil, Thanks for your compliments. So far only three bug reports. I would be very grateful if you also could do some beta testing to see if you can find any bugs. It might be that there indeed is still something wrong in the code. Problem is maybe in the code to convert the ordinary Applescript path and filenames into Unix. The function "POSIX path of" is real shitty, it doesn't do its job good at all. E.g. if there are any strange characters like !@#$%'\/.-[]}{ etcetera in the name of a folder on the path, then this function doesn't recognize this at all and the result is a path which immediately crashes UNIX. This definitely needs to be improved in Applescript! So I had to work around this problem by placing ""-s around the filename and doing some error checking for "faulty" characters in the pathname. But maybe the code is still not perfect enough. So, everybody, please do some beta testing for me!! and have a good look at the code to find any errors. I will do that myself too but so far no further errors found... I spoke with the PAR developer ZEP who ported PAR to OS X, and he advised me to add a preference panel to include the options -f and +C. I am working on that right now. Also, I want to add drag and drop in the second release, if possible. Everybody is invited to work on the code if you wish. Warm greetings, Loek |
|
From: Martin F. <ma...@sc...> - 2002-01-15 07:51:57
|
Loek, congratulations, MacPar has been downloaded close to 600 times just yesterday. Probably because it was featured at Versiontracker. - Martin |
|
From: Martin F. <ma...@sc...> - 2002-01-14 12:50:38
|
Loek, I wrote two News announcements for the Mutsu project. The text is more or less taken from your file descriptions. http://sourceforge.net/news/?group_id=43325 - Martin |
|
From: Phil D. <phi...@ma...> - 2002-01-13 13:04:23
|
On 12/01/2002 at 17:15, ma...@sc... (Martin Fenner) wrote: > Did you look at the CVS web client for Mutsu, it gives you a very nice > overview of the differences? > > http://cvs.sourceforge.net/cgi- > bin/viewcvs.cgi/mutsu/splitandconcat/Application.applescript.diff?r1=1.1&r2= > 1.2 That's awesome :) I had no idea these facilities were available. Way to go! Regards, Phil. -- This is my opinion only, and not that of my employer who is ... me .. Unless the contents indicate otherwise, this message has no connection with my current client whose email services I am using. -- |
|
From: Loek J. <loe...@xs...> - 2002-01-12 16:22:51
|
>Did you look at the CVS web client for Mutsu, it gives you a very >nice overview of the differences? > >http://cvs.sourceforge.net/cgi- >bin/viewcvs.cgi/mutsu/splitandconcat/Application.applescript.diff?r1=1.1&r2= >1.2 > >- Martin Wow wow wow wooooowww!! No other words available here :-) Also: the Project Builder integration is superb!! This is all real great. Loek |
|
From: Loek J. <loe...@xs...> - 2002-01-12 16:22:51
|
Sorry Martin, I think our posts just crossed! :-) Heavy traffic on this mailing list :-)) I will do the announcements tomorrow. Now I'm gonna take a sauna first ... Have a nice day! Loek >Loek, > >>I think it is best to wait a bit to give Stefan the chance to reply >>and then we >>can go ahead and announce it more publicly within a few days. > >When you are ready, please write an announcement for your two >applications at the Mutsu site - or send me the text for the >announcements. > >>I committed some minor changes to include more explanation comments to the >>Applescript in Split&Concat and to include mutsu and BSD license in the Help >>file. > >Did you look at the CVS web client for Mutsu, it gives you a very >nice overview of the differences? > >http://cvs.sourceforge.net/cgi- >bin/viewcvs.cgi/mutsu/splitandconcat/Application.applescript.diff?r1=1.1&r2= >1.2 > |
|
From: Loek J. <loe...@xs...> - 2002-01-12 16:17:18
|
Hello all, Here follows the reply from Stefan that indicates that we can go on and release MacPAR OS X. Martin: do you take care of announcing it? It is OK with me. You'll find extensive documentation in the files if you need further info. Otherwise I will do that tomorrow. In any case I will announce it MacPAR OS X at versiontracker.com. Have a nice day! Loek _______ Date: Sat, 12 Jan 2002 16:59:17 +0100 From: "S.W." <ho...@we...> X-Accept-Language: en-us To: Loek Jehee <loe...@xs...> Subject: Re: MacPAR OS X Loek Jehee wrote: >Hello Stefan, > >It is only a very simple GUI wrapper and the code just calls par on >the command line only! So I guess I don't need to worry. It is just that I am >new to the developers world and I didn't know exactly what all this >license stuff is about and I didn't want to offend anybody. No prob. The usage of par is free and like I stated in the format spec, you can do with the idea whatever you want. Actually, it was our intention to motivate other people to make their own stuff. >My user name on sourceforge is loekjehe. If you want to add the >MacPAR program to the Parchive file list, please let me know then >I will send you the program file plus release notes and version notes. >But you could also just create a link to the files on mutsu if you want. >I have not yet announced the program publicly since I wanted to >wait for your comments. But I will go ahead now and announce >it the coming weekend. I don't want to withhold this jewel of >PAR any longer from other Mac users.... Since it is a GUI wrapper and hosted already by a sourceforge project, I think it is the best to leave the files at mutsu and include/announce only the links at parchive. I made you developer and announced it in the private developers forum. You can officially announce it in the public forums, if you want. >I just LOVE Par! It is so helpful! I hope that now Mac users will >start to understand how important it is in newsgroups! Judging from the many cries of Mac users for a good client, they understood this already... ;-) Stefan |
|
From: Martin F. <ma...@sc...> - 2002-01-12 16:16:01
|
Loek, > I think it is best to wait a bit to give Stefan the chance to reply and > then we > can go ahead and announce it more publicly within a few days. When you are ready, please write an announcement for your two applications at the Mutsu site - or send me the text for the announcements. > I committed some minor changes to include more explanation comments to > the > Applescript in Split&Concat and to include mutsu and BSD license in the > Help > file. Did you look at the CVS web client for Mutsu, it gives you a very nice overview of the differences? http://cvs.sourceforge.net/cgi- bin/viewcvs.cgi/mutsu/splitandconcat/Application.applescript.diff?r1=1.1&r2= 1.2 - Martin |
|
From: Martin F. <ma...@sc...> - 2002-01-12 16:10:21
|
Phil, > succesfully. One question, though. I have no .cshrc in my home > directory only a .tcshrc in which to > add setenv (I've used it before for several similar things). I found a more elegant way to do this, you actually don't have to modify the .cshrc file. This is taken from the Apple Developer Documentation at <http://developer.apple.com/qa/qa2001/qa1067.html>: ------ There is a special environment file which loginwindow searches for each time a user logs in. The environment file is: ~/.MacOSX/environment.plist (be careful it's case sensitive). Where '~' is the home directory of the user we are interested in. You will have to create the .MacOSX directory yourself using terminal (by typing mkdir .MacOSX). You will also have to create the environment file yourself. The environment file is actually in XML/plist format (make sure to add the .plist extension to the end of the filename or this won't work). An example environment file is shown below. The file was created using /Developer/Applications/PropertyListEditor.app ------ You can either create the file using PropertyListEditor or save the following as environment.plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> <plist version="0.9"> <dict> <key>CVS_RSH</key> <string>ssh</string> </dict> </plist> After you created this file, you have to login (not restart) to OS X again. From now on, Project Builder knows about CVS_RSH and there is no need to lauch PB from the command line. I modified the detailed instructions at <http://sourceforge.net/docman/display_doc.php?docid=8785&group_id=43325>. - Martin |
|
From: Loek J. <loe...@xs...> - 2002-01-12 13:25:40
|
Hello Martin e.a. The integration with Project Builder now works fantastic. It seems very importantto follow your (very clear) instructions to the letter though. I committed some minor changes to include more explanation comments to the Applescript in Split&Concat and to include mutsu and BSD license in the Help file. (Also to play a bit with CVS) :-) Loek |
|
From: Phil D. <phi...@ma...> - 2002-01-12 12:31:38
|
Martin, I've already created a key pair thusly (yesterday evening before I received your email): >[localhost:~] phil% ssh-keygen >Generating public/private rsa1 key pair. >Enter file in which to save the key (/Users/phil/.ssh/identity): >Created directory '/Users/phil/.ssh'. >Enter passphrase (empty for no passphrase): >Enter same passphrase again: >Your identification has been saved in /Users/phil/.ssh/identity. >Your public key has been saved in /Users/phil/.ssh/identity.pub. >The key fingerprint is: >6a:2a:25:6b:92:b0:09:33:fd:1f:b0:b6:be:21:9c:c2 phil@localhost >[localhost:~] phil% and after receiving your instruction this morning, I added my .ssh/idendity.pub at: <https://sourceforge.net/account/editsshkeys.php> succesfully. One question, though. I have no .cshrc in my home directory only a .tcshrc in which to add setenv (I've used it before for several similar things). Any ideas? Regards, Phil. |
|
From: Loek J. <loe...@xs...> - 2002-01-12 12:05:50
|
Hello Martin, It is OK to announce Split&Concat in the news section since I don't use anyone else's code in this. The program has been released earlier on my private web site and has been announced on versiontracker. This was before mutsu started. I received a very nice reply from Stefan Wehlus of Parchive that there won't be any problem if the code in MacPAR is also under Open Source license (which of course it is) and especially since my program is only a GUI wrapper that calls par in the command line (which it does). I wrote him a reply in which I mentioned that my project has been published under mutsu and informed him that this weekend I am intending to announce the MacPAR program publicly. I think it is best to wait a bit to give Stefan the chance to reply and then we can go ahead and announce it more publicly within a few days. Loek >Loek, > >I see that you released your two applications for regular download. >Do you want to announce them in the Mutsu news section (I'm not sure >your permissions allow you to do this)? > >- Martin |
|
From: Martin F. <ma...@sc...> - 2002-01-12 11:47:43
|
Pat, welcome to the Mutsu-Developers mailing list. Please mail me your username at Sourceforge (or create and account) so that I can add you to the list of developers. You find instructions on how to use CVS with the Mutsu project at http://sourceforge.net/docman/display_doc.php?docid=8785&group_id=43325 - Martin |