Newbies SnakShak Posted August 1, 2011 Newbies Posted August 1, 2011 New to filemaker, and applescript for that matter, here and I have run into a problem while trying to make sense of some of the old scripts. There is a problem with one of the applescripts within the fm scripts. I will paste the script below but basically it is looking for a folder on the users desktop and copying it to another drive and vice versa, this part seems to work fine. It seems to have a problem when a flag field in the database is set, using “set cell”, to indicate if the folder was found or not. I’m getting an “object not found” error. The odd thing is that we are upgrading from FM 5.5 to 11 and it works for the users using 5.5, but only gives me the error when setting up a testing environment using FM 11. Any help is greatly appreciated! tell application "Finder activate if exists folder "1107CTCR0002MEHEP3" of folder "08" of folder "07July" of folder "2011" of disk "ProdTest" then move folder "1107CTCR0002MEHEP3" of folder "08" of folder "07July" of folder "2011" of disk "ProdTest" to folder "In Progress" with replacing tell application "FileMaker Pro Advaned activate set cell "CRA on server nt found flag" of current record to 0 end tell else tell application "FileMaker Pro Advanced" activate set cell "CRA on server nt found flag" of current record to 1 end tell end if if not (exists folder "1107CTCR0002MEHEP3" of folder "08" of folder "07July" of folder "2011" of disk "ProdTest") then if exists folder "1107CTCR0002MEHEP3 " of folder "08" of folder "07July" of folder "2011" of disk "ProdTest" then with replacing tell application "FileMaker Pro Advanced" activate set cell "CRA on server nt found flag" of current record to 0 end tell else tell application "FileMaker Pro Advanced" activate set cell "CRA on server nt found flag" of current record to 1 end tell end if end if end tell
Recommended Posts
This topic is 4861 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 accountSign in
Already have an account? Sign in here.
Sign In Now