SimonS Posted August 16, 2002 Posted August 16, 2002 I've set up a FMP database where each record corresponds to a different Microsoft Word file, and I'm trying to set it up so that one could open the Word file, corresponding to the active record, with a FMP button. But, it may be easiest for the users of the DB to store these Word files on their FTP server. So I was trying to find a way, using Applescript, to open files on an FTP server. I can use the "Open location" command to open the FTP directory, but when I use it to open a specific file, I get garbage. Is there anyone out there familiar enough with Applescript and FTP to help me out? (For the record, I've just been introduced to FTP, so I apologize if this turns out to be a stupid question.) Thanks!
falkaholic Posted August 16, 2002 Posted August 16, 2002 What I would try is to have the record for the Word file store the path to it on the server. Then get a FTP client that has good AppleScript support (look around on versiontracker, try a few), then combine the sever with the path and tell the FTP program to get that file. Depending on what your using the Word file for, you might want to do the reverse if the users are changing the files and need to upload them.
jfmcel Posted August 16, 2002 Posted August 16, 2002 You will first need to download the files and then open them. You can use the URL Access Scripting addition. Your script should be something like tell app "URL Access Scripting" download theFullFTPString to DestinationFileString replacing yes with progress quit end tell Tell app "Microsoft Word" activate open file DestinationFileString end tell
SimonS Posted August 19, 2002 Author Posted August 19, 2002 Thank you so much! This should work perfectly. Simon S.
Recommended Posts
This topic is 8133 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 accountSign in
Already have an account? Sign in here.
Sign In Now