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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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