Standalone and Valentina
lists at mangomultimedia.com
Thu Dec 23 11:29:32 CST 2004
On Dec 23, 2004, at 8:58 AM, Jean-Claude SERRANO wrote:
> Thanks for your quick answer.
> I had already test the method 1.
> I have tried everything you told me to do (method 2) and it still does
> The dialog box in preopenstack is always empty.
Sorry, I gave you a sys_appPath function that won't work correctly.
Replace the previous code with this:
local tExternals = ""
put sys_AppPath(true) & "/data/externals/revdb.dll" &cr into tExternals
put sys_AppPath(true) & "/data/externals/revdb.bundle" after tExternals
set the externals of this stack to tExternals
* Set the database driver path.
--> TEST: DISPLAY THE EXTERNAL PACKAGES AVAILABLE TO THE STACK
--> SHOULD DISPLAY "RevDB".
answer the externalPackages of this stack
revSetDatabaseDriverPath (sys_AppPath() & "/data/externals/")
* Returns the path to the executable.
* @param pGetBundleFolder Set to true to return the folder an app
bundle is in rather than the full path to the executable on OS X.
* @return String
function sys_AppPath pGetBundleFolder
local tPath = ""
put address into tPath
if pGetBundleFolder = true AND platform() contains "MacOS" and item
1 of systemVersion() >= 10 then
get offset(".app/Contents/MacOS/", tPath)
if it > 0 then -- 2.4.3 or later
delete char it to length(tPath) of tPath
set itemDel to slash
delete item -1 of tPath
set itemDel to ":"
delete item 1 of tPath
That should work for you.
Blue Mango Multimedia
trevor at mangomultimedia.com
More information about the use-livecode