• 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: Paul Tuckey <email@hidden>
  • Date: Mon, 08 Apr 2002 18:28:49 +0100

Hi Andy

Try running your script from within FileMaker using the Perform AppleScript
script step. I find this speeds things up quite a bit.

Paul
------------------------------------------------------------------------
MetaClarity Ltd
http://www.metaclarity.com/
London (00 44) (0) 208 390 0714 | Paris (00 33) (0)1 42 74 08 53




on 7/4/02 1:44 am, 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.
> Thanks
> Andy
>
> set the chosen_folder to (choose folder with prompt "Pick the folder
> containing the files to catalog:")
> tell application "Finder"
> set FileName to ""
> set FilePath to ""
> set FileCreation to ""
> set FileModified to ""
> set FileCreator to ""
> set FileType to ""
> set Filepic to ""
> repeat with i from 1 to count of every item in the chosen_folder
> set Filepic to item i of every item of the entire contents of
> chosen_folder as text
> set FileName to name of item i of every item of the entire contents of
> chosen_folder as text
> set FilePath to item i of every item of the entire contents of
> chosen_folder as text
> set FileKind to kind of item i of every item of the entire contents of
> chosen_folder
> set FileCreation to creation date of item i of every item of the
> entire contents of chosen_folder
> set FileModified to modification date of item i of every item of the
> entire contents of chosen_folder
> set FileCreator to creator type of item i of every item of the entire
> contents of chosen_folder
> set FileType to file type of item i of every item of the entire
> contents of chosen_folder
> set FileSize to size of item i of every item of the entire contents of
> chosen_folder
> set FilePhysicalSize to physical size of item i of every item of the
> entire contents of chosen_folder
>
> tell application "FileMaker Pro"
> set myNewRecord to (create new record)
> set cell "name" of myNewRecord to FileName
> set cell "where" of myNewRecord to FilePath
> set cell "kind" of myNewRecord to FileKind as text
> set cell "fileCreated" of myNewRecord to FileCreation as string
> set cell "fileModified" of myNewRecord to FileModified as string
> set cell "Creator" of myNewRecord to FileCreator as string
> set cell "type" of myNewRecord to FileType as string
> set cell "physical size" of myNewRecord to FilePhysicalSize as
> number
> set cell "size" of myNewRecord to FileSize as number
> end tell
> end repeat
> end tell
> _______________________________________________
> 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.
_______________________________________________
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: Aete with EightyRez
  • Next by Date: Re: SOAP and Apple Script.
  • Previous by thread: Re: Newbie question -Applescript and Filemaker problems
  • Next by thread: Re: Newbie question -Applescript and Filemaker problems
  • Index(es):
    • Date
    • Thread