not every text file a text file?

Dave Cragg dcragg at lacscentre.co.uk
Wed Apr 21 03:05:13 EDT 2004


At 11:40 pm +0800 20/4/04, Friedrich F. Grohmann wrote:
>My approach was "open file" and then "read from file" or "put URL". It
>worked for a number of wordprocessors but failed in the case of Nisus
>Writer Express. Revolution would insist on creating a file with the name
>of the Nisus file already sitting in the same folder...

It sounds like you haven't used the correct filename. The OS won't 
allow files of the same name in a folder, so I'm guessing the Nisus 
file has an extension (probably ".txt"), but you have the Finder set 
to not show file extensions. In the Advanced section of the Finder 
Preferences window, make sure "Show all file extensions" is checked, 
and then look at the Nisus file name again. If it still doesn't show 
an extension, select the file in the Finder, choose Get Info 
(Command-I), and check that the "Hide Extension" checkbox under the 
Name & Extension section isn't checked.

Alternatively, use the following script in a Rev button to find the 
full path and filename of the file and comapre it with what you are 
using.

on mouseUp
   answer file "Select a file"
   put it
end mouseUp

Cheers
Dave


More information about the use-livecode mailing list