Larry wrote:

... is there any way to use "answer file" or some other way to get
the size of just one specific file?

on mouseUp
   answer file "Select a file:"
   if it is empty then exit to top
   put FileSize(it)
end mouseUp

function FileSize pFilePath
   put the directory into tSaveDir
   set the itemdel to "/"
   put urlEncode(last item of pFilePath) into tFileName
   delete last item of pFilePath
   set the directory to pFilePath
   put the detailed files into tFiles
   set the directory to tSaveDir
   put lineoffset( cr& tFileName &comma, cr& tFiles) into tLineNum
   set the itemdel to comma
   return item 2 of line tLineNum of tFiles
end FileSize


But it really should be a one-liner, so I submitted a request for being able to obtain such info for a single file:
<http://quality.runrev.com/show_bug.cgi?id=13182>

--
 Richard Gaskin
 Fourth World Systems
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter: http://twitter.com/FourthWorldSys

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

Reply via email to