Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5761 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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"

Posted

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?")

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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