Re: syntax problem
Re: syntax problem
- Subject: Re: syntax problem
- From: Michelle Steiner <email@hidden>
- Date: Mon, 1 Oct 2001 15:43:01 -0700
On 9/28/01 7:08 PM, Kelly <email@hidden> wrote:
>
on DoEncrypt(theFile, Recipient)
>
set Recipient to commasplit(Recipient)
>
>
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
if that comma at "encrypt (theFile) ," is a really a comma in the script,
you need to change it to an option-L. Same thing for the subsequent
lines ending with commas.
I can't find an application called PGP on my computer; I wonder if your
script is using an outdated version of PGP.
>
any suggestions? I am not yet certain about how to use the dictionaries,
>
so I have working with a "hit & miss" approach, trying everything and
>
making notes.
To use the dictionary, drag the file's icon onto the Applescript Editor's
icon (alternatively, open the file from withing Applescript, using "Open
Dictionary").
Each command and object is listed in the left panel; clicking on one of
them displays its contents in the right panel. For each command, all the
parameters are listed below the command; optional parameters are shown in
brackets. One important thing to remember is that all the parameters
must be on the same line of text as the command, unless the last
character of a line is Option-L; in which case, the next line is treated
as a continuation of that line.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------