Jump to content
Server Maintenance This Week. ×

Updating script for new FM version


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

Recommended Posts

I HAVE NO EXPERIENCE WITH APPLESCRIPT. Does anyone know how I can modify this script to make it work in FM7? We recently upgrades from FM6 and our tech person no longer works here. I tried just changing all "fp6" references to "fp7" and the script seems to be running, but all I get is FM6 application opening up with no file. My goal is to get our file (which has been upgraded to fp7) open in FP7, using the script. Sorry if this is confusing! Here is the old script:

try

tell application "FileMaker Pro"

getURL "FMP5://oipserver.uoregon.edu/OpenDatabases.fp5"

end tell

on error error_message number error_number

if error_number is -10000 then

display dialog ¬

"FileMaker will attempt to use the Backup Databases."

try

tell application "FileMaker Pro"

getURL "FMP5://oipbackup.uoregon.edu/OpenDatabases.fp5"

end tell

on error error_message number error_number

if error_number is -10000 then

display dialog ¬

"Backup database isn't available!"

end if

end try

else

display dialog ¬

"You received an unknown error message. Please contact your system administrator."

end if

end try

tell application "FileMaker Pro" to activate

Link to comment
Share on other sites

AppleScript actually stores some things hidden from you when it compiles a script. So it tends to remember what version you first compiled a script with. It also can get confused if you have 2 versions running.

"FileMaker Pro" could be either of them.

So, quit FileMaker 6 and launch FileMaker 7.

Copy this script, paste into a new AppleScript document. Change all the fmp5 to fmp7. Compile and save the script.

If you still have trouble you might consider just using a FileMaker "opener" file, which would not have this problem.

Link to comment
Share on other sites

This topic is 6161 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.