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

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.
  • It's an interesting article about how AppleScript and Perl can work together; my only issue with it is that it implies that "full access" to Perl was not available in Macs prior to Mac OS X, despite that the Perl he provides works flawlessly in Mac OS, as most Perl does.

    The AppleScript, however, does not (yes, one could say Perl is more portable than AppleScript, even between Mac OS and Mac OS X :-). But, if you really want to, you can change "localhost" to your IP address in both scripts (Mac OS has issu
    • Well yes, in defense, there was a nice edit applied to my original text, as always. So some of the tone was changed. That's typical.

      The article was to show the SOAP interface. Certainly, I'd personally write the entire thing in Perl, except that I'd have to call

      system 'osascript', '-e', "open $htmlfile";

      to launch the user's preferred browser, and perhaps to get the temporary area if I didn't just want to use /tmp.

      However, the SOAP interface between the AS side and the Perl side was very nice. Th

      • Randal L. Schwartz
      • Stonehenge
      • Yes, you'd need to use osascript (for now ... my evil plans include fixing that, someday) or simply the "open" command line program. Although, you could try, but I have no idea how to do it that way. Also, you could access the Temporary Items directory using Carbon (and possibly Cocoa) calls, but yeah, same thing. Or you could use Inline. Wheeeee!

        I do realize that it was more just an example of interaction, and not "you should do it this way," I was pointing this out merely because th
        • Although, you could try, but I have no idea how to do it that way.

          You'd want to use NSWorkspace, but I'm not sure if PerlObjCBridge wraps AppKit classes - I had the impression that it didn't. Here's how you'd do it in CamelBones: