Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Applescript and Filemaker Pro

Applescript and Filemaker Pro
Thread Tools
Junior Member
Join Date: Aug 2000
Location: Haltom City, TX
Status: Offline
Reply With Quote
Mar 31, 2003, 02:51 PM
 
I'm trying to write a script to automatically open Filemaker, look up a remote host, and open the different database windows without having to do it manually every day.

I've started it, but I can't get it to open even 1 object that I tell it to.

Here's what I've got so far:

tell application "FileMaker Pro"
activate
get remote URL "FMP6://XYZ.com"
end tell

what do I do from here? I need to get it to actually open XYZ.com and then access those database windows. right now it just opens up remote hosts and doesn't select XYZ.com automatically

any help is definitely appreciated
- Taz
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Mar 31, 2003, 11:08 PM
 
Checking the FMP dictionary, 'get remote URL' returns the URL of a database - it doesn't have anything to do with opening the database.

Instead, try:

getURL "fmp://xyz.com/database"
Gods don't kill people - people with Gods kill people.
     
Fresh-Faced Recruit
Join Date: Feb 2001
Location: BC, Canada
Status: Offline
Reply With Quote
Apr 5, 2003, 01:20 AM
 
Instead of doing this with AppleScript, why not create an "opener" database? We use this at my workplace to open our POS system. I find that I usually get spinning beachballs when I try to open databases through AS, especially using the "with password" argument.

The database has no fields and one script. The script has a bunch of Open script steps in it to open the files off the FM server. The script is set to run when the file is opened (in the document preferences).

If the remote databases are password-protected, you can give your opener database the same password. FileMaker will attempt to use the password for all files opened through the script.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:18 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2