Re: Download a stack file
This did work for a while. Now it is not working-- the cached message is not sent. I tried putting a wait until URLStatus is cached but the program waited indefinitely, so it seems that it is not loading from this remote server. The file is available (I used an FTP application to test download it--took a few seconds.) Did 5.0 break something? The file I'm downloading is: load URL http://artsinteractive.org/updates/MITA-1NEW.livecode; with message downloadDone Peter On Oct 28, 2011, at 1:25 PM, AndyP wrote: Use a callback to check when the loaded file is cached (fully loaded) and then save the file via a url. load url myUrl with message loaded on loaded pUrl, pStatus if pStatus = cached then put url pUrl into url (binfile: pathToLocalFile) end if unload url pUrl end loaded - Andy Piddock My software never has bugs. It just develops random features. PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode (v1.4.1 released 26/08/2011) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Download-a-stack-file-tp3947074p3949126.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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 ___ 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
Download a stack file
Hi, I'm making a stack updater that downloads a LC stack to the user's hard drive and replaces a stack there. I plan to: 1. Have the user download a small updater stack and run it 2. The updater gets essential data from the user's old stack and writes it to a file 3. The updater then downloads a new stack, reads the data into the new stack 4. The old stack is deleted from memory and the hard drive 5. The new stack is renamed to the old stack name. Is this a good method? What are the commands for downloading the replacement stack to the user's hard drive? I've not got anywhere with load. Many thanks for any help! Peter Bogdanoff UCLA ___ 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
RE: Download a stack file
I do this kind of auto-loading with almost all my apps, but to date I have never written changes to the stack itself. I always save data in files external to the stack and have that data pulled in at preopenstack. So I never have to do a stack to stack transfer of data or stack renaming. Not saying this is the best way, it is just the way I do it. Yes, load is what I use. Works well for me, though recently have encountered IT policy that is quarantining updates. Mark -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Peter Bogdanoff Sent: Thursday, October 27, 2011 11:45 PM Hi, I'm making a stack updater that downloads a LC stack to the user's hard drive and replaces a stack there. I plan to: 1. Have the user download a small updater stack and run it 2. The updater gets essential data from the user's old stack and writes it to a file 3. The updater then downloads a new stack, reads the data into the new stack 4. The old stack is deleted from memory and the hard drive 5. The new stack is renamed to the old stack name. Is this a good method? What are the commands for downloading the replacement stack to the user's hard drive? I've not got anywhere with load. Many thanks for any help! Peter Bogdanoff UCLA ___ 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
Re: Download a stack file
How, exactly do you implement Load? I need to get a stack file from the server on to the local machine. I seem to be able to load it into memory, but can't actually see the stack or save it to disk. I've done both methods for storing data; both times for books with a lot of text, pictures, and audio/video. Working with internal data is just a LOT faster and simpler for this sort of thing. For this update, I need to save out and restore the user's magic marker hilites of the text--it's a textbook app. On Oct 28, 2011, at 9:06 AM, Mark Powell wrote: I do this kind of auto-loading with almost all my apps, but to date I have never written changes to the stack itself. I always save data in files external to the stack and have that data pulled in at preopenstack. So I never have to do a stack to stack transfer of data or stack renaming. Not saying this is the best way, it is just the way I do it. Yes, load is what I use. Works well for me, though recently have encountered IT policy that is quarantining updates. Mark -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Peter Bogdanoff Sent: Thursday, October 27, 2011 11:45 PM Hi, I'm making a stack updater that downloads a LC stack to the user's hard drive and replaces a stack there. I plan to: 1. Have the user download a small updater stack and run it 2. The updater gets essential data from the user's old stack and writes it to a file 3. The updater then downloads a new stack, reads the data into the new stack 4. The old stack is deleted from memory and the hard drive 5. The new stack is renamed to the old stack name. Is this a good method? What are the commands for downloading the replacement stack to the user's hard drive? I've not got anywhere with load. Many thanks for any help! Peter Bogdanoff UCLA ___ 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 ___ 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
Re: Download a stack file
Use a callback to check when the loaded file is cached (fully loaded) and then save the file via a url. load url myUrl with message loaded on loaded pUrl, pStatus if pStatus = cached then put url pUrl into url (binfile: pathToLocalFile) end if unload url pUrl end loaded - Andy Piddock My software never has bugs. It just develops random features. PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode (v1.4.1 released 26/08/2011) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Download-a-stack-file-tp3947074p3949126.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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
Re: Download a stack file
thanks, I'll try that. Peter On Oct 28, 2011, at 1:25 PM, AndyP wrote: Use a callback to check when the loaded file is cached (fully loaded) and then save the file via a url. load url myUrl with message loaded on loaded pUrl, pStatus if pStatus = cached then put url pUrl into url (binfile: pathToLocalFile) end if unload url pUrl end loaded - Andy Piddock My software never has bugs. It just develops random features. PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode (v1.4.1 released 26/08/2011) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Download-a-stack-file-tp3947074p3949126.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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 ___ 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
RE: Download a stack file
It's also worth experimenting with the revert command. If you have a running sub stack (this must be a seperate stack file) then once you have loaded and saved a new version to the same location as the original, issuing the revert command will flush the loaded file from memory and load up the new version. Let us know how you get on. - Andy Piddock My software never has bugs. It just develops random features. PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode (v1.4.1 released 26/08/2011) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Download-a-stack-file-tp3947074p3949186.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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