AW: is it safe to hardwire the "downloads" folder?

Tiemo Hollmann TB toolbook at kestner.de
Mon Nov 18 10:03:30 EST 2013


Hi Richard and Roger,

thank you for your insights.
I was wondering if that’s not a very common issue, so it is always valuable
to get other thoughts.
Now I think I can stay with the temp folder and don't care about how it
would look more "sophisticated"
Tiemo

> -----Ursprüngliche Nachricht-----
> Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im
Auftrag
> von Richard Gaskin
> Gesendet: Montag, 18. November 2013 14:38
> An: use-livecode at lists.runrev.com
> Betreff: Re: is it safe to hardwire the "downloads" folder?
> 
> Tiemo Hollmann wrote:
> 
> > I am looking for the best folder to download updates for my program on
> > win and mac.
> 
> The good news is that the friendly constants LiveCode provides for access
> to special folders is only a subset of the most commonly-used ones.  Ken
> Ray took the time to document many others that can be used on both OS X
and
> Windows:
> <http://www.sonsothunder.com/devres/livecode/tips/file010.htm>
> 
> The bad news is that I don't see the Downloads folder among them, nor
could
> I turn it up in Apple's docs.
> 
> It may be that no constant for Downloads was defined for the Carbon API,
so
> it wouldn't be accessible to us until that part of the LC engine is
updated
> for Cocoa.
> 
> Or it may be that it's simply documented in a place I couldn't find. :)
> 
> If you can find it, use it.  If not, I'd probably opt for a different
> folder just to be save.
> 
> If this is a file you want the user to interact with, then you may want to
> risk hard-wiring "Downloads", or use the Desktop folder.
> 
> If it's only for your app to draw from to update itself, most
self-updating
> apps use a temp folder, which may be a good idea here since tmp gets
> cleaned by the system between sessions in case anything goes wrong and
your
> app doesn't have a chance to clean up after itself.
> 
> --
>   Richard Gaskin
>   Fourth World
>   LiveCode training and consulting: http://www.fourthworld.com
>   Webzine for LiveCode developers: http://www.LiveCodeJournal.com
>   Follow me on Twitter:  http://twitter.com/FourthWorldSys
> 
> _______________________________________________
> 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