RE: scripting question
| Date : Thu, 6 Apr 2006 18:07:51 -0400 |
| To : <XSI(at)Softimage.COM> |
| From : "Dana Smith" <Dana.Smith(at)sas.com> |
| Subject : RE: scripting question |
FWIW I used this recently:
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "me(at)my.com"
objMessage.To = "test(at)paulsadowski.com"
objMessage.TextBody = "This is some sample message text."
objMessage.Send
objMessage.Subject = "Example CDO Message"
objMessage.From = "me(at)my.com"
objMessage.To = "test(at)paulsadowski.com"
objMessage.TextBody = "This is some sample message text."
objMessage.Send
Dana L.
Smith
Marketing Creative
SAS
(919) 531-4116
Dana.Smith(at)sas.com
http://www.sas.com
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of kim aldis
Sent: Thursday, April 06, 2006 4:11 PM
To: XSI(at)Softimage.COM
Subject: RE: scripting question
It's not so easy now, outlook has closed the door, or
at least shut it far enough to make it tricky. You have some control over it
using activeX, I did a neat thing a while back where I used xsi to strip through
an Outlook mail folder, pull out sender names and compile them into a
group contact all the people in the folder. There's many apps you can control in
this way; Outlook, Photoshop, Excel, Word .... One of the many advantages of the
way scripting is implemented in xsi.
I thought I saw something about Jscript able to send email using Active X objects? Was I dreaming this? (Goes to dig for it)
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Meng-Yang Lu
Sent: 06-April-2006 19:47
To: XSI(at)Softimage.COM
Subject: Re: scripting question
Sorry, not trying to debunk your ideas, but I think it's very cool they some of the features can be taken advantage of even if they don't exist in the language of your choice.
-Lu
On 4/6/06, brad <brad(at)cg-soup.com> wrote:To add an example to Todd's points about mixing languages:
Let's imagine you are working on a plugin using vbscript, and you are finding it takes a long time to complete. You think to yourself, "wouldn't it be cool if I could send an email to the user once the plugin finished?" So you go looking through the msdn documentation and then the XSI SDK docs to see if there is any way to send an email directly from vbscript. After a quick search, you discover that neither vbscript or jscript provides any free and easy way to send an email, but Python not only does email, it does IM's too!
At this point, if you were Python-capable or know someone else who is, you could write (or coax) a simple Python command called "Notify(user, title, message)" that sends both an email and an IM, and register that with XSI. Now you can finish off your tool where all you have to do is call Notify() from inside your vbscript.
-Brad
> -------Original Message-------
> Joey Ponthieux wrote:
> > Todd,
> > Thanks. Interesting page, this ought to come in real handy.
> >
> > I'm a bit confused about the VBScript versus _javascript_ thing though. I
> > think I could see why _javascript_ is favored, but does that mean you have
> > to run all your scripts in one versus the other? I guess what I am
> > wondering is once you set XSI preferences to _javascript_, does that mean
> > all scripts that you develop have to be _javascript_ from that point , or
> > can you you mix VBScript and _javascript_ and XSI knows how to figure out
> > which is which?
> >
> >
> > Joey
> >
> Both vb, js, and whatever else you want to use can coexist in your
> toolset.You can have a script which is vb and a script with is js on
> the same toolbar and both will work fine.
>
> Each script must remain in it's own respective language.However you
> can call another registered command from a script written in another
> language.It will need to be a registered command however.If you
> right click on a script on the toolbar you will under one of the tabs an
> option that declares what language the script uses, so it knows from
> there what language to use to interpret it.
>
> However if you have a random chunk of text in the script editorit
> always needs to know what language to use, and will give you an error if
> the script/language pref don't jibe.
>
> -T
>
>
>
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: RE: Another scripting question
- Next by Date: RE: Another scripting question
- Previous by Thread: RE: Another scripting question
- Next by Thread: RE: Another scripting question
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |