Jump to content
Sign in to follow this  
Aussie John

works in Scripteditor** but not Filemaker

Recommended Posts

Hi the following two scripts both work when run in scripteditor** but fail "generally object not found: when run in FM scriptmaker. (first script saves a pdf to local drive and second one makes a copy to a server)

tell application "FileMaker Pro" to set file_name to cell "meeting::filename" of current record

tell app "finder" to set new_folder to (choose folder with prompt "Choose a Project Folder to save the PDF file: " & file_name) as Unicode text

tell application "FileMaker Pro" to set cell "meeting::gtext" to new_folder

AND

tell application "Finder" to set Server_folder to "WHP_Data:Alberti work: minutes folder:" as Unicode text

tell application "FileMaker Pro Advanced"

set save_folder to cell "meeting::gtext" of current record

set file_name to cell "meeting::filename" of current record

end tell

tell application "Finder" to set copy_file to duplicate save_folder & file_name to folder Server_folder with replacing

thanks for any help

Edited by Guest
** changed from applescript to scripteditor

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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