Newbies BAC2500 Posted February 28, 2005 Newbies Share Posted February 28, 2005 Hi All I had (what I thought was) a perfectly simple AppleScript to place pictures into container fields based on a field that containing a filename. Unfortunately it no longer works in FM7. Also, I had another series of simple scripts to open the placed pictures into Preview that no longer work. I would appreciate it greatly if anyone has the time/interest to check out my scripts and offer any advice they may have. Hopefully its a syntactic problem. Below are copies of the scripts. Thanks Brad To import pictures into the current record:[color:"blue"] set folderPath to (choose folder with prompt "Import Photos from...") tell application "FileMaker Pro" activate try tell application "FileMaker Pro" set PathA to folderPath & (cell "FilenameA") of current record as string set cell "PictureA" of current record to file (PathA) set cell "PathA" of current record to (PathA as text) [repeats for several sets of fields...] end tell end try end tell To open the original file into Preview:[color:"blue"] tell application "FileMaker Pro" set PictureRef to cell ("PathA") of current record as string end tell try tell application "Preview" activate open file PictureRef as alias end tell on error tell application "FileMaker Pro" activate end tell end try Link to comment Share on other sites More sharing options...
This topic is 6603 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
Already have an account? Sign in here.Sign In Now