amallison Posted February 4, 2009 Posted February 4, 2009 I have a client that has an AppleScript that has just stopped working. All it does is ask the user to pick a file (name), this is then returned to FIleMaker. The main variable is that their Mac server died (which unfortunately is also the FMServer). They rebuilt it and applied new Apple Security updates. If the user logs on (not to the network but) locally and opens the files through FMServer, the script runs correctly. If I just have the first half of the script that asks the user to pick a file, it works. It has something to do with returning the result to FIleMaker. Here is the script. Thanks Andrew "try¶ set the target_file to choose file with prompt "Select the file you wish to attach"¶ on error number errNum¶ if errNum is not equal to -128 then¶ display dialog "An error occured selecting the file, please try again! If problems persist, please log a Computer Bug." buttons {"OK"} default button 1¶ return¶ else¶ return¶ end if¶ end try¶ ¶ try¶ set target_file_string to target_file as string¶ tell application "" &If (PatternCount ( Get ( ApplicationVersion );"Advanced")=1; "FileMaker Pro Advanced"; "FileMaker Pro" )& ""¶ tell database "ContactSystem"¶ tell table "ContactSystem"¶ set cellValue of cell "CurrentSelectedFile" to target_file as string¶ end tell¶ end tell¶ end tell¶ on error errMsg¶ display dialog "An error occured: " & errMsg & " If problems persist, please log a Computer Bug." buttons {"OK"} default button 1¶ end try"
Fitch Posted February 5, 2009 Posted February 5, 2009 If the user logs on (not to the network but) locally and opens the files through FMServer, the script runs correctly. So what's the problem? How else would they do it? (What do you mean by "logs on locally" and "not to the network?")
amallison Posted February 5, 2009 Author Posted February 5, 2009 When they start their computer up they have the option to log onto the local machine or to log onto the domain.
amallison Posted February 12, 2009 Author Posted February 12, 2009 The issue was that the client was using a FM6 application at the same time as FM10. The FileWall on the Mac was causing the issue.
Recommended Posts
This topic is 5761 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