Re: syntax problem
Re: syntax problem
- Subject: Re: syntax problem
- From: Sander Tekelenburg <email@hidden>
- Date: Sun, 30 Sep 2001 13:28:24 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 15:22 -0400 UTC, on 29-09-2001, Jeanne wrote:
>
[...] this is a 4 year old script, that PGP encrypts and
>
then mails to an anonymous remailer.
>
When checking syntax, I get the folloiwng error after locating
>
PGP:"expected end of line, etc, but found "to" "
I seem to remember that in an earlier message you explained that this script
was originally used under some earlier version of Mac OS and you're now
trying to use it under some newer version of mac OS. If that is correct, it
may help to know exactly which versions. Different OS versions come with
different versions of AppleScript, so this may affect your script.
Equally important is to be aware of differences in the versions of the
applications that you are scripting. In particular, good old ugly MacPGP
2.6.x was quite scriptable. Since version 5.0 PGP hardly deserves the name
"scriptable" :( Luckily, Mac PGP 2.6.x still works under Mac OS 9.x and can
even co-exist with PGP 7.x, sharing the same keyrings. So, assuming this is
(part of) your problem, it shouldn't be too hard to solve this. Judging from
your script, I'd say it needs Mac PGP 2.6.x. I don't know of any later
versions that support what your script attempts.
>
this is where the error occurs:
>
on DoEncrypt(theFile, Recipient)
>
set Recipient to commasplit(Recipient)
This refers to a handler "commasplit(Recipient)" which is missing. Are you
sure you posted the entire script?
>
if length of Recipient = 0 then
>
return
>
end if
>
with timeout of 300 seconds
>
try
>
tell application "PGP"
>
activate
>
encrypt (theFile) ,
>
to Recipient , <--this is where the error occurs
>
>
signature omitted ,
>
reading plaintext ,
>
writing asciified
>
end tell
That's it? There's definitely more missing here, which makes it a bit hard to
see what the problem could be. (I also wonder about those comma's... Could
that be the famous continuation character being mangled again by our lovely
mailing list server?...)
>
[...] I am not yet certain about how to use the dictionaries,
One reads them ;)
Unfortunately, with most AppleScript dictionaries you need a dictionary to
figure out what they really mean :-/
[...]
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <
http://www.pgp.com>
iQA/AwUBO7ZcXOsywKfXgqKdEQL4nQCfb5JNVOySOiovi9qXB7EJzbLi8JgAn1Dx
H0MhMICEwhLY1uCJmSeRrD7W
=dwxD
-----END PGP SIGNATURE-----