• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie question -Applescript and Filemaker problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Newbie question -Applescript and Filemaker problems (From: email@hidden)

  • Prev by Date: Re: do shell script - which shell?
  • Next by Date: Simple question: Scripting Additions is only a OS 9 item, right?
  • Previous by thread: Newbie question -Applescript and Filemaker problems
  • Next by thread: Re: Newbie question -Applescript and Filemaker problems
  • Index(es):
    • Date
    • Thread