Save field text to file

Adrian Williams adrian at
Sun Dec 10 10:16:54 EST 2006

Thanks for that. Logical really. Just shows my newness to Rev!

Your suggestion about filetype saves the text out to a file,
but the file is Saved with the filename tFilePath. What's wrong
with my code that "Untitled.txt" is not used?

  case "Save"
     ask file empty with "Untitled.txt"
     put URL tURLfile into URL ("file:" & tFilePath)

     set the filetype to "ttxtTEXT"
     put fld edtText into url ("file:" &  tFilePath)

Many thanks,

On 10 Dec 2006, at 13:41, Mark Schonewille wrote:

> Adrian,
> Normally, when you build your standalone, you can turn on an option to 
> have the standalone builder search for components that need to be 
> included. It will include the internet library automatically.
> However, if you are using a password protected stack, you need to 
> include the library yourself. On the General pane of the Standalone 
> Application Settings, click on the radio button names Select 
> inclusions for the standalone applications. Next, in the list of 
> script libraries, make sure that Internet is hilighted. Now you can 
> close the standalone builder and create your standalone. The internet 
> library should now be included.
> Best,
> Mark
> --
> Economy-x-Talk
> Consultancy and Software Engineering
> Get your store on-line within minutes with Salery Web Store software. 
> Download at
> Op 10-dec-2006, om 14:08 heeft Adrian Williams het volgende geschreven:
>> On 9 Dec 2006, at 22:08, Mark Schonewille wrote:
>>> Hi Adrian,
>>> Klaus has given useful advice already, but I want to add the 
>>> following. You might want to set the filetype before saving a text 
>>> file:
>> Mark,
>> Thanks - this did work!
>> So how do I know or how do I ensure the internet library will be 
>> included
>> with my stack when made into an app. so I don't have to use the old 
>> fashioned
>> open file for write etc?
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
Adrian Williams Design Ltd (trading as Club Type),
44 Mill Lane,
Surrey RH1 3HQ, UK

Telephone/Facsimile: 01737 643300
dFax (computer reception): 0870 0515681

International tel/fax (UK)+44 1737 643300
International dFax:  (UK)+44 870 0515681

Email: adrian at

More information about the Use-livecode mailing list