Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

chaoticset (2105)

  (email not shown publicly)
AOL IM: chaoticset23 (Add Buddy, Send Message)
Yahoo! ID: illuminatus_foil (Add User, Send Message)

JAPH. (That's right -- I'm not Really Inexperienced any more.)

I'm not just here, I'm here [], and here [] too, I ramble randomly in my philosophical blog [] and my other blog []. Soon I'll come in a convenient six-pack.

Journal of chaoticset (2105)

Monday November 25, 2002
03:58 PM

Sleep * 4 + Think * 4 = Tired * 1, or: Perl vs. AppleScript

[ #9144 ]
In other words, I didn't get a lot of sleep last night, I thought a whole bunch today, and between the two I'm pretty tired.

The question was raised: Could Perl do what AppleScript can? i.e., make the remote control application do what it's supposed to do, instead of the useless behavior it currently engages in? I'm sure there's a way to do it, I just don't know it yet. Perhaps if I get my hands dirty a little bit inside some OS X documentation, I can route around this oncoming AppleScript debacle.

Anyway, I'm just keeping track for myself here: Gotta figure out what Linux would be best for this place as a play server, gotta figure out how to make the remote app work properly, gotta figure out what I'm doing wrong in Matriarch. Gotta this, gotta that. Hell, at least I'm busy.

I'm actually mulling the notion of working here after my school-credit internship's over, asking if they want me for a few more months at the cover price or possibly as a volunteer. Right now I'm only sinking maybe ten physical hours a week, tops. I could do that without blinking, I suspect. My main concern would be gas money, but that seems to be handling itself right now.

Besides -- it's not like I wouldn't be hacking Perl on my own time anyway, and it would be good resume fodder.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • First, there is DoAppleScript in Mac::Carbon (or RunAppleScript in Mac::AppleScript; the former has been around longer and allows you to retrieve error text in $@). You can just run AppleScript inside of Perl:

    use MacPerl 'DoAppleScript';  # module named MacPerl, runs on Mac OS X anyway
    my $name = DoAppleScript('tell app "iTunes" to get name of current track');

    Second, there is Mac::Glue, which currently is being ported to Mac OS X. It allows you to use Perl syntax with an AppleScript vocabulary. It'