Using folder names for Prompts in Scripts

Version 1
    This document was generated from CDN thread

    Created by: Bill Welch on 24-09-2010 06:59:39 PM
    Running UCCX 8.
    I want to setup several versions of an app and its prompts. I'd like to just set a variable in a script for the folder to be used for a given version's prompt files. I know I can do it with string variables building up the folder plus file name and using a Prompt Step with the string. But is there a way to use Prompt type variables and do it.
    This scheme would make it easy to clone a running app and built a new version keeping the running version safe; each version would have its own folder of Prompts. There'd be no need to edit every prompt file name changing the folder names. Just change the one folder variable and move on. 
    Here is my app and folder setup:
    Apps
      App v1
      App v2
    Scripts
      App V1 Folder
         App v1 script
         App v1 subflow script
      App v2 Folder
        App v2 script
        App v2 subflow script
    Prompts
     
     
      [en_us]
         App V1 Prompts
           prompt1.wav
           prompt2.wav
         App V2 Prompts
          prompt1.wav
          prompt2.wav
     
    Scripts
       App v1 Script
          set FolderName = "App v1 Prompts/"
          set SomePrompt = FolderName + "prompt1.wav"
          more code
       App v2 Script
          set FolderName = "App v2 Prompts/"
          set SomePrompt = FolderName + "prompt1.wav"
          more code same as v1
     
    But what can I do with expressions like
           P[prompt1.wav]+P[prompt2.wav]
    given that the arguments to P[] are literal filenames and not expressions?
     
    Or is there some way to do this using the Language variable? L[]?
     
     
     
    <!-- google_ad_section_end -->
    BaseLineAdvQueueing script causing Abandoned rate to increase ¿

    <ul class="taxonomy">
    <li class="vocab vocab-1">Forums Topic:
    <ul class="vocab-list">
    <li class="vocab-term">Scripting</li>
    </ul>
    </li>
    </ul>


    <ul class="links inline">
    <li class="comment_add first last">Add new comment </li>
    </ul>

    <!-- /#node-208 --><!-- /content-inner --><!-- /content -->
    <!-- start block.tpl.php -->


    <h2 class="title block-title pngfix">Recommended Reading:</h2>

    <object id="Player_a16c0105-6941-4932-9572-7613d7d1e3eb" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="150" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
    <param name="_cx" value="10583" />
    <param name="_cy" value="3969" />
    <param name="FlashVars" />
    <param name="Movie" value="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Fucne-20%2F8003%2Fa16c0105-6941-4932-9572-7613d7d1e3eb&Operation=GetDisplayTemplate" />
    <param name="Src" value="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Fucne-20%2F8003%2Fa16c0105-6941-4932-9572-7613d7d1e3eb&Operation=GetDisplayTemplate" />
    <param name="WMode" value="Transparent" />
    <param name="Play" value="0" />
    <param name="Loop" value="-1" />
    <param name="Quality" value="High" />
    <param name="SAlign" value="LT" />
    <param name="Menu" value="-1" />
    <param name="Base" />
    <param name="AllowScriptAccess" value="always" />
    <param name="Scale" value="NoScale" />
    <param name="DeviceFont" value="0" />
    <param name="EmbedMovie" value="0" />
    <param name="BGColor" value="FFFFFF" />
    <param name="SWRemote" />
    <param name="MovieData" />
    <param name="SeamlessTabbing" value="1" />
    <param name="Profile" value="0" />
    <param name="ProfileAddress" />
    <param name="ProfilePort" value="0" />
    <param name="AllowNetworking" value="all" />
    <param name="AllowFullScreen" value="false" />
    </object>
    <noscript></noscript>



    <!-- /end block.tpl.php -->
    <!-- /content-bottom -->

    Subject: RE: Using folder names for Prompts in Scripts
    Replied by: Steven Pawlak on 04-02-2011 08:54:58 AM
    First off, the Google ad is very obnoxious.

    Second. Just do this   P[FolderName + "prompt.wav"]   Where FolderName is the Parameter variable that dictates the Prompt sub folder under en_US.