mutsu-developers Mailing List for Mutsu Applescript Studio Repository
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: Laine L. <ll...@tx...> - 2002-03-28 20:26:09
|
I would like to add a project to the Mutsu repository. I followed instructions to the point of receiving confirmation that the project is approved. Further instructions include entering group information. I find there a choice for "Edit Public Info" but not for "Edit Group public Information" that I'm looking for. Is "Edit Public Info" the one I want? Thanks. -- Laine Lee ll...@tx... http://www.txdirect.net/users/llee |
|
From: Laine L. <ll...@tx...> - 2002-03-19 16:40:55
|
I guess I'm stumped now. I can get the project to build using the standard tool template, but the executable won't do anything. There are three errors the first time I build, and a whole lot of warnings (17). The first two errors are in the ctype.h file, which is part of the framework, I guess. The other error says that the libjpeg.a file can't be prebound. But all of those go away on the second build attempt. The command line: cc -I/sw/include -L/sw/lib -ljpeg absird.c still makes a working executable, but the libjpeg.62.0.0.dylib dependency still exists of course. My next step will be to see if there is a way to put that file into the executable using the command line. I spent too much time on the Astudio interface to give up. Thanks. -- Laine Lee ll...@tx... http://www.txdirect.net/users/llee |
|
From: Ben H. <bh...@al...> - 2002-03-18 18:40:48
|
At 11:29 AM -0600 3/18/02, Laine Lee wrote: > >Here's the method that resulted in absird.c being compiled successfully when >run from the terminal: > >Copy the malloc.h file that exists in >System:Library:Frameworks:Kernel.framework:Versions:A:Headers:sys to >/usr/includes, add the file libjpeg.62.0.0.dylib to /usr/lib and either >rename it or make the symbolic link libjpeg.62.dylib, cd to where the >absird.c source file exists and run this command in the Terminal: "cc >-I/usr/include -L/usr/lib -ljpeg absird.c". Juse change the "#include <malloc.h>" line in absird.c to #include <sys/malloc.h> and it will be found. That is a common problem when coming from other UNIXes i think. No need to copy it from the kernel framework. (that's bad) Never touch anything in the Kernel framework unless yer writiing a kernel extension. :) You want to use the "C++ Tool" project type for your absird tool. (command line app = tool). Just paste the stuff from absird.c into the main.c file, and add libjpeg.a to the project. Also, you might need to add a Header search path to find the libjpeg.h header, under Build Settings, Search Paths. If you use libjpeg.a, not the libjpeg.dylib, you won't have to bother with including it in your project. The .a means it is a static library and the code gets included into the binary, instead of being loaded at runtime. -Ben -- http://homepage.mac.com/bhines/ |
|
From: Laine L. <ll...@tx...> - 2002-03-18 17:29:54
|
Thanks much for your response, Ben. I haven't tried just dropping the dylib file into the project because the only way I've been able to get the absird binary executable to be included in my project is to just put it there in the resources folder. I realize that a much better solution would be to compile both the Applescript Studio source and the absird.c source in the same project in Project Builder, but = I haven't yet even been successful at compiling the absird.c source in its ow= n project. My only real experience with Project builder is with Applescript Studio, so I'm not even sure which initial template is needed for that project. I would assume c++ framework. Would you have any suggestions on ho= w to make any of that work? Here's the method that resulted in absird.c being compiled successfully whe= n run from the terminal: Copy the malloc.h file that exists in System:Library:Frameworks:Kernel.framework:Versions:A:Headers:sys to /usr/includes, add the file libjpeg.62.0.0.dylib to /usr/lib and either rename it or make the symbolic link libjpeg.62.dylib, cd to where the absird.c source file exists and run this command in the Terminal: =B3cc -I/usr/include -L/usr/lib =ADljpeg absird.c=B2. Thanks again. On 3/17/02 3:57 PM, "Ben Hines" <bh...@al...> wrote: > At 12:05 PM -0600 3/17/02, Laine Lee wrote: >>=20 >> /sw, the file compiles with the dependency pointed toward the /usr >> directory. I'm now wondering if there's a way to install libjpeg to /usr= and >> not use Fink. That would still require installing developer tools, thoug= h, >> which I would like to avoid. >=20 > Fink is just an installer. You can build and compile and include > libjpeg in your project without Fink at all. >=20 > I think all you have to do is drop the dylib file in the "Frameworks" > folder in your bundle, and it will be found by your app. (for an > example, look in Watson's bundle) >=20 > -Ben --=20 Laine Lee ll...@tx... http://www.txdirect.net/users/llee |
|
From: Ben H. <bh...@al...> - 2002-03-17 21:57:47
|
At 12:05 PM -0600 3/17/02, Laine Lee wrote: > >/sw, the file compiles with the dependency pointed toward the /usr >directory. I'm now wondering if there's a way to install libjpeg to /usr and >not use Fink. That would still require installing developer tools, though, >which I would like to avoid. Fink is just an installer. You can build and compile and include libjpeg in your project without Fink at all. I think all you have to do is drop the dylib file in the "Frameworks" folder in your bundle, and it will be found by your app. (for an example, look in Watson's bundle) -Ben -- http://homepage.mac.com/bhines/ |
|
From: Laine L. <ll...@tx...> - 2002-03-17 18:05:47
|
Thanks for the information, Loek. I'll check the web site. > I don't know if just placing the libjpeg.62.0.0.dylib in the /sw/lib > directory will work at a computer on which fink is not installed. > I doubt it. I meant to make it clear that I have tried this with a fresh installation of OS X and auto upgrade path to 10.1.2 and it does work just to add that file (and either rename it or make the symbolic link libjpeg.62.dylib, of course). That's why the easiest way to get my application to work would be to include that file and instructions for installing it. I also found a way to compile the absird.c file without using the /sw/lib path. If I put that same file in /usr/lib and do everything else the same way in /usr instead of /sw, the file compiles with the dependency pointed toward the /usr directory. I'm now wondering if there's a way to install libjpeg to /usr and not use Fink. That would still require installing developer tools, though, which I would like to avoid. -- Laine Lee ll...@tx... http://www.txdirect.net/users/llee |
|
From: Loek J. <loe...@xs...> - 2002-03-17 09:47:34
|
Dear Laine, >Do you think there's a chance that I might be able to get permission >from the creators of libjpeg to publish my app with just the >libjpeg.62.0.0.dylib file and instructions for what to do with it, so >that list the requirements as OS X Developer Tools, Fink, and libjpeg >(installed by Fink)? This is what I find: 'fink info libjpeg' gives: pkg libjpeg version ### pkg libjpeg version 6b-4 libjpeg-6b-4: JPEG image format handling library Web site: http://www.ijg.org/ 'cat /sw/fink/dists/stable/main/finkinfo/graphics/libjpeg-6b-4.info' gives: Package: libjpeg Version: 6b Revision: 4 Depends: libjpeg-shlibs (= 6b-3), libjpeg-bin Replaces: libjpeg (<< 6b-3) Source: ftp://ftp.uunet.de/pub/graphics/jpeg/jpegsrc.v6b.tar.gz SourceDirectory: jpeg-6b (...) DocFiles: README libjpeg.doc structure.doc usage.doc wizard.doc Description: JPEG image format handling library Uses autoconf and libtool. Requires the usual fixes. (...) Maintainer: Dave Morrison <dm...@us...> Homepage: http://www.ijg.org/ License: OSI-Approved So for the license question you can visit the www.ijg.org website. You'll find further documentation in /sw/share/doc/libjpeg . >Is there a chance libjpeg already exists in an OS X installation and >that the the absird.c file could be compiled with a different command >that would use existing OS X resources? Could that explain why my >application works by just placing libjpeg.62.0.0.dylib into the >/sw/lib directory? As far as I know there is no other version of libjpeg included in OS X: sudo locate "libjpeg" produces a list of references all within the /sw directory. It seems to be provided within a basic fink install however. I don't know if just placing the libjpeg.62.0.0.dylib in the /sw/lib directory will work at a computer on which fink is not installed. I doubt it. Hope this helps, Loek |
|
From: Laine L. <ll...@tx...> - 2002-03-17 07:30:19
|
I=B9ve written an Applescript Studio interface for a UNIX binary executable called Absird, which makes stereograms (those magic eye hidden 3D images that you used to see all over the mall). I would like to submit it to Mutsu= , but I have some issues with it that I=B9m hoping someone can help me solve. The executable has a dependency that I just discovered. There is a single shared library that is required to make it work. The required file is 140k in size and is called libjpeg.62.0.0.dylib and exists in /sw/lib. It must b= e either renamed to libjpeg.62.dylib, or be the target of a symbolic link named libjpeg.62.dylib in the same directory. The lib file and the symbolic link are created in that directory when the libjpeg package is installed by Fink. So, to make my application work on a OS X 10.1.2 system where Developer Tools, Fink, and libjpeg are not already installed, you can eithe= r find a computer where they are installed and copy the libjpeg.62.0.0.dylib to /sw/lib, creating the path, and rename it to libjpeg.62.dylib, or copy i= t to /sw/lib and use terminal to make a symbolic link called libjpeg.62.dylib to it in the same location, or install Developer Tools, Fink, then tell Fin= k to install libjpeg. The absird executable can be compiled in the OS X terminal if you have the Developer Tools, Fink, and libjpeg (installed by Fink) if you cd to where the absird.c source file exists, copy the malloc.h file that exists in System:Library:Frameworks:Kernel.framework:Versions:A:Headers:sys to /sw/includes and run this command in the Terminal: =B3cc -I/sw/include -L/sw/lib =ADljpeg absird.c=B2. So here are my questions. Do you think there=B9s a chance that I might be able to get permission from the creators of libjpeg to publish my app with just the libjpeg.62.0.0.dyli= b file and instructions for what to do with it, so that list the requirements as OS X Developer Tools, Fink, and libjpeg (installed by Fink)? Is there a chance libjpeg already exists in an OS X installation and that the the absird.c file could be compiled with a different command that would use existing OS X resources? Could that explain why my application works by just placing libjpeg.62.0.0.dylib into the /sw/lib directory? I can send yo= u the absird.c file if you care to play with it. The author of the absird executable, Keith Goldfarb, has a web site at http://www.rhythm.com/~keith/autoStereoGrams/absird/ where an FAQ states that another image library could be used instead of jpeg, but 6 routines would have to be rewritten: openJPEGRead() openJPEGWrite() readJPEGScanline() writeJPEGScanline() closeJPEGRead() and closeJPEGWrite(). Would any of you be interested in taking a stab a that with QuickTime or something else that might be included with an original installation of OS X? The absird.c file is available at the web site, but i= t had to be altered to work with OS X. I didn=B9t have the necessary skills to modify it, Keith knew someone who did. Also, since there=B9s a good chance that you already have Fink and libjpeg installed, and could run my app right out of the box, I=B9d be happy to send you a copy of my project as well. Just let me know. Thanks! --=20 Laine Lee ll...@tx... http://www.txdirect.net/users/llee |
|
From: Martin F. <ma...@sc...> - 2002-03-03 22:19:25
|
Laine, Simple Find & Replace and Simpleshade have been added to the Mutsu downloads section. I've also added version 1.0b2 of RSSX: http://sourceforge.net/project/showfiles.php?group_id=43325 - Martin |
|
From: Laine L. <ll...@tx...> - 2002-02-20 19:48:07
|
On 2/20/02 2:08 AM, "Martin Fenner" <ma...@sc...> wrote: > Do you want me to add your applications to the Mutsu download area (two > versions: compiled and source code)? By all means, please do. I have some other questions for you, as time permits. Thanks. Yours 'till they're all answered, Laine Lee |
|
From: Martin F. <ma...@sc...> - 2002-02-20 11:18:03
|
I released the first beta of RSSX. Plans for beta 2 include support for HTTP proxies and more news sites. Do you have a good idea of how to support proxies? If possible, don't want to use URL Access Scripting but stick with the curl shell command. - Martin |
|
From: Martin F. <ma...@sc...> - 2002-02-20 08:08:24
|
Laine, I imported your sources into the CVS tree, placing the four Find & Replace applications into one directory. We therefore now have "Simpleshade" and "SimpleFind&Replace". If you want to work on these projects under CVS control (which I recommend), checkout the files from CVS first. You find instructions on how to use Sourceforge CVS with Project Builder at http://sourceforge.net/docman/display_doc.php?docid=8785&group_id=43325 In summary, do the following in terminal (assuming you use the standard tcsh shell): setenv CVS_RSH ssh cvs -z3 -d:ext:lle...@cv...:/cvsroot/mutsu co Simpleshade cvs -z3 -d:ext:lle...@cv...:/cvsroot/mutsu co "SimpleFind&Replace" This will create two directories called Simpleshade and SimpleFind&Replace in your working directory. From now on you can use the Project Builder CVS menu to work on these files. The only tricky part is to add new directories (and that includes nib files) to the project, you better use the command line CVS client for this. Do you want me to add your applications to the Mutsu download area (two versions: compiled and source code)? Thanks again for contributing these files. - Martin |
|
From: Martin F. <ma...@sc...> - 2002-02-19 12:52:17
|
Folks, I'm happy to announce that Laine Lee has joined the Mutsu project. Please welcome him. I've also released a new version of my RSS Reader (RSSX 1.0a3). This version is now very close to the first beta release (which I plan to release over the weekend) and should be fully functional. RRSX has some interesting features that might be of general interest, e.g. multiple document windows, table views that use a data source and integration of a Perl script that parses XML data. And let me know if there are RSS/RDF sources that you want included. RSSX parses the links at the following URL at startup (currently MacCentral, MacNN, TidBITS and my Scripting Addition database): http://www.osaxen.com/modules.php?op=modload&name=Web_Links&file=index&req= viewlink&cid=4 Similar to Loek I had a hard time adding nib files to the CVS repository, it's probably safest to use the command line CVS client for this. - Martin |
|
From: Martin F. <ma...@sc...> - 2002-02-13 18:13:11
|
Loek, > Sounds very interesting, but unfortunately this command doesn't run on > my computer.... > "MainMenu.nib Command not found" The following line only works if your CVS server supports wrapping: *.nib -k 'b' -f '/Developer/Tools/cvs-unwrap %s' -t '/Developer/Tools/cvs-wrap %s %s' -m 'COPY' If you use the CVS server that comes with the Developer Tools (i.e. a local CVS server on your OS X computer), wrapping should work. > Also if I try to manually commit a .nib to the repository, I still > don't manage (see below): > > (I first checked out the existing splitandconcat module, then changed > all files into the > new ones and wanted to first commit the important MainMenu.nib to find > out that it > doesn't work.... > > [node13269:~/Dev/splitandconcat] loek% cd English.lproj/ > [node13269:~/Dev/splitandconcat/English.lproj] loek% cvs commit -m > MainMenu.nib/ > cvs commit: Examining . > cvs commit: Examining MainMenu.nib > cvs commit: Examining MainMenu~.nib > ? MainMenu.nib/Spliticon.gif.tiff > cvs server: Up-to-date check failed for `MainMenu.nib/info.nib' > cvs server: Up-to-date check failed for `MainMenu.nib/objects.nib' > cvs [server aborted]: correct above errors first! > [node13269:~/Dev/splitandconcat/English.lproj] loek% cvs add > MainMenu.nib/ > cvs [add aborted]: there is a version in MainMenu.nib already > This is tricky. I would say it's best to view MainMenu.nib as directory (there is also a CVS directory in MainMenu.nib, therefore the error in your last line). This means that you should add and commit the files in this directory, e.g. objects.nib. We should also think about what we should add to the CVS repository. The "build" directory for example is not needed as it can be recreated from the sources. - Martin |
|
From: Loek J. <loe...@xs...> - 2002-02-12 18:11:47
|
>You can configure CVS to treat .nib files (which actually are >directories) as binary files with the following line in >/Developer/Tools/cvswrappers: > >*.nib -k 'b' -f '/Developer/Tools/cvs-unwrap %s' -t >'/Developer/Tools/cvs-wrap %s %s' -m 'COPY' > >This unfortunately doesn't work with the CVS server at >Sourceforge.net (the -f flag is not supported). But I added a long >list of binary files to the cvswrappers file for the Mutsu project. > >- Martin Thanx, Martin, Sounds very interesting, but unfortunately this command doesn't run on my computer.... "MainMenu.nib Command not found" Also if I try to manually commit a .nib to the repository, I still don't manage (see below): (I first checked out the existing splitandconcat module, then changed all files into the new ones and wanted to first commit the important MainMenu.nib to find out that it doesn't work....) [node13269:~/Dev/splitandconcat] loek% cd English.lproj/ [node13269:~/Dev/splitandconcat/English.lproj] loek% cvs commit -m MainMenu.nib/ cvs commit: Examining . cvs commit: Examining MainMenu.nib cvs commit: Examining MainMenu~.nib ? MainMenu.nib/Spliticon.gif.tiff cvs server: Up-to-date check failed for `MainMenu.nib/info.nib' cvs server: Up-to-date check failed for `MainMenu.nib/objects.nib' cvs [server aborted]: correct above errors first! [node13269:~/Dev/splitandconcat/English.lproj] loek% cvs add MainMenu.nib/ cvs [add aborted]: there is a version in MainMenu.nib already |
|
From: Martin F. <ma...@sc...> - 2002-02-11 13:46:04
|
Loek, > I have the same problem that you described earlier and PB doesn't > recognize certain files that I added to the repository, esp. nibs and > binary files. Text only files do OK. Maybe some problem with the > cvswrappers. You can configure CVS to treat .nib files (which actually are directories) as binary files with the following line in /Developer/Tools/cvswrappers: *.nib -k 'b' -f '/Developer/Tools/cvs-unwrap %s' -t '/Developer/Tools/cvs-wrap %s %s' -m 'COPY' This unfortunately doesn't work with the CVS server at Sourceforge.net (the -f flag is not supported). But I added a long list of binary files to the cvswrappers file for the Mutsu project. - Martin |
|
From: Martin F. <ma...@sc...> - 2002-02-03 21:57:56
|
we have a new member of this mailing list - please welcome Peter Gort. And I posted a News announcement at Sourceforge for the new version of MacPar that Loek posted on Friday. - Martin |
|
From: Loek J. <loe...@xs...> - 2002-01-31 18:07:50
|
>I have two announcements to make: > >Ben Hines has joined the Mutsu project and this mailing list. Welcome! > Dear all, I am very glad that Ben joined our team. He already gave me great advice for MacPAR and on the use of Project Builder. Welcome, Ben! >I've updated my RSS Reader to use Perl instead of Applescript for >text parsing. RSSX is only available via CVS. I found RSS Reader works great! I don't have any understanding of XML unfortunately, so I can't be of any help there. But the lines I clicked produced fine results in Explorer. Martin sure knows how to write condensed and efficient code (something I should improve :-) ) Loek |
|
From: Martin F. <ma...@sc...> - 2002-01-31 12:16:05
|
I have two announcements to make: Ben Hines has joined the Mutsu project and this mailing list. Welcome! I've updated my RSS Reader to use Perl instead of Applescript for text parsing. RSSX is only available via CVS. Greetings, - Martin |
|
From: Martin F. <ma...@sc...> - 2002-01-31 09:21:29
|
Loek, Applescript 1.8.2b1 installs newer versions of the following files /System/Library/Components/AppleScript.component /System/Library/Frameworks/PrivateFrameworks/AppleScript.framework /System/Library/Frameworks/Carbon/Frameworks/OpenScripting.framework /System/Library/ScriptingAdditions/Standard Additions.osax If you still have the 1.8.1 versions of these files, you should be able to simply reinstall them. - Martin |
|
From: Martin F. <ma...@sc...> - 2002-01-31 09:16:29
|
Loek, > Please could somebody (who didn't yet install the 1.8.2b1 beta!!!) > update with > CVS and check out if the new version still works on your computer (still > running on the "old" 1.8.2)? In my very limited testing both version 1.2 and 1.3 of Application.applescript work on my computer running OS X 10.1.2, i.e. Applescript 1.8.1. You probably know that the following will return the Applescript version (as 32 bit number): system attribute "ascv" - Martin P.S. The "Cancel" button in the alert window confuses me, wouldn't "OK" be more appropriate? |
|
From: Loek J. <loe...@xs...> - 2002-01-27 23:13:49
|
Hi all! I have installed the beta AppleScript_1.8.2b1 from Apple and I immediately run into big problems with my two applications. It seems that the new beta AppleScript (that is scheduled to be released as a part of the new March Developers Kit) produces a different output with a do shell script command (it includes EOF or carriadge returns while the former version didn't or something like that). I managed to rewrite the scripts but since I installed the 1.8.2b1 beta I now cannot check if the scripts still run on the older version.... (argh....) I committed the new "repaired" version of Split&Concat to CVS. Please could somebody (who didn't yet install the 1.8.2b1 beta!!!) update with CVS and check out if the new version still works on your computer (still running on the "old" 1.8.2)? I don't know how to uninstall the beta.... Thanks in advance! Greetings, Loek |
|
From: Loek J. <loe...@xs...> - 2002-01-21 23:34:18
|
Hi folks, Today I released the second beta which has now drag and drop. It was necessary to restart the entire project from a new Project Builder template for this, namely Applescript Droplet, and then to include all files from the old project. I didn't manage yet to enable drag and drop to the program window, now it works only on the program icon in the Finder or in the Dock. There are many bug fixes and improvements in this second version, e.g. a preferences panel with five options. See the release notes. Thanks, Phil, for sending the updated code for the faulty filenames checking. I hope to have a bit more time now to look into your project, Martin. Could you take care of announcing the second beta in the news on mutsu? Thanks! Warm greetings, Loek |
|
From: Phil D. <phi...@ma...> - 2002-01-20 19:44:28
|
I forgot to mention that this script is the invention of James Sorenson again (the same guy as the other script Martin posted). Regards, Phil. |
|
From: Phil D. <phi...@ma...> - 2002-01-20 19:39:31
|
Hi, all.
I found another script to deal with the special characters problem with AppleScript/POSIX.
on unix_path(mac_path)
set unixpath to (POSIX path of mac_path)
set chars to every character of unixpath
repeat with i from 1 to length of chars
if "!$&\"'*(){[|;<>?~` \\" contains (item i of chars as text) then
set item i of chars to "\\" & (item i of chars as text)
end if
end repeat
return every item of chars as string
end unix_path
It seems to deal with all but the very high end, so check it out (Loek) and see if it helps.
Regards,
Phil.
p.s. let me know if the mail server mangles it and I'll stuff it and re-send.
|