Re: AppleScript to Perl w/SOAP

2002-09-25 Thread Randal L. Schwartz

 Bradley == Bradley Roberts [EMAIL PROTECTED] writes:

Bradley Slartibarfast was a fjord designer in the hitchhikers guide to the
Bradley galaxy series, creating fjords in newly designed planets.  He put his
Bradley name in the side of one because he wanted to (and not getting credit
Bradley otherwise), and the heros of the book happened upon it.  Hard to
Bradley explain, read the books by Douglas Adams and wave your towel.

Explained better than I could.  Thanks!

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



Re: AppleScript to Perl w/SOAP

2002-09-23 Thread Phil Dobbin

On 23/9/02 03:18, Randal L. Schwartz [EMAIL PROTECTED] wrote:

 Phil == Phil Dobbin [EMAIL PROTECTED] writes:
 
 Phil As usual, the Perl section of this works flawlessly but the Applescript
 Phil doo-dah chokes around:
 
 Phil 
 
 Phil set output_file to (path to temporary items folder as string) 
 Phil fetch_headlines.html
 Phil write_to_file(output, output_file, false)
 Phil tell application Finder to open output_file
 
 Phil 
 
 Phil With the Finder complaining it can't set path to temp items.
 
 I never claimed to be an AppleScript expert.  However, I *do* know
 that I tested the code (for quite a while, making constant minor
 tweaks) before submitting.
 
 However, I just tested it again under 10.1.5, and it seems
 to be working fine.  Are you sure there isn't something
 else a little messed up?
 
 That is *all* one line, you know.

Doesn't make any difference (in fact, all on one line makes it exit quicker,
as you'd expect - `expected end of line`).
 
 Here's what the result shows for me when I run this:
 
   set output_file to (path to temporary items folder as string) 
 fetch_headlines.html
   output_file
 
 in the AS editor:
 
 Randal800:private:tmp:501:Temporary Items:fetch_headlines.html

[snip]

What does it show in the browser?

Regards,

Phil.




Re: AppleScript to Perl w/SOAP

2002-09-23 Thread Andrew M. Langmead

On Sun, Sep 22, 2002 at 05:02:22PM -0600, Nathan Torkington wrote:

 Apple Corporation doesn't make celebrities out of its employees.
 O'Reilly, on the other hand, loves to make stars out of its authors.
 (or to make its authors see stars, depending on how well they write :-)


Apple'sInside Macintosh series, about 15 years ago, was attributed
to Apple Computer. On the other hand, their technotes from the same
era were attributed to the individual authors (although sometimes the
author may have been listed as someone like Bo3b Johnson)

Software About boxes used to have individual names, but now are all
attributed to Apple Computer, Inc.




Re: AppleScript to Perl w/SOAP

2002-09-23 Thread William H. Magill

On Monday, September 23, 2002, at 09:26  AM, Andrew M. Langmead wrote:
 Software About boxes used to have individual names, but now are all
 attributed to Apple Computer, Inc.

One big reason is that software today is rarely the result of a single 
person or even a consistent group... Not only do people come and go 
from employers with dramatically increased frequency, but rarely did 
EVERYONE involved in a project get credit -- only those officially 
assigned.

It also means that the about box does not have to be re-coded with 
every release because the team has changed. Just one less set of 
modifications where potential errors can creep in. [And nobody gets 
miffed that xxx is still credited and he hasn't worked for the company 
for years.]

T.T.F.N.
William H. Magill
[EMAIL PROTECTED]
[EMAIL PROTECTED]




Re: AppleScript to Perl w/SOAP

2002-09-23 Thread Erik Price


On Sunday, September 22, 2002, at 08:36  PM, Brian McNett wrote:

 On Sunday, September 22, 2002, at 05:13  PM, Morbus Iff wrote:

 Exactly. My article uses morbus as the dummy username, an obvious 
 giveaway.

 A friend, when writing for Apple made several references to A 
 Bazilians Family Restaurant and Emporium.  People who know him know 
 he's the author.  In the end, that's all that really matters.


