Saw this on Ranchero's RSS feed this morning (they didn't write it, just 
linked to it):

   http://q41.de/downloads/pashua_en/

Just a quick notice of what it is, and a short first-glance review of how it 
interacts with Perl:

It's an app to create dialog boxes from Perl, PHP, Python, tcsh, and 
AppleScript, it says.  Really, it just reads a configuration file from the 
filesystem and displays the dialog via that, runs the app on the command 
line and gets the results back via the app's STDOUT.

It's not very smart; it is named Pashua.pm (should be Mac::Pashua or 
something IMO); it doesn't local()ize its filehandle; it does not use a 
smart way of finding the application from the Perl code (it looks in a few 
known paths, instead of using something like LSFindApplicationForInfo in 
Mac::Processes); it doesn't cache the path once it finds it (even for a 
single running process); it names the configuration file based on a 
timestamp (better not run two scripts that use it at the same time!).

But the Perl code is simple and you could rewrite it if you wanted to, with 
a better name, File::Temp, and LSFindApplicationForInfo(), etc.

Even AppleScript talks to Pashua via the command line, so you can't use 
Mac::Glue or something to talk to it.  The app is not AppleScriptable.

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to