Jump to content
Sign in to follow this  
amallison

Mac Security Stopping Script

Recommended Posts

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"

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

When they start their computer up they have the option to log onto the local machine or to log onto the domain.

Share this post


Link to post
Share on other sites

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.

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  

  • Who Viewed the Topic

    1 member has viewed this topic:
    jayson100077 
×

Important Information

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