On 1.09.2014 22:21, Richmond wrote:
In a card of my upcoming "Grendel" for Anglo-Saxon, Gothic and other warped
Germanic languages/writing-systems I have this script:

on preOpenCard
   set the title of stack "grendel" to the short name of this card
   if exists(url("file:" & "GrendelBackUp.rtf")) then
      put "exists"
set the RTFText of fld "store" to URL ("file:" & "GrendelBackUp.rtf")
   else
      put "nope"
      end if
end preOpenCard

Now the file GrendelBackUp.rtf is present where I saved it earlier, from the stack,
in the default folder.

So would be glad if somebody could tell me why I keep getting "nope" in my Message Box.

Richmond.

For some 'funny' reason when I reopened the stack it chose a completely different, and apparently random directory as the default folder, so the opneCrad script looked in the wrong place.

Richmond.

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to