Hi there,
at the moment, this is my code:
Put effective filename of this stack & "/Records.txt" into Filedirectory
which puts C:/livecodethings/todo.livecode/Records.txt into the variable 'Filedirectory'
I want it to put : C:/livecodethings/Records.txt into the variable 'Filedirectory'
so I can store the file "Records.txt." in the same folder as the program.
Any help?
Using the 'effective filename' function
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 7
- Joined: Tue Oct 30, 2012 11:39 am
Re: Using the 'effective filename' function
Hi...
be well
Dixie
Code: Select all
on mouseUp
set itemDel to "/"
set the defaultfolder to item 1 to -2 of (the effective fileName of this stack)
put the defaultfolder & "/records.txt" into filePath
put "Hello" into URL("file:filePath")
end mouseUp
Dixie
-
- Posts: 7
- Joined: Tue Oct 30, 2012 11:39 am
Re: Using the 'effective filename' function
Thanks a lot for your reply - just put it all in, and it's working perfectly.
Thanks again.
Thanks again.