File lists

Medard liste.revo at medard.on-rev.com
Fri Jul 16 03:47:28 EDT 2010


Kay C Lan <lan.kc.macmail at gmail.com> wrote:

> tell application "Finder"
>   files of folder "Disc:folderA:folder1"
> end tell

I am following this interesting thread :-)

Though, I got an execution error (in Applescript, I presume) by running
this handler:

on mouseUp
   answer folder "List files in this folder:"
   if it is empty then exit mouseup
   put it & slash into tfolder -- slash mandatory?
   put "tell Application" && quote & Finder & quote into tcommande
   put cr & "files of folder" && quote & tfolder & quote after tcommande
   put cr & "end tell" after tcommande
   do tcommande as applescript
   if the result is not empty then answer the result 
>> "Execution Error"!
end mouseUp

What?

(Snow Leopard 10.6.4 - Studio 4.0.0)





More information about the Use-livecode mailing list