Re: Automatic Build Tool cont'd



Thanks for your in-depth reply Vincent,

Im sure I will make more use of your newsgroup whilst continuing my trial.

Alex

"Vincent Parrett (VSoft Technologies)" <vincent@.nospam.finalbuilder.com>
wrote in message news:43d45006$1@xxxxxxxxxxxxxxxxxxxxxxxxx
> "Al Vas" <nogo@xxxxxxxx> wrote in message
> news:43d33992@xxxxxxxxxxxxxxxxxxxxxxxxx
>> One of my most time-consuming tasks is notifying current clients of
>> impending release of software. Whilst both have email sending
>> capabilities, it appears that FB4 requires that you enter each email
>> individually (ie doesnt seem to be a capability to import a contact list,
>> an Outlook contact list for example). Is this correct?
>
> You can easily grab contacts from an Outlook group using some VBScript. On
> the Project Menu, select Project Global Script and then in the script
> editor, past the following :
>
> '----------------------------------------------------
> Function FindDistributionList(strName)
> Const olFolderContacts = 10
> Dim myOlApp
> Dim myNameSpace
> Dim i
> dim myDL
>
> Set FindDistributionList = nothing
> Set myOlApp = CreateObject("Outlook.Application")
> Set myNameSpace = myOlApp.Application.GetNamespace("MAPI")
> set contactsFolder = myNameSpace.GetDefaultFolder(olFolderContacts)
> 'Go through all the distribution lists in the folder
> For i = 1 To contactsFolder.Items.Count
> If TypeName(contactsFolder.Items.Item(I)) = "DistListItem" Then
> Set MyDl = contactsFolder.Items(I)
> if contactsFolder.Items(i).DLName = strName then
> set FindDistributionList = contactsFolder.Items(i)
> exit for
> end if
> end if
> next
> End Function
> '----------------------------------------------------
>
> then in the BeforeAction script event of the SMTP action you can do
> something like this :
>
> dim i
> dim MyDL
> dim DLMember
> 'Clear the existing list if you want.
> Action.RecipientsList.Clear
> Set MyDL = FindDistributionList("My Group Name")
> if not (MyDL is nothing) then
> For i = 1 To MyDl.MemberCount
> Set DLMember = MyDl.GetMember(i)
> if DLMember.Address <> "" then
> Action.RecipientsList.Add DLMember.Name, DLMember.Address
> end if
> next
> else
> MsgBox "Didn't find the group!"
> end if
>
> Also, you can load email recipients from a file (each address on a new
> line) with one line of VBScript, e.g :
>
> Action.RecipientsList.AddFromFile "C:\temp\email.txt"
>
> or from a delimited list (you can specify the delimeter) :
>
> Action.RecipientsList.AddDelimitedList
> "joe@xxxxxxxxxx,mike@xxxxxxxxxx",","
> (you can also substitute FB variables here too)
>
>> Also, from what I can see FB4 doesnt have a Pascal-based script, only
>> Java or VBScript. Being a dedicated Delphi development environment, this
>> would also be important for us. Is there maybe a plugin of some sort?
>
> No, we spent some time evaluating which scripting languages to support.
> The components/library we based out scripting support on does support a
> Delphi Script, however we felt that it was not a good language for
> scripting (not wanting to get into debate about the merits of different
> languages here), and because most scripting examples out there are in
> either VBScript and JavaScript we settled on those two languages. Also,
> since the vendor of the library long ago stopped supporting their product
> we probably won't be adding delphiscript support, we have already made
> many modifications to the scripting library to resolve memory leaks and
> bugs and don't wish to deal with an unsupported script interpreter
> (VBScript & JScript are provided by microsoft).
>
> The above script was cobbled together in a few minutes with a quick search
> for examples on google (copy & paste.... no converting to the equive
> delphi script needed).
>
> BTW, we have a very active support newsgroup at
> news://news.finalbuilder.com or http://news.finalbuilder.com , or you can
> contact us at support at finalbuilder dot com if you need further support
> during or after your evaluation.
>
> HTH
>
> --
> Regards
>
> Vincent Parrett
> VSoft Technologies
> http://www.finalbuilder.com
> Blogs : http://blogs.finalbuilder.com
> ----------------------------------------
> Automate your Build Process with FinalBuilder
>
>
>


.



Relevant Pages

  • Re: LDAP query information
    ... execution of the vbscript? ... The error message indicates the line number in the script, ... Dim strBase, strFilter, strAttributes, strQuery, adoRecordset ... ' Construct LDAP syntax query. ...
    (microsoft.public.windows.server.scripting)
  • =?ISO-8859-1?Q?New_System_Command_Script_Facility?=
    ... I'm currently finished writing a new replacement command script processor ... (at least that RACF thinks so, and better support for non-RACF sites). ... The IF-type commands now have ELSE processing ... non-scroll highlighted console message and BEEP until a specific JOB or TASK ...
    (bit.listserv.ibm-main)
  • Ping Steve Yandl or other VBScript gurus
    ... way to launch Word invisibly and then have it execute a specific macro. ... included a sample VBScript that demonstrated the idea. ... I'm trying to add one small wrinkle to the script and can't figure out how ... dim bWaitOnReturn ...
    (microsoft.public.word.vba.general)
  • Re: Internet Explorer Automation with VB6, Click Buttons, Enter Passwords
    ... there's no such thing as "VB6 script". ... VBScript is not just uncompiled VB. ... Dim ie as Object is not valid. ...
    (comp.lang.basic.visual.misc)
  • Re: [msh] Some msh setup questions
    ... [msh] Some msh setup questions ... > Is there, is there going to be, support for Msh on Itanium. ... These are the current languages that we plan to localize to when we ship ... > What about support for Arabic script? ...
    (microsoft.public.windows.server.scripting)