• 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: Filemaker Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filemaker Script


  • Subject: Re: Filemaker Script
  • From: CYB <email@hidden>
  • Date: Mon, 26 Jan 2009 21:49:32 -0600
  • Thread-topic: Filemaker Script

Title: Re: Filemaker Script

tell application "FileMaker Pro Advanced"
tell database "PhotoKey"
do script "Create New Image Record"
tell current record
set the cellValue of cell "PathtoInternalDisplay" to this_file as string
do script
"Set New Image Record"
end tell
end
tell
end
tell
end
repeat

It work fine, now.
Sorry, I am new to AppleScripts and I have now another problem:
If the script is executed from inside FileMaker it stop at the first record,

Leonide,

You can create a new button in FM and assign to it the action “perform an AppleScript” then in the dialog box for this action press Specify...” then just paste your AppleScript script there

If you want that your AppleScript script rune in more than one record, then you need to build a repeat loop with all your or found set of records, something like:

Repeat with i from 1 to (count records of document “
PhotoKey”)
do script "Create New Image Record"
tell record i
set the cellValue of cell "PathtoInternalDisplay" to this_file as string
do script "Set New Image Record"
End repeat

Carlos Ysunza B.
Director
Ysunza/Santiago
Visual Communication • Automation
Tel. (52)55 5256-0336
email@hidden

http://www.ysunzasantiago.com
http://www.thesecretmexico.com
http://www.softrobot.com.mx

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Filemaker Script (From: Leonide Principe <email@hidden>)

  • Prev by Date: Re: Apple Script to Configure Mail.app
  • Next by Date: Re: Filemaker Script
  • Previous by thread: Re: Filemaker Script
  • Next by thread: Re: Filemaker Script
  • Index(es):
    • Date
    • Thread