Page 4 of 4
Re: Saving user modifications to Table Data
Posted: Fri May 16, 2014 6:30 pm
by trags3
Klaus wrote:Hi Simon,
Simon wrote:Are you reading the text file to see if the info is correct each time you change it? (make sure you close it so it can be written to).
The "url("file:" xyz) syntax does ecactly this in a one-liner:
...
open file xyz for read
read from file xyz ...
close file xyz...
...
Best
Klaus
Klaus, Ans Simon,
Give me about 30 min and I will post the relevant cards of the stack.
I guess I don't quite understand the syntax.
Tom
Re: Saving user modifications to Table Data
Posted: Fri May 16, 2014 6:56 pm
by Simon
Hi Tom,
I copied your specialFolderPath stuff from the above posting and it didn't work!
Not sure why... it reads correctly.
So I redid it by hand
Code: Select all
if there is not a directory (specialFolderPath("documents") & "/sellnet") then
create folder (specialFolderPath("documents") & "/sellnet")
end if
set the defaultFolder to (specialFolderPath("documents") & "/sellnet")
Now it works!
On the desktop are you getting a folder called sellnet in your Documents folder?
weeeee found it!
create folder (specialFolderPath("documents") & "/sellnet")
NOT create folder (specialFolderPath("documents" & "/sellnet"))
Yahoo!
Simon
Re: Saving user modifications to Table Data
Posted: Fri May 16, 2014 7:15 pm
by Klaus
Simon wrote:...
weeeee found it!
create folder (specialFolderPath("documents") & "/sellnet")
NOT create folder (specialFolderPath("documents" & "/sellnet"))
Yahoo!
Simon
Yeah, Go, Simon, Go!

Re: Saving user modifications to Table Data
Posted: Fri May 16, 2014 7:45 pm
by trags3
Klaus wrote:Simon wrote:...
weeeee found it!
create folder (specialFolderPath("documents") & "/sellnet")
NOT create folder (specialFolderPath("documents" & "/sellnet"))
Yahoo!
Simon
Yeah, Go, Simon, Go!

Still does not save data between sessions
Tom
Re: Saving user modifications to Table Data
Posted: Fri May 16, 2014 7:47 pm
by Simon
Ok back a bit, is there a folder created?
Is the text file in it?
Whats in the text file?
Desktop only for the moment.
Simon
Re: Saving user modifications to Table Data
Posted: Fri May 16, 2014 7:50 pm
by trags3
Simon & Klaus
You guys are the best! When correcting the code I made the mistale of copying a filename with a Capital letter in one place.
SUCCESS!! it all works now Thank you SOOOOOOO much fr the help
Tom
Re: Saving user modifications to Table Data
Posted: Fri May 16, 2014 7:54 pm
by Simon
YEAH!
YAHOO!
GREAT!
Re: Saving user modifications to Table Data
Posted: Fri May 16, 2014 9:17 pm
by Klaus
Hi Tom,
trags3 wrote:When correcting the code I made the mistale of copying a filename with a Capital letter in one place.
yep, that was what I was trying to tell you all the time!
Glad you solved it!
Best
Klaus