Re: Eudora Settings (was Re: (no subject))
Re: Eudora Settings (was Re: (no subject))
- Subject: Re: Eudora Settings (was Re: (no subject))
- From: "John C. Welch" <email@hidden>
- Date: Thu, 10 Apr 2003 18:12:10 -0400
On 04/10/2003 13:24, "John Delacour" <email@hidden> wrote:
>
> Ohmigod, what a way to design a program...
>
>
It's a terrific way to design a program, because every single
>
addition to the program is immediately scriptable. If Steve Dorner
>
were to add the ability to change header colors, for example, this
>
would be given a setting number and users would immediately be able
>
to script it without waiting two years for someone to rewrite an aete
>
dictionary. No wild new syntax to learn either -- just set setting x
>
to y.
Right...and of course, those changes and a list of codes is included by
default with every installation of Eudora...Let me just fire up my stock
install of 5.2.1...well, there's the rather immature advice about how
Apple's being a big ol' meany about disconnecting dialup software. How
mature. Hmm..didn't bother to update any of the documentation. Nope, still
can get the list of secret squirrel settings without a separate trip to the
web site.
>
>
It is quite clear from comments like this from you and John Welchm,
>
both Entourage users, that neither of you have any understanding of
>
Eudora.
I test every release of Eudora that comes out. I still haven't seen anything
worth using in years on the Mac side. The windows version doesn't suck as
much.
>
>
If I want to find out which settings apply to certain options, I can
>
run a script to search for a string or regular expressioni n the
>
settings list and have the answer before you have even got your
>
entourage dictionary displayed, let alone found the dictionary entry.
Um...try to find those settings in a stock install of Eudora, no trips to
the web allowed. Try to use those settings in a script by ONLY using the
dictionary as your source.
>
>
So when you understand Eudora and have the slightest interest in it
>
your comments might have some value.
I am forced to have an interest in it due to my work. It is rather like
being forced to kiss a skunk's hindquarters. The money is good, but the work
stinks.
>
>
For users of Eudora, the menu script referrred so is as follows. You
>
type a regular expression in the dialog and Eudora displays a message
>
with all matching settings. The file "x-eudora-settings.txt" must be
>
in Eudora Folder.
>
And where would they get this file. You may wish to give them the URL,
they'll be *quite* frustrated if they expect Qualcomm to include it by
default.
>
>
(* Toolbar button script to search for geek strings *)
>
tell application "Eudora"
>
set my text item delimiters to {":"}
>
set f to file of nickname file 0
>
set f to "" & text items 1 through -2 of ("" & f) & ":"
>
set XEStxt to POSIX path of f & "x-eudora-settings.txt"
>
set my text item delimiters to {""}
>
end tell
>
set f to "/tmp/junk.txt"
>
set ppt to "
>
Search 'x-eudora-settings.txt' for ..."
>
set dd to display dialog ppt default answer "" with icon 1001
>
set s to dd's text returned
>
set my text item delimiters to "\\"
>
set ls to text items of s
>
set my text item delimiters to "\\\\"
>
set s to "" & ls
>
set my text item delimiters to ""
>
do shell script "perl -e '$searchstring = qq~" & s & "~;
>
$fout = qq~" & f & "~ ;
>
$f = q~" & XEStxt & "~ ;
>
$error = qq~$/Can\\047t find file $f$/$/~ ;
>
sysopen F, $f, O_RDONLY ;
>
sysread F, $_, 1000 ;
>
$/ = /(\\015\\012|\\015|\\012)/ ? $1: qq~\\n~;
>
open F, $f or die $error;
>
open FOUT, qq~>$fout~ ;
>
$s = 0 ;
>
print FOUT qq~Key COMMAND-D to delete$/$/~ ;
>
for (<F>) {
>
/$searchstring/i and print FOUT qq~$_$/~ ;
>
}'"
>
set s to read POSIX file f
>
if s is "" then return
>
tell application "Eudora"
>
activate
>
make message at end of mailbox 2
>
set body of message "" to s
>
end tell
>
_______________________________________________
Ooooh...only 30+ lines of script in TWO different languages, and an external
download to get to where you can easily search the settings. Hmm...how many
to get clear meanings for each and how to use them in a script. I bet you
can do it in under 500 lines, and you'll only need 100 lines of ObjC in
addition.
Wow...how silly of me to use a mail program that has all the features
documented and obvious, and a complete scripting dictionary...whatever WAS I
thinking.
john
--
"Let your plans be dark and as impenetratable as night, and when you move,
fall like a thunderbolt."
- Sun Tzu, The Art of War
_______________________________________________
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.