You can take this to extremes, too.

I know someone who is guilty of having put a nonsensical phrase into 
the default internal reference code field of his former employer's 
FedEx account, since that field wasn't being used for anything 
important.  I thought it was funny that this message was sent out on 
hundreds of packages all over the country, and my friend, a lowly 
shipper, got to make his own mark on his work.

But then he got a phone call from someone in billing wondering what it 
meant, and stopped doing it.


Erik

PS:  Yes, I said former employer, no, he didn't get fired.





--
Erik Price   (zombies roam)

email: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]




Re: AppleScript to Perl w/SOAP

2002-09-23 Thread Bradley Roberts

At 3:16 PM -0700 9/23/02, Erik Price wrote:
On Sunday, September 22, 2002, at 04:53  PM, Randal L. Schwartz wrote:

Of course, we authors always figured out slartibartfast in the
fjords ways of getting our signatures in the book somehow.  One time,
I stuck it in the ASCII values of a string that appears only in hex,
for example.

(1) Sherlock doesn't do any scandinavian languages yet, as far as I 
can see.  What does that really mean?

Slartibarfast was a fjord designer in the hitchhikers guide to the 
galaxy series, creating fjords in newly designed planets.  He put his 
name in the side of one because he wanted to (and not getting credit 
otherwise), and the heros of the book happened upon it.  Hard to 
explain, read the books by Douglas Adams and wave your towel.


(2) Like developers who put easter eggs and other doo-dads in their 
software.  Incidentally, I heard that Apple has really been cracking 
down on this in their products (I forget where I read it).


Apple doesn't really let any eastereggs, names of designers, any 
'personal references' at all anymore.  Kinda a good idea, with 
several thousand current employees and many thousand former 
employees, who should get the credit for what.



Re: AppleScript to Perl w/SOAP

2002-09-23 Thread Chris Devers

On Mon, 23 Sep 2002, Erik Price wrote:

 But then he got a phone call from someone in billing wondering
 what it meant, and stopped doing it.

Man, what kind of sicko embeds silly pointless gag phrases in the
messages he sends out, possibly making things difficult for the
receivers? What a jerk, eh?


:) :) :)



-- 
Chris Devers
 dnliinr




Re: AppleScript to Perl w/SOAP

2002-09-22 Thread Phil Dobbin

On 22/9/02 02:04, Randal L. Schwartz [EMAIL PROTECTED] wrote:

 Erik == Erik Price [EMAIL PROTECTED] writes:
 
 Erik I just found this article in my ADC and figured I'd pass it along to
 Erik the list:
 
 Erik http://developer.apple.com/internet/webservices/applescripttoperl.html
 
 Thanks for the promo.
 
 And if you have any suggestions for anything else, please let me know!

As usual, the Perl section of this works flawlessly but the Applescript
doo-dah chokes around:



set output_file to (path to temporary items folder as string) 
fetch_headlines.html
write_to_file(output, output_file, false)
tell application Finder to open output_file



With the Finder complaining it can't set path to temp items.

This on Mac OS X 10.1.5, AS 1.8.3, Perl 5.6.1 and ScriptDebugger 3.0.4. Has
anybody else seen this?

Regards,

Phil.




Re: AppleScript to Perl w/SOAP

2002-09-22 Thread Randal L. Schwartz

 Chris == Chris Devers [EMAIL PROTECTED] writes:

Chris I would prefer to know the face behind the voice rather than
Chris some kind of single nameless impersonal corporate identity, but
Chris maybe that's just me. I like being able to browse through the
Chris books in the store, see a new one by someone I recognize (like,
Chris say, Randal Schwartz or Ken Williams :), and be able to compare
Chris reference material by authors I respect.

Well, it may be unusual in the open source business, but I have a
whole shelf of stuff here in my home office that I've written that
doesn't have any indication of my name on it.  That's the norm when
techwriting manuals for companies, as opposed to writing for bookstore
publication.

Of course, we authors always figured out slartibartfast in the
fjords ways of getting our signatures in the book somehow.  One time,
I stuck it in the ASCII values of a string that appears only in hex,
for example.

And as we saw in this thread, the phrase I nearly always start my
programs with these lines was enough to give me away on this one.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



Re: AppleScript to Perl w/SOAP

2002-09-22 Thread Nathan Torkington

Chris Devers writes:
 What's with this whole conceal the author business? The OSX related
 O'Reilly books all seem to be written by Apple Corporation:
 
 http://www.oreilly.com/catalog/learncocoa/
 http://www.oreilly.com/catalog/learncarbon/
 http://www.oreilly.com/catalog/learncocoa2/
 http://www.oreillynet.com/cs/catalog/view/au/629?x-t=book.view

As Geoff pointed out, the second editions are written by humans :-)
The first editions were based heavily on the online docs.  The second
editions have been much improved (e.g., by James Duncan Davidson in
the case of Cocoa).

Apple Corporation doesn't make celebrities out of its employees.
O'Reilly, on the other hand, loves to make stars out of its authors.
(or to make its authors see stars, depending on how well they write :-)

Nat




Re: AppleScript to Perl w/SOAP

2002-09-22 Thread Morbus Iff

 I would prefer to know the face behind the voice rather than
 some kind of single nameless impersonal corporate identity, but
 maybe that's just me. I like being able to browse through the
 books in the store, see a new one by someone I recognize (like,
 say, Randal Schwartz or Ken Williams :), and be able to compare
 reference material by authors I respect.

Well, it may be unusual in the open source business, but I have a
whole shelf of stuff here in my home office that I've written that
doesn't have any indication of my name on it.  That's the norm when
techwriting manuals for companies, as opposed to writing for bookstore
publication.

Right. My impression of the process is:

 a) If you regain copyright, you regain author bios.
 b) If you sell your rights, then it becomes the company's.

Since I sold my rights on the Apple article, it's not my place to say
hey! make sure you place my name prominently on the piece. hoo hah!

Of course, we authors always figured out slartibartfast in the
fjords ways of getting our signatures in the book somehow.  One time,
I stuck it in the ASCII values of a string that appears only in hex,

Exactly. My article uses morbus as the dummy username, an obvious giveaway.

-- 
Morbus Iff ( united we're bland )
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
Tech: http://www.oreillynet.com/pub/au/779 - articles and weblog
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus



Re: AppleScript to Perl w/SOAP

2002-09-22 Thread Randal L. Schwartz

 Morbus == Morbus Iff [EMAIL PROTECTED] writes:

Morbus Right. My impression of the process is:

Morbus  a) If you regain copyright, you regain author bios.
Morbus  b) If you sell your rights, then it becomes the company's.

No, that's not my impression at all.  I don't retain copyright for
any of the 150+ articles I've written, nor any of the books I've
done for O'Reilly.  And yet my name is on all of them.

A work-for-hire means it's not yours anymore.  It's up to the contract
to decide whether you're a writer or a ghostwriter.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



Re: AppleScript to Perl w/SOAP

2002-09-22 Thread Phil Dobbin

On 22/9/02 02:04, Randal L. Schwartz [EMAIL PROTECTED] wrote:

 Erik == Erik Price [EMAIL PROTECTED] writes:
 
 Erik I just found this article in my ADC and figured I'd pass it along to
 Erik the list:
 
 Erik http://developer.apple.com/internet/webservices/applescripttoperl.html
 
 Thanks for the promo.
 
 And if you have any suggestions for anything else, please let me know!

As usual, the Perl section of this works flawlessly but the Applescript
doo-dah chokes around:



set output_file to (path to temporary items folder as string) 
fetch_headlines.html
write_to_file(output, output_file, false)
tell application Finder to open output_file



With the Finder complaining it can't set path to temp items.

This on Mac OS X 10.1.5, AS 1.8.3, Perl 5.6.1 and ScriptDebugger 3.0.4. Has
anybody else seen this?

Regards,

Phil.




Re: AppleScript to Perl w/SOAP

2002-09-22 Thread Randal L. Schwartz

 Phil == Phil Dobbin [EMAIL PROTECTED] writes:

Phil As usual, the Perl section of this works flawlessly but the Applescript
Phil doo-dah chokes around:

Phil 

Phil set output_file to (path to temporary items folder as string) 
Phil fetch_headlines.html
Phil write_to_file(output, output_file, false)
Phil tell application Finder to open output_file

Phil 

Phil With the Finder complaining it can't set path to temp items.

I never claimed to be an AppleScript expert.  However, I *do* know
that I tested the code (for quite a while, making constant minor
tweaks) before submitting.

However, I just tested it again under 10.1.5, and it seems
to be working fine.  Are you sure there isn't something
else a little messed up?

That is *all* one line, you know.

Here's what the result shows for me when I run this:

set output_file to (path to temporary items folder as string)  
fetch_headlines.html
output_file

in the AS editor:

  Randal800:private:tmp:501:Temporary Items:fetch_headlines.html

See.  Just fine. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



Re: AppleScript to Perl w/SOAP

2002-09-21 Thread Randal L. Schwartz

 Erik == Erik Price [EMAIL PROTECTED] writes:

Erik I just found this article in my ADC and figured I'd pass it along to
Erik the list:

Erik http://developer.apple.com/internet/webservices/applescripttoperl.html

Thanks for the promo.

And if you have any suggestions for anything else, please let me know!

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



Re: AppleScript to Perl w/SOAP

2002-09-21 Thread Ken Williams


On Sunday, September 22, 2002, at 11:04  AM, Randal L. Schwartz wrote:

 Erik == Erik Price [EMAIL PROTECTED] writes:

 Erik I just found this article in my ADC and figured I'd pass 
 it along to
 Erik the list:

 Erik 
 http://developer.apple.com/internet/webservices/applescripttoperl.html

 Thanks for the promo.

 And if you have any suggestions for anything else, please let me know!

Oh, was that you?  I couldn't find an author name attached to 
the article.

Are the articles in this series (like Morbus' previous one on 
installing 5.8.0) generally written by outside people?

  -Ken




Re: AppleScript to Perl w/SOAP

2002-09-21 Thread Randal L. Schwartz

 Ken == Ken Williams [EMAIL PROTECTED] writes:

Ken Oh, was that you?  I couldn't find an author name attached to the
Ken article.

no, but if you know where to look, you can get a pointer *to* the
article *from* my name in the list of authors.

Ken Are the articles in this series (like Morbus' previous one on
Ken installing 5.8.0) generally written by outside people?

Dunno.  I know mine was written by me. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



Re: AppleScript to Perl w/SOAP

2002-09-21 Thread Puneet Kishor


On Saturday, September 21, 2002, at 08:04  PM, Randal L. Schwartz wrote:

 Erik == Erik Price [EMAIL PROTECTED] writes:

 Erik I just found this article in my ADC and figured I'd pass it 
 along to
 Erik the list:

 Erik 
 http://developer.apple.com/internet/webservices/applescripttoperl.html

 Thanks for the promo.

 And if you have any suggestions for anything else, please let me know!


heh, heh, heh... as soon as I read the following...


Take a look at the Perl SOAP server. You can see the entire script 
here. I've included line numbers to make it easier to read. Here's how 
I begin every Perl program I write:


=1= #!/usr/bin/perl -w
=2= use strict;
=3= $|++;


I knew it. Kinda sticks in your mind after having read all the Web 
Techniques articles. That's what got me started on Perl in the first 
place.

pk/