Re: [Pythonmac-SIG] Python OCR on the Mac?

2005-10-21 Thread Laurent Pierron
The OCR Software ReadIris Pro 9 from Iris (http://www.irislink.com/) 
has an Apple Event interface, but I haven't yet tried it.

A part of the AppleScript dictionary :


Readiris Suite: Terms pertaining to Readiris

analyze: Analyze a page of the document
analyze  reference  -- the page to be analyzed

auto recognize: Automatically recognize a list of documents
auto recognize  reference  -- list of documents to open

deskew: Deskew a page of the document
deskew  reference  -- the page to deskew

extract business cards: Extract business cards from a page of the 
document
extract business cards

recognize: Recognize a document
recognize  reference  -- the object to be recognized
[saving to  file specification]  -- specifies the file to save 
the 
output to

rotate: Rotate a page of the document
rotate  reference  -- the page to rotate
by  clock90/anticlock90/clock180  -- the angle by which to 
rotate

scan: Scan a set of pages into the document
scan  reference  -- the document to scan the page(s) into

shift: Shift a page in the document
shift  reference  -- the page to shift
to  small integer  -- the target position (index)

tune up: Tune up a page of the document
tune up  reference  -- the page to tune up
smoothing  boolean  -- smooth image?
contrast  small integer  -- the contrast level
despeckling  small integer  -- the despeckling level
===


--
Laurent

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Fwd: Preferred IDE

2005-12-02 Thread Laurent Pierron

Le 1 déc. 05, à 04:09, [EMAIL PROTECTED] a écrit :

> Smultron looks quite nice, but I don't see a way to submit files for
> execution, or to get console output back. Does it require switching
> to Terminal or the like, or am I missing something?
>

Smultron is Apple Scriptable, so you can use an AppleScript to call 
Python from Smultron get back the ouptut and send it back to Smultron.

You can put your special scripts for Smultron in 
~/Library/Scripts/Applications/Smultron

For more information see : http://www.apple.com/applescript/scriptmenu/

--
Laurent PIERRON

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] appscript equivalent of launch?

2006-07-20 Thread Laurent Pierron

Le 20 juil. 06, à 16:31, has a écrit :

> Kevin Walzer wrote:
>
>> import os
>>
>> os.system('open -a TextEdit.app')
>
> Still ends up sending a run event, unfortunately. The goal is to
> launch the app without it opening an empty document, as 'launch app
> "TextEdit"' does.
>

Try that :

    os.system('osascript -e \'launch application "textedit"\'')

--
Laurent PIERRON

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig