Re: Abby FineReader and ScanSnap
Re: Abby FineReader and ScanSnap
- Subject: Re: Abby FineReader and ScanSnap
- From: Neil Laubenthal <email@hidden>
- Date: Wed, 04 Apr 2012 14:48:05 -0400
On Apr 4, 2012, at 11:15 AM,4/4, KOENIG Yvan wrote:
> If I understood correctly the question, this short script may do the trick :
>
> --[SCRIPT]
> set theFile to choose file of type "com.adobe.pdf"
> read theFile
> my remplace(result, "/Creator 49 0 R /", "/Creator (ScanSnap Manager) /")
> write result to theFile
>
> --=====
> (*
> replaces every occurences of d1 by d2 in the text t
> *)
> on remplace(t, d1, d2)
> local oTIDs, l
> set oTIDs to AppleScript's text item delimiters
> set AppleScript's text item delimiters to d1
> set l to text items of t
> set AppleScript's text item delimiters to d2
> set t to "" & l
> set AppleScript's text item delimiters to oTIDs
> return t
> end remplace
>
> --=====
> --[/SCRIPT]
Thanks; that compiles and works but only lets me choose a single file at a time using the choose file dialog. What would I need to change to allow me to select a bunch of files and drop them onto the script for sequential processing and/or use it as a Folder Action Script so I can batch process things?
I can read that script and understand how it's doing it's work; but not being much of a programmer or scripter it is far beyond what I could produce on my own. I've gotten pretty good at modifying/borrowing from other scripts over the years to cobble stuff together but have never really been able to do much from scratch.
-----------------------------------------------
There are only three kinds of stress; your basic nuclear stress, cooking stress, and A$$hole stress. The key to their relationship is Jello.
neil
_______________________________________________
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