Hi Matthias,

Am 08.07.2013 um 22:09 schrieb Matthias Rebbe 
<matthias_livecode_150...@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 <kl...@major-k.de>:
> 
>> Hi Scott,
>> 
>> Am 08.07.2013 um 18:49 schrieb Scott Rossi <sc...@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
kl...@major-k.de


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to