Unreliable File Deletion

ELS Prothero prothero at earthlearningsolutions.org
Sun Mar 28 13:28:44 EDT 2021


Folks,
This alarms me. 
In my app, I write a file to specialFolderpath(“desktop”).
What are the conditions to make this work on Apple or Windows standalones?

Bill

William Prothero
https://earthlearningsolutions.org

> On Mar 28, 2021, at 10:22 AM, Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi friends,
> 
>> Am 28.03.2021 um 19:11 schrieb R.H. via use-livecode <use-livecode at lists.runrev.com>:
>> ...
>> ... put specialfolderpath("resources") &"/temp.txt" into tFilePath
>> ... put tOut into URL("binfile:"&tFilePath)
>> ...
> 
> you may already know this, but this will not work in a standalone!
> We will surely not have write permissions in that folder!
> 
> As a workaround I would probably use -> specialfolderpath("temporary")
> Or even write the text to -> the tempname
> 
> Both are available on all platform and you do not have to think about 
> deleting that file later, the OS will take care of this. :-)
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> klaus at major-k.de
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list