Newbies TFB Posted August 1, 2004 Newbies Posted August 1, 2004 Hi, I have a question using FMP 6, a database served by a Panther machine to OS 10.3 and 9.22 clients. I've created a button that I've set to "Send Apple Event" to activate an Applescript applet that I've been using a while. This works wonderfully locally (on a test machine, test version of the database, with no clients), but I'm having a bit of trouble finding the proper place to put it for the server based database. For OS X clients, If I distribute the applet to each client and place it on the root level of the hard drive it links correctly and works. For OS 9 clients, the first time I press the button in the database I'm asked to locate the applet, but thereafter if works. This seems messy to me (not to mention a hassle to initially set up). So, where should external applescript applets reside for a server based database? It would be much cleaner if I could just have one copy located on the server; is that possible? Thanks for any advice, Tom
bruceR Posted August 1, 2004 Posted August 1, 2004 Would it be possible to instead write it as a perform applescript statement and just include the whole script inside Filemaker? FWIW I usually prefer perform applescript over send event.
Newbies TFB Posted August 1, 2004 Author Newbies Posted August 1, 2004 That's a good point. I haven't tried that, but the script itself is rather long. Is there any limitation to size/length of an internal applescript? Are ther any other limitations (properites, handlers, etc...)? I'm sure this is in the manual, but I don't have access to one at the moment (it at work...). Thanks for your thoughts.
bruceR Posted August 1, 2004 Posted August 1, 2004 Well, it should work just fine, but why wait for somebody to answer? Why not just try it and find out for yourself?
Newbies TFB Posted August 2, 2004 Author Newbies Posted August 2, 2004 Bruce, Thanks. I did try it. Fortunately my script is 12K (about 300 lines) and the limit for a script in Filemaker is 32K. It works well, but the script is flakey in OS 9. I think this is due to AS in OS 9 and not the Filemaker mechanism. Good thing the OS X transition is _almost_ complete.
bruceR Posted August 2, 2004 Posted August 2, 2004 Note that in FM7, the whole script can be part of a BUTTON! And you can just paste a button on a layout and you're in business.
Recommended Posts
This topic is 7417 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