Re: Encrypting passwords with AS
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.