• 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: set var to foo; get var of record?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set var to foo; get var of record?


  • Subject: Re: set var to foo; get var of record?
  • From: John Delacour <email@hidden>
  • Date: Fri, 18 Oct 2002 00:53:59 +0100
  • Mac-eudora-version: 5.3a5

At 12:03 am +0200 18/10/02, Terje Bless wrote:

Is it just that nobody has gotten around to implement it yet,
or is there simply no way to reconcile this with some fundamental
philosophy of AppleScript (of which I'm too much the novice to be aware
of)?

The fundamental philosophy of AppleScript is never to get round to implementing things.


If anyone feels like making extended commentary -- or even just snide
remarks :-) -- on my AppleScript "babytalk", feel free to do so (though
perhaps off-list to spare the regulars). I'm sufficiently lost when it
comes to AppleScript that any and all feedback is gold to me! :-)

Regular listoons will not be surprised to hear that my main criticism of your script is that you're using the wrong mailer :-)


Now for the good news -- you can use perl in AppleScript...


tell app "Eudora"
set from_ to get field "From" of message 1
set pers_ to do shell script "perl -e '
$from = q~" & from_ & "~ ;
%hash = (
q~@pobox~ => q~Pianomaker~,
q~@eremita~ => q~Direct~
) ;
for (keys %hash) { $from =~ /$_/i and print $hash{$_} }'"
set reply_ to reply message 1
if pers_ is not "" then set personality of reply_ to personality pers_
end


# JD
_______________________________________________
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: set var to foo; get var of record?
      • From: Terje Bless <email@hidden>
  • Prev by Date: Re: Weird
  • Next by Date: CENTER window on Screen
  • Previous by thread: Re: set var to foo; get var of record?
  • Next by thread: Re: set var to foo; get var of record?
  • Index(es):
    • Date
    • Thread