Re: pdftotext
Re: pdftotext
- Subject: Re: pdftotext
- From: Deivy Petrescu <email@hidden>
- Date: Sat, 21 Dec 2013 10:46:26 -0500
On Dec 20, 2013, at 21:52 , Shane Stanley <email@hidden> wrote:
> On 21 Dec 2013, at 12:35 PM, Christopher Stone <email@hidden> wrote:
>
>> Your handler doesn't produce as nice an output as pdftotext's raw switch, but I'm not certain what all the differences are yet. I imagine it can be worked around.
>>
>> The biggest difference seems to be how whitespace is handled.
>
> The other difference, which might or might not help, is that you can use the index of a character to query where on a page that character appears. You can also get the result as styled text. So if your analysis needs to rely on a bit more than grep, there are other (more complicated, admittedly) options.
>
>> But I've been using the SIO for a decade+ and can write extremely useful code in seconds,
>
> Understood, but I'm not sure the grep syntaxes are all that different.
>
>> and that doesn't take into account all the templates and handlers I have for it.
>
> Don't mind me -- I'm in end-of-year contemplative mode. It's been so many years that we've been begging for AS access to things like grep, and so it seems a bit ironic that now that our wish has come true, the general response might well be that, well, we found it somewhere else already so we didn't really need it after all.
>
> Comfort and joy?
>
> --
> Shane Stanley <email@hidden>
> <www.macosxautomation.com/applescript/apps/>
Shane and all,
First thanks for the great code on getting the pdf of a file using ASOC.
Although as you mentioned the “scripting power" of AS has been tremendously improved with the addition of ASOC it also made the syntax that much more cumbersome.
For instance, the example you gave for list and sets, which by the way it is perfectly alright Mathematically when talking about Naive Set Theory ( I yield to Luther since he is a Set Topologist but there is Naive Set Theory for all the rest of humanity), why would I go to such lengths if it is a one liner in python or php ?
I believe the great power of AS is its simplicity. And even though it is simple it is still very powerful.
So, may be for me, ASOC came at a price, it certainly it opens many other doors but we have to relearn everything again.
I personally don’t know what is bette r going the ASOC way or full fledge Objective-C.
Right now my attention is elsewhere so I will not make the decision.
As for has complaints , I tend to agree that some of the decisions where not the best for scripters.
pyscript was awesome. And I miss it.
Now, I do believe that in general, we (AS community) did not give Smile its right value. It is an amazing application allowing one to go way beyond ASOC with much less work.
I which that AS had gone more in the direction that Smile went.
For scientific applications Smile is a god given application.
My $0.02
As for comfort and joy, may all of you rest and have a joyous holidays.
Happy new year to all and go AS (and obviously the AS team at Apple without whom we would not be having this discussion or any fun at all, to the Chrisses…)
Deivy Petrescu
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden