Jump to content

Current record and Applescript


This topic is 7851 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

I've written a short FM script that uses an Applescipt to retrieve the filename path of a file and insert that data into a cell on the FM database. Currently the AppleScript will only insert the data into the first record of the found set, and I can not figure out how to make it insert into the current record shown.

I would like to be able to have the filename path inserted into a field in a manner similar to the "insert picture" script step.

Here is the current Applescript that I have come up with:

-------

set RefFile to (choose file with prompt "Please select the referenced file.") as string

tell application "FileMaker Pro"

activate

set data of cell "Reference File" to RefFile as string

end tell

------

Thanks in advance for any help.

Link to comment
Share on other sites

This topic is 7851 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.