FranklinAudio in Standalone?

Klaus major-k klaus at major-k.de
Mon Jul 8 17:37:31 EDT 2013


Hi Matthias,

Am 08.07.2013 um 22:09 schrieb Matthias Rebbe <matthias_livecode_150811 at m-r-d.de>:

> Hi Klaus,
> 
> shouldn´t it be tFolder instead of tFile in line 2 of your script?

Yes, sure, sorry :-)

> Regards,
> 
> Matthias
> Am 08.07.2013 um 21:55 schrieb Klaus major-k <klaus at major-k.de>:
> 
>> Hi Scott,
>> 
>> Am 08.07.2013 um 18:49 schrieb Scott Rossi <scott at tactilemedia.com>:
>> 
>>> Thanks Klaus.  The external is getting copied over as expected, and I've tried manually setting the externals property of the stack with the bundle name of the external.  But I think I'm still missing something.  What does your external loading routine look like?
>> 
>> I put ALL externals (also revdb.xxx and all other db drivers, no subfolder!) into a folder "Externals".
>> Then I do this on startup:
>> 
>> on startup
 put the effective filename of stack "The MAIN stack" into tFolder
>>  set itemdel to "/"
>>  put "Externals" into item -1 of tFolder
>>  put the folder into oldfolder
>>  set the folder to tFolder
>>  if the platform = "MacOS" then
>>     put the folders into tEx
>>     filter tEX with "*.bundle"
>>  else
>>     put the files into tEx
>>     filter tEx with "*,dll"
>> end if
>> 
>>     repeat for each line i in tEx
>>        put tFolder & "/" & i & CR after tEXList
>>     end repeat
>> 
>>  delete char -1 of tEXList
>>  set the externals of stack "The MAIN stack" to tEXList
>>  start using stack "The MAIN stack"
>>  set the folder to oldfolder
>> end startup


Best

Klaus
--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list