setting the default folder to the folder where the stack is..

Jan Decroos jan.decroos at groepvanroey.be
Fri Dec 14 03:17:01 EST 2001


maybe this can help:


function getFolderFromFilename tFilename
  put the itemDelimiter into savedDelimiter
  set the itemDelimiter to "/"
  delete last item of tFilename
  set the itemDelimiter to savedDelimiter
  return (tFilename&"/")
end getFolderFromFilename

on mouseUp
  answer getFolderFromFilename(the value of word 2 of the long name of this
stack)
end mouseUp

Jan




More information about the Use-livecode mailing list