• 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: Execute script code in email body
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Execute script code in email body


  • Subject: Re: Execute script code in email body
  • From: cricket <email@hidden>
  • Date: Wed, 20 Nov 2002 11:58:22 -0800

Seems theoretically possible. The OE rule could trigger an Applescript which parses the body of the message, writes it to a file, then loads its content using the load script command. You could then execute handlers in the emailed applescript.

You could also try using osascript. The Applescript it launches could parse the body of the message that triggered the rule and send it to /usr/bin/osascript, using the 'do shell script' command.

Haven't actually tried it, but I might work! I don't recall the name offhand, but there is a third-party application that does something quite like this. It's not a full email client, as I recall.

- cricket

On Wednesday, November 20, 2002, at 07:46 AM, Paul Berkowitz wrote:

Just wanted to test some of your grey cells. I have a theory/question
for you...

We all know that it is possible for Outlook Express to run AppleScripts
based upon rules for each inbound and outbound message. We know that it
is possible to extract elements of each message. What about setting up
a rule for messages with the Subject "Run me, I've got permission"
which creates a file based upon the script code within the message body
and then proceeds to execute this script. Obviously each OE client
would need to have the rule already added for this to work.

But... is it possible?

Only if everyone also has a scriptable script editor too. To turn ordinary
text into a script, you'd first have to create the script, meaning you'd
have to tell Smile (assuming you don't want to buy Script Debugger for
everyone) to make a new script, then run it. Or perhaps just 'run script' if
it's formatted correctly already.

Be aware that you _cannot_ create rules by script in OE. As you say, the
rule would have to be there in place already. (So don't worry, folks. No one
could ever create a virus this way.) There's also no way to prevent anyone
from disabling the rule or deleting it. Doesn't sound like a great idea to
me.


Don't worry if you're busy, reply when you've the time. One of the uses
for this 'idea' would be for System Admin to automate certain tasks at
the will of the Sys Admin staff.

I'd forget it, if I were you.

----->
Software Entomologist  Mail for Mac OS X
http://www.apple.com/macosx/jaguar/mail.html
---------->
Resilience is futile...
_______________________________________________
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: Execute script code in email body
      • From: Steve Savery <email@hidden>
References: 
 >Re: Execute script code in email body (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Making Terminal quit
  • Next by Date: Mail Applescript Error in Mail 10.1.5 and not in 10.2?
  • Previous by thread: Re: Execute script code in email body
  • Next by thread: Re: Execute script code in email body
  • Index(es):
    • Date
    • Thread