Slashdot Mirror


User: xmath

xmath's activity in the archive.

Stories
0
Comments
35
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 35

  1. Re:Advantages of AppleScript over sh, awk, sed, et on Apple Previews New Script Editor · · Score: 5, Informative

    Oh, and another reason is that there are various applications with good AppleScript integration, notable the Finder. For example, you can create "Folder actions", which are scripts that are automatically executed when you open a folder, or drag something into it etc.

    One more thing I should note is that the underlying system (OSA) is quite flexible. In particular, an applications "dictionary" (which contains a description of all objects reachable via IPC and their properties etc) is fairly language-agnostic. It's for example probably possible to write a perl OSA-plugin, which would allow the user to use the Script Editor to write an run perl scripts to control applications via AppleEvents. In fact, if the plugin has handlers for converting AEs to script, the user can "record" scripts. (the system intercepts AEs caused by manual user actions, and translates them into script. pretty cool)

    So there's more to AppleScript than meets the eye. See also Inside Macintosh: InterApplication Communication and other AE/AS/OSA related docs.

  2. Re:Advantages of AppleScript over sh, awk, sed, et on Apple Previews New Script Editor · · Score: 5, Informative
    AppleScript is a scripting language layered on top of AppleEvents, which is basically an object-oriented IPC system. This means that if an application properly supports appleevents, then you can fully control an application via applescript, rather than programatically frob the UI.

    For example, it's valid to say:

    tell application "Finder" to duplicate the selection to folder "Foo" of home

    if you run this, it'll copy whatever you have selected in the Finder to ~/Foo

    The downside is that you have to rely on the developer of the application you want to control to have created the proper hooks.

  3. Re:xmath? on Gobs Of Gaming Goodies · · Score: 1

    Eh, yup :-)

    I'm not really on HL anymore though.. things kinda went downhill with it after Jade died. You can find me on EFnet though if you want.

    Damn, I don't see any way to leave you a msg other than posting a comment.. I hope I don't get modded offtopic for this..

  4. Re:Consoles on Gobs Of Gaming Goodies · · Score: 2, Funny

    Console games? You mean like this and this ? :-D

  5. Re:Forth is alive every time you print on Forth Application Techniques · · Score: 1

    Oh, in case anyone wants to see what it looks like (since it's not easy to find a decent piece of hand-written PS in the wild):

    http://www.liacs.nl/~mavduin/mod1.ps

  6. Re:Forth is alive every time you print on Forth Application Techniques · · Score: 3, Interesting

    For some boring stats course we had a programming assignment "in a programming language of your choice".... big mistake

    since it was basically a simple statistical experiment + graphical output, I wrote it in PostScript.

    Kinda cool, it was a report with the statistical experiments embedded, so if you printed it twice, all the graphs were different :-)

  7. Re:Yes on Is FORTRAN Still Kicking? · · Score: 0, Offtopic

    >Anybody remember FORTH?

    "Remember" forth? you make it sound like it's a deceased language. Forth is still very much in use actively, and used for new applications. It's mainly popular in embedded systems. (for example, every modern Mac has a complete Forth system inside: Open Firmware)

    May the Forth be with you! :-)

  8. Re:Solid State? on Apple releases iPod · · Score: 1

    Would reading the page really have taken that long?
    http://www.apple.com/ipod/specs.html

    32 MB solid state memory to prevent skipping.

    - xmath

  9. Re:My head hurts on Esoteric Programming Languages · · Score: 2, Informative

    Here's a short one that has Hello World the right way:

    r:#,_q#:"Hello world!"+55

    (wrote it myself :-)

    -xmath

  10. Re:Is it not a waste? on SETI@Home to Crunch More Data · · Score: 4, Insightful

    Yea, but the idea of searching for ET is more appealing to people than cracking RC5 keys of solving the protein folding problem.

    It's just the idea that matter, searching for little green men is something people can imagine, while cryptographic keys or proteins is not "close" enough to the people, if you know what I mean..

    - xmath