|
|
|
Navigate: | My Mac Online | The Archives | August 1997 | Tech Tips | |
![]() |
|
By Jeramey Valley
Welcome to Tech Tips! This month's title is "Solutions, Solutions, Solutions" mainly because of the work that I'm doing right now. Ok, I admit it, my columns almost always relate to my profession at the current point in time - this article being no different. Today's topic of discussion is 'work-around' solutions to Macintosh problems, or put it another way, what to do when the obvious isn't.
Currently I'm working on a FileMaker Pro (FMP) solution that requires many intense, lengthy scripts and calculations to do the work the client requested. I've hit many snags that the program simply can't do alone. What to do in a situation such that the computer or the program simply won't do something you need? Find a work-around! There usually is, and although I will be focusing more on FileMaker Pro, you could easily apply the principle to other things you do.
First, this solution has multiple images associated to other records. No biggie, right? Well, each image can be various dimensions and they all have to print out with their associated records without wasting a tremendous amount of paper. Since FMP won't take care of this by itself, I had to determine how high the images were (width is a factor that the paper will decide, so I really don't care just how wide they are). After trying various methods, the solution I came up with was to use AppleScript and an external application (Clip2Gif) to measure the images and then place the dimensions back into FMP. This solved FMP's limitation of not being able to calculate the size of a given image. With the dimension data in the database I could perform calculations as to how much paper a given image would use.
The next issue that came up was that even though I knew how much paper an image would need, I didn't know what the paper requirements for the data in the preceding text fields would be before the image printed; another instance where the program had no capability to directly tell me this information. After serious thought and good old-fashioned trial and error testing, I determined that I could have FMP determine how much the text (roughly) would take up on the printed report. How? Good question - Nested conditional statements with different layouts. What's that mean? :-)
I have the database say:
It's quite a bit more complicated than that but you should see the basics. OK, now that you're shaking your head with that "but I don't use FileMaker!" look, let me make it relate to a real-world scenario. Let's say you have a document in Microsoft Works that you need to put into PageMaker, and let's pretend that Pagemaker won't directly accept the document. What do you do? (you don't have access to MS Works either - no cheating!) Well, you do have ClarisWorks which will read in MS Works, but that doesn't help much because PageMaker doesn't like ClarisWork's documents on your computer. Out of luck, right? No! ClarisWorks can save the MS Works document as MS Word which PageMaker loves. Problem solved. Next month I promise to write a little slower, as I just moved into my new house (hurrah for me :-) and I'm short on time.
Real World Experience
The system: Power Macintosh 7600/132.
Jeramey R. Valley (jvalley@centuryinter.net)
Tech Tips - Previous Columns
|
|
Copyright ©1995-2000 My Mac Productions, All Rights Reserved |