Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting value of imprint in PDFpenPro



I'm trying to use Applescript to fill in the values in a PDF form
using PDFpenPro; the following fails with an NSInternalScriptError,
though:

tell application "PDFpenPro"
	set aPage to page 1 of document 1
	set theField to (last imprint of aPage whose class is text field)
	set theField's value to "Foobar" as Unicode text
end tell

What am I doing wrong?

(Also, what exactly does NSInternalScriptError mean?  I can't find
any explanation Googling, nor does Matt Neuburg's book seem to address
it.  Similarly, if I us "the value of theField" instead of "theField's
value", I get an NSReceiverEvaluationScriptError; what does that mean?)

TIA,

Sweth.

-- 
Sweth Chandramouli
email@hidden - http://EthicalHomes.com/
Interested in property values in your neighborhood?  Ask me about how
to get regular email updates with the listing and final sales price of
every home that goes on the market or sells in your area.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.