Jump to content

send AppleScript commands to FileMaker Pro on remote system


wplate
 Share

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

Recommended Posts

I am writing a script to tell a remote machine running FileMaker Pro to run a FileMaker script.

set remMachine to "eppc://" & userName & ":" & pasword & "@" & ipNumber

tell application "FileMaker Pro" --of machine remMachine

   do script FileMaker script "Some-Script"

end tell

Note that of machine remMachine is commented out.  If I uncomment out that part of the command I get an error when I try to compile the script...

Sytax Error:  Expected end of line but found “script”.

How do I make this script work?   Thank you.

Link to comment
Share on other sites

Here's what more playing today has shown me:

While the code I previously posted fails as I described, this version works...

tell application "FileMaker Pro" of machine "eppc://USER:[email protected]"

   do script FileMaker script "Some-Script"

end tell

Encouraging, except that 'd rather the IP address to be calculated and not hard-coded.

For now I think I will hard-code the possible IP addresses and then run the version based on some if-then stuff. But I'd like to know why my original idea is broke. It is probably simple problem.

Link to comment
Share on other sites

This topic is 5784 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
 Share

×
×
  • Create New...

Important Information

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