Stories
Slash Boxes
Comments
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 ]

pudge (1)

pudge
  (email not shown publicly)
http://pudge.net/
AOL IM: Crimethnk (Add Buddy, Send Message)

I run this joint, see?

Journal of pudge (1)

Thursday November 13, 2003
07:07 PM

Stupid Mac::Glue Tricks

[ #15758 ]

perl -MMac::Glue -e '$s = new Mac::Glue "Safari"; $d = $s->obj(document => 1); $s->do_javascript("window.location.reload()", in => $d), sleep 60 while 1'

Yes, I am using Perl to talk to Safari via Apple events to have it execute some JavaScript. It's a bit boggling to me that there's no "reload" event in Safari's dictionary, but, whatever.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.