Kinook Software Forums

Kinook Software Forums (
-   [VBP] Third Party Tools (
-   -   list macros from Powershell? (

tan125 05-28-2008 01:47 PM

list macros from Powershell?
Using vbscript, you can use vbld_AddDelimValue to set a temporary macro to the value of a list. Is there a method/way to do this within a Powershell step? Is there an equivalent Powershell command that does the same thing?

kinook 05-28-2008 02:20 PM

1 Attachment(s)
PowerShell is not currently integrated to the same degree as Active Scripting languages (VBScript, JScript, Python, RubyScript, etc.), so it doesn't have access to the live VBP object model for creating/updating temporary macros, etc. (deeper integration with PowerShell is something we'd like to add in the future).

From a PowerShell script, you can create another instance of the VBP object model and create/update a global macro, which would then be accessible from the calling VBP project (see attached sample).

tan125 05-28-2008 02:45 PM


I assume the "2" in $global = $app.Macros(2) refers to the type of macro being created (in this case, global)?


kinook 05-28-2008 02:55 PM


All times are GMT -5. The time now is 08:31 AM.

Copyright 1999-2019 Kinook Software, Inc.