• 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
Re: Chainmail Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chainmail Applescript


  • Subject: Re: Chainmail Applescript
  • From: Sander Tekelenburg <email@hidden>
  • Date: Mon, 1 Oct 2001 11:53:03 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeanne,

You should be aware of the fact that PGP uses hyphens as delimiters.
PGP-signing a message that contains AS [AppleScript] is therefore tricky: any
line starting with 2 hyphens (AS's way of saying that what follows is a
comment) will be screwed up by PGP as it will preceed the line with "- "
[hyphen space].

Example:

-- this is a comment in AS
- -- this is an AS comment that's screwed up by PGP. It won't compile.

The easiest way around this is to use AS's "(*" and "*)" comment delimiters,
like this:

(* this is a comment
that won't be screwed up
by PGP signing this message *)

At 13:30 -0400 UTC, on 30-09-2001, Jeanne wrote:

> Below is the entire script called "Chainmail" This is the original
> source. NOT the copy I have been tinkering with.

Are you aware that the source lists several authors? If I were you I'd try to
contact them.

> +++++++++Begin Chain mail 1.0b2++++++++++++++++

[...]

> tell application "PGP7.03"
> activate
> encrypt (theFile) ,
> to Recipient ,
> signature omitted ,
> reading plaintext ,
> writing asciified

Indeed when compiling, Script Editor of course throws up an error on these
commma's. It may well have been this mailing list's server that screwed up,
but I don't see what characters they *should* be...

My copy of PGP most certainly doesn't list any of this in its dictionary. Not
even "encrypt". Then again, I use the free version of PGP. Possibly the
commercial version *is* scriptable?

Also, I get the impression that perhaps some third-party Scripting Addition
may be requiered for this script. From this next bit, I get the impression
that perhaps some Scripting Addiition is used to control PGP by scripting its
menus:

> on stopRecycle()
> tell application "PGP7.03"
> try
> with timeout of 30 seconds -- some applications won't respond to Menu
> events set menuListInfo to Query Menu List

I don't know which Scripting Addition "Query Menu List" comes from though. If
no one on this list knows, or explains, you could try to find out on
<http://www.osaxen.com>.

[...]

> This is the entire source. Yes the read me does indicate Mac PGP and
> legacy keys.

Does it mention any needed third party Scripting Additions (aka "OSAXen")?
The code mentions that this script needs "Regular Expression OSAXen", which I
don't know. The only RegEx scripting Addition I know is Leonard Rosenthol's
"RegEx Commands". Might the author of this script have meant that one?

> If I need to step down to MacPGP 2.6.x to use (which I
> would rather not)

The only downside would be that you can only use RSA keys. (Some people would
call that an "upside" ;))


Btw, if you can't get this script working, you might want to have a look at
"MixFit", a MixMaster app for Mac OS.


HTH


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBO7eyIusywKfXgqKdEQKPRwCg8FIthwA3NP+VcEAOQP2WgtKOqnUAoJBa
A4n5lqxj+OpoadaodxZLS2ut
=fSw6
-----END PGP SIGNATURE-----


  • Follow-Ups:
    • Re: Chainmail Applescript
      • From: Bryan <email@hidden>
  • Prev by Date: 3D based scripting
  • Next by Date: Creating User through AppleScript
  • Previous by thread: Re: Printing in QXP [plates missing]
  • Next by thread: Re: Chainmail Applescript
  • Index(es):
    • Date
    • Thread