• 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
script doesn't find all the file in a hiearchy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

script doesn't find all the file in a hiearchy


  • Subject: script doesn't find all the file in a hiearchy
  • From: Stephan Adam <email@hidden>
  • Date: Tue, 02 Mar 2004 15:06:09 -0500

Hello all,

I have a script to verify for a specific file in a hiearchy and it seems
that sometime the file is there but the script doesn't see it.

I am on OS 9.2.2 on eMac. The script is run from within FileMaker Pro 6.0v3

Here is my complete script. Is there a better and a faster way to do that?
----


tell application "FileMaker Pro"
copy cell "tImage_Name" of current record of database "archmstr.fp5" to
myNomPhoto
copy cell "gWhere_Folder" of current record of database "archmstr.fp5"
to myFolder
end tell

tell application "Finder"

set myFolder to myFolder as alias

try
set myFile to (every file of the entire contents of myFolder whose
name contains myNomPhoto) as string

set myFileName to name of file myFile
set myPictureRef to (myFile as string)

tell application "FileMaker Pro"
set cell "tImage_Name" of current record of database
"archmstr.fp5" to myFileName
set cell "tImage_Path" of current record of database
"archmstr.fp5" to myPictureRef
set cell "cImage" of current record of database "archmstr.fp5"
to file myPictureRef
set cell "flag_Image" of current record of database
"archmstr.fp5" to 1
end tell

on error

tell application "FileMaker Pro"
set cell "flag_Image" of current record of database
"archmstr.fp5" to 0
end tell

end try

end tell



Thank you!
--

Stephan Adam

Stephan Adam Consultant inc.
Solutions d'automatisation
www.saconsultant.com

email@hidden
Cell. : (514) 944-6139

Membre associi, Filemaker Solutions Alliance
Associate Member, Filemaker Solutions Alliance
_______________________________________________
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.


  • Follow-Ups:
    • Re: script doesn't find all the file in a hiearchy
      • From: Gary Lists <email@hidden>
    • Re: script doesn't find all the file in a hiearchy
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Re: [SOLVED] select/edit person in Address Book
  • Next by Date: Determining path to script
  • Previous by thread: Re: How to make scripts reference multiple revs of an app
  • Next by thread: Re: script doesn't find all the file in a hiearchy
  • Index(es):
    • Date
    • Thread