develooper Front page | perl.macosx | Postings from May 2003

Re: DropScript confusion about cwd

Thread Previous | Thread Next
From:
John Delacour
Date:
May 11, 2003 09:11
Subject:
Re: DropScript confusion about cwd
Message ID:
p0600120abae423c7ac63@[10.0.0.6]
At 8:45 am -0700 11/5/03, Bruce Van Allen wrote:

>  Very nice, John.
>
>  I made a slight change to have the script open the path list in 
> BBEdit (I have the BBEdit tool installed, so I can call it with 
> 'bbedit file' in Terminal.app). My next step will be to have Perl 
> turn that path list over to my end-of-line converter...
>
>  The change is the unquoted* line near the end of John's script below, with
>    `bbedit $fout`'"
>  instead of
>    `open -e $fout`'"
>
>  *At least I hope it looks unquoted. I've about hit my limit with 
> Apple's Mail.app, and one frustration is the dumbness of its mail 
> quoting...
>
>>   for (@ARGV) {print FOUT }
>    `bbedit $fout`'"
>>  end open

That's not necessary, you can have the script itself do all that and 
never need to see BBEdit at all.  If all you want is a droplet that 
converts line-endings in files dropped on it then that's a piece of 
cake.

What would be more interesting is an AS droplet that would act as 
DropScript does, creating a new droplet with the perl routine loaded, 
with the added features that it can stay open and that it knows where 
it is.  That doesn't sound too difficult.  I haven't really the time, 
but I'll see what I can come up within the next hour or two.

JD


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About