• 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: Encrypting passwords with AS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Encrypting passwords with AS


  • Subject: Re: Encrypting passwords with AS
  • From: Philip Aker <email@hidden>
  • Date: Thu, 06 Feb 2003 15:30:28 -0800

On Thursday, February 6, 2003, at 01:06 AM, webguide wrote:

G'day Philip

Maybe try 'enc'. There's a man page for it.

Thanks - I finally got it going using a shell script but I now need to work out how to get Unix line endings into an Applescript written > file.

It kinda depends on several factors. I've decided to settle on Unix line endings on my setup and that has eased up things considerably. However, the situation does come up. If you just need to translate out of the shell script before coming back into AppleScript, then check out the 'tr' utility which does character substitution. This example translates the 'tr' man page (which most certainly has unix line endings) to a file which has Mac line endings:

man tr | tr "\n" "\r" > ~/Desktop/tr.txt

I can test in AppleScript with:

set fpath to (path to desktop as string) & "tr.txt"
if ((read file fpath) contains (ASCII character 13)) then
beep
end if

If you need to go the other way round it's just as easy.


Cheers,

Philip Aker
http://www.aker.ca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Encrypting passwords with AS
      • From: Paul Skinner <email@hidden>
References: 
 >Re: Encrypting passwords with AS (From: webguide <email@hidden>)

  • Prev by Date: Re: Scriptable notepad? (ditching Entourage)
  • Next by Date: Re: Storing preferences, part deux
  • Previous by thread: Re: Encrypting passwords with AS
  • Next by thread: Re: Encrypting passwords with AS
  • Index(es):
    • Date
    • Thread