Apple's Unix Porting Guide 27
hysterion writes "Just came across the nice Unix Porting Guide (pdf) posted by Apple earlier this month. Topics include NetInfo, using Project Builder with gnumake, autoconf, XFree86, Tcl/Tk, Qt ... it is a bit short on scripting languages, and they speak as if KDE were already ported, but other than that I found it an informative read." They also didn't mention fink, and they put "Unix" in all caps. However, they were honest about the shell scripting limitations of AppleScript, although they didn't mention that AppleScript -- especially via osascript -- is pretty buggy in Mac OS X right now (this is my annoyance of the week, so allow me to indulge myself).
"As if KDE was already ported"? (Score:3, Informative)
Re:"As if KDE was already ported"? (Score:4, Informative)
Re:"As if KDE was already ported"? (Score:3, Insightful)
I'm sorry, but compared to OS X, KDE is just soooo ugly and out of place. I appreciate that there might... possibly... be... functionality one could get with KDE ported apps, but X11-based apps still look like they took second place in an ugly contest.
~jeff
KDE + Darwin? (Score:3, Interesting)
I'm given to wonder, however, why someone with a full OS X installation would wish to use KDE. Perhaps there are a dozen reasons I can't think off off-hand, but the real prize would be to run KDE on top of Darwin [apple.com]! Is this possible yet?
Darwin core + good GUI = another no-cost operating system on the loose. It would no doubt have far lower system requirements than OS X, too. The idea has me drooling already.
Re:KDE + Darwin? (Score:4, Informative)
That's one of the reasons we moved things over to OpenDarwin rather than keeping it just in Fink, is so the Darwin folks can take advantage of it as well...
Of course they do (Score:3, Informative)
Re:Of course they do (Score:2)
Re:Of course they do (Score:2)
A Good "Where-To", "What's That" Guide (Score:2, Interesting)
The nice thing about this document is how it tacitly implies that writing an OS X app can be done in such a way that it can be deployed just about anywhere with practically any imaging model and with many new or common IDEs. OS X, from a programmer's perspective, must seem extremely flexible.
Java porting guide (Score:4, Informative)
Re:Deeply Disappointed in the Apple McIntosh (Score:2, Insightful)
It's too bad some people don't have a sense of humor, can't laugh at themselves - I found the parent post to be sarcastically funny - it's obviously not a true story - and it's actually a pretty good troll....
Re:Deeply Disappointed in the Apple McIntosh (Score:3, Funny)
As for Fink.... (Score:3, Informative)
Q2.3: What is your relation with Apple?
A: Apple is aware of Fink and has given us some support as part of their Open Source relations efforts. In the summer and fall of 2001, they provided us with pre-release seeds of new Mac OS X versions in the hope that Fink packages can be adapted in time for the release. Quote: "Hopefully it underscores the commitment that many suspect we're not willing to provide. We'll get better at the open source game over time." Thanks Apple!
Interactive Terminal Support for Applescript (Score:2, Interesting)
BTW: if anyone knows how to do this feel free to tell me
OSAScript ickiness (Score:2, Informative)
OSAscript is pretty darned cool, but it's been my annoyance of the week as well. Been playing with it the past couple of days to write a nice-looking iTunes remote for our office jukebox -- controlled via a browser, not the shell (doing it from the shell is cake, even on remote machines.)
As Pudge mentioned, it's VERY buggy though. A few things I've noticed:
Re:OSAScript ickiness (Score:1)
Egads!
Re:OSAScript ickiness (Score:1)
My current method is to run a background AppleScript in my login session that dumps the data I need, once a minute, to a file in /tmp, and then my cron job reads from that data, instead of calling an AppleScript directly with osascript. This doesn't work for controlling anything, and it doesn't work for immediate access to data, but all I am doing with it is putting a "Now Playing" on my home page [perl.org].
If I had the time, I would port the Mac:: perl modules, including Mac::AppleEvents and friends, to Mac OS X. Though, I am not sure if a program that executes raw Apple events has similar limitations to osascript; that is, I don't know whether these limitations are built in to osascript, or are built in to the AppleScript software. So that solution might not help me anyway. I still wish I had the time to do it, though.
Re:OSAScript ickiness (Score:2, Informative)
I've got a way to do live data from iTunes instead of the cron task way... (I read about the cron job on MacOShints, and it seemed a bit of a kludge). It requires the ACGI dispatcher I mentioned earlier.
Many thanks to a pile of people that wrote code for me to pick apart to get this working in my case...
My method of grabbing info like that is:
(from a PHP or Perl script):
Then in the itunesstatus applescript:
This stuff is from memory, but the process and flow are up and running on our network at the office.
The first time it runs, it'll be a bit slow, but should return info instantly afterward