• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
HP Scanning made a bit easier?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HP Scanning made a bit easier?


  • Subject: HP Scanning made a bit easier?
  • From: David Crowe <email@hidden>
  • Date: Fri, 3 Jun 2005 17:22:04 -0600

Title: HP Scanning made a bit easier?
This is not an off-the-shelf script, it probably will require some work for your own individual circumstances...:

http://www.davidcrowe.ca/AppleScript/HP Scan Control.scpt.zip


I could never get the HP-supplied software to work properly with my HP all-in-one scanner/fax/colour printer. This meant that scanning only worked through a browser interface with far too many clicks. And even then PDF files came off as individual pages.

Looking at the _javascript_ I realized that all you need to get the scanner to work is to talk to the built in http server, through a simple URL.

Note that the script uses Acrobat 6 (5 also works, and presumably 7) to stitch the pages together. It also uses Acrobat to show you a thumbnail of the scan as the pages are collected.

This is the critical function, just for illustration:
-- DownloadScannedPage
on DownloadScannedPage(FileName, PageNumber)
     
tell application "URL Access Scripting"
       
set theURL to Scanner_URL & "notused.pdf" & "?type=" & TypeCode & "&fmt=" & FormatCode
         
with timeout of 240 seconds
                    
try
                            
download theURL to file FileName
                       
on error errmsg
                       
activate
                               
display dialog "Access to URL <" & theURL & "> for page #" & PageNumber & " failed." & return & errmsg
                         
return (false)
                 
end try
       
end timeout
    
end tell
       
return (true)
end DownloadScannedPage


"TypeCode" is "3" for color, for example, and FormatCode is "3" for a PDF file (the only type that the script currently supports).

This script works with my psc 2510, but might work, perhaps with some minor tweaks, with other HP models.

Basically it allows you to scan multi-page documents as single PDF files, and allows the scanning of multiple documents. The "Quick Scan" feature omits the prompt between pages, basically you have to put the next page on while the scanner bulb is returning to its home position. This saves quite a bit of time, especially for black and white scans.


Anyway, feel free to make use of it, and let me know if you find any bugs or make any useful enhancements.

- David Crowe
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Distiller Sample Line?
  • Next by Date: Re: More weird Unicode things
  • Previous by thread: (no subject)
  • Next by thread: need something faster
  • Index(es):
    • Date
    • Thread