Re: Re: Running a script library from within Filemaker Pro 6
Re: Re: Running a script library from within Filemaker Pro 6
- Subject: Re: Re: Running a script library from within Filemaker Pro 6
- From: Jim Skibbie <email@hidden>
- Date: Sat, 17 May 2008 08:28:09 -0500
- Thread-topic: Running a script library from within Filemaker Pro 6
Title: Re: Re: Running a script library from within Filemaker Pro 6
Axel-
Thanks for the info. In my newness to scripting, I assumed you needed to both load and run the library script to get it to allow you use of the handlers in the library script. The example I saw in a book I was referencing was actually trying to both load and execute the script vs. just load (which is all I need). I now see that the ‘run’ command is only if you had something executable in the script you loaded. Which makes sense.
I also took out the run command and it works if Filemaker.
Thanks for the clarification.
Jim
Usually, the run event is handled by applications or by "real" script objects.
In your case, library is just defined as a script with a single handler, "isoDate".
Not sure why you would want to send it a run event, as there isn't anything to initialize anyway.
So, there are at least two ways to solve your problem:
- either you remove the "tell library to run" statement from the script in FileMaker
- or you add an empty "on run/end run" handler to your library file
Tested here with FMP 6 on Leopard, both work.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden