Re: Filemaker Script
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