• 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: Tue, 2 Oct 2001 18:31:28 +0200

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

At 08:38 -0700 UTC, on 02-10-2001, Jon Pugh wrote:

> At 2:29 PM +0200 10/2/2001, Sander Tekelenburg wrote:
>>on my machine (Mac Os 9.1, AS 1.6, PGP7.0.3)
>>this doesn't compile :
>>
>>tell app "PGP"
>> encrypt (theFile) to Recipient signature omitted reading plaintext writing
>>asciified
>>end
>>
>>The error says:
>>
>> "A to:Recipient can't go after this encrypt(theFile)"
>
> I wonder if the () are making AS think it's a subroutine call, in which
> case it wouldn't be using the proper event syntax.

Yes, looks like it.

When you change it to just:

tell app "PGP"
encrypt (theFile)
end

Script Editor sompiles it to:

tell app "PGP"
encrypt(theFile)
end

Apparently, because the dictionary of my copy of PGP doesn't contain an
"encrypt" keyword, AS considers it a variable and then decides that the
addition of "(theFile)" must mean it must be a subroutine call.


Anyway, I think getting this script to work will boil down to finding the
versions of apps and OSAXen it was written for originally.


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

iQA/AwUBO7nr3OsywKfXgqKdEQJ31QCglzbNDhIyBj7xm7Gtj3E7V1jaP4EAoOe0
mWiI24BsXsNc80bBi37WAVRl
=Mlr3
-----END PGP SIGNATURE-----


References: 
 >Re: Chainmail Applescript (From: has <email@hidden>)
 >Re: Chainmail Applescript (From: Sander Tekelenburg <email@hidden>)
 >Re: Chainmail AppleScript (From: Jon Pugh <email@hidden>)

  • Prev by Date: TCP/IP, Serial Ports...etc..!!!
  • Next by Date: Re: Chainmail Applescript
  • Previous by thread: Re: Chainmail AppleScript
  • Next by thread: Re: Chainmail Applescript
  • Index(es):
    • Date
    • Thread