Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

PerlPad for Mac OS X

by rhythmicus (Sexton)
on Jul 27, 2004 at 23:19 UTC ( [id://377885]=CUFP: print w/replies, xml ) Need Help??

I just found a cool app for Mac OS X called PerlPad. It allows Perl code to be run as a Mac OS X service, which allows you to do all sorts of cool Perl-ish things on-the-fly using input from just about anything such as the clipboard, an HTML textbox, text editor, etc. Definitely check it out if you're a Mac user.

If anybody's using PerlPad already, how about posting some cool snippets you use with it?

Replies are listed 'Best First'.
Re: PerlPad for Mac OS X
by Fletch (Bishop) on Jul 28, 2004 at 01:50 UTC

    A similar app that might be of interest is DropScript which lets you turn a perl program into an app you can drop files onto.

Re: PerlPad for Mac OS X
by educated_foo (Vicar) on Jul 28, 2004 at 20:41 UTC
    Sorry, no cool snippets. I basically use it for s/// loops when I'mforced to edit text outside of Emacs (e.g. editing this reply). WhenI installed it, I honestly expected to use it more than I have.

    Update: Actually, I have found a use for it. This little nasty in ~/Library/PerlPad/startup.pl lets me use Emacs to edit PM posts:

    #!/usr/bin/env perl use File::Temp 'tempfile'; register_function 'emacsify', q{ my ($fh, $f) = tempfile; print $fh $_; close $fh; open OSA, "|osascript " or die $!; my $osa = <<EOS; -- set theapp to path to frontmost application as string tell application "Emacs" to activate do shell script "emacsclient '$f'" -- tell application theapp to activate EOS print OSA $osa; close OSA or die $!; open IN, "$f"; unlink $f; undef $/; $_ = <IN>; close IN; s/^(.{70,80})\n/$1/gm; $_; }; 1;
Re: PerlPad for Mac OS X
by bageler (Hermit) on Jul 30, 2004 at 17:12 UTC
    just installed it, this rules!!! Now I can execute the code from PM in-place :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://377885]
Approved by rob_au
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2025-11-07 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (65 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.