2 Replies Latest reply on Mar 19, 2013 10:45 AM by rouelf_1

    Set a Base Directory path for External Storage using a script

    rouelf_1

      Title

      Set a Base Directory path for External Storage using a script

      Post

            

           Created a solution (Fmp11 Adv) that when it first starts, checks to see if a folder named XXXX has been created in the documents folder of the local computer running the solution. If it is not there, then it will create the folder in any local MAC or a PC running the solution. It works great in both platforms.

            

           I use the following script step to the set a path to my defined folder XXXX:

            

           Set Variable [ $path; Value:"file:" & Get ( DocumentsPath ) &

           Left ( GetAsText ( Glbs::g_Image ) ;

           Length ( GetAsText ( Glbs::g_Image )) -4 ) & "/" ]

            

           of course the above script step works great in either platform.

            

           Now: Have Converted to Fmp12, and would like to use my created folder as the external storage for containers. But cannot figure out how to set the path in the Base Directory to point to my created folder. Since this solution is for multiple individual use, it needs to set the Base Directory in the local i(ndiividual's) computer when the solution is run-ed.

            

           Is there a way to set this up using a script ?