Re: Newbie question -Applescript and Filemaker problems
Re: Newbie question -Applescript and Filemaker problems
- Subject: Re: Newbie question -Applescript and Filemaker problems
- From: Andy Wylie <email@hidden>
- Date: Sun, 07 Apr 2002 14:53:15 +1200
on 7/4/02 12:44 PM, email@hidden at email@hidden wrote:
>
Greetings!
>
I have managed to write a script that catalogs the contents of a folder and
>
adds items to a filemaker database. The problem I have is that it is soooooo
>
slow. Can anyone please tell me if there is a way to make this faster.
'entire contents' is notoriously flakey, this handles the first level of a
folder.
------------------------
tell application "Finder"
set theItems to (chosen_folder's every item)
repeat with i in theItems
tell i
set {FileName, FileKind, FileCreation, FileModified,
FileCreator, FileType, FileSize, FilePhysicalSize} to it's {name, kind,
creation date, modification date, creator type, file type, size, physical
size}
set filePath to (chosen_folder & FileName) as string
end tell
end repeat
end tell
------------------------
An OSAX like Akua will dig through subfolders and handle this quicker.
>
Thanks
you're welcome
_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.