Answering my own question earlier, I found a way to import all my Excel graphs into Filemaker Pro,
tell application "Finder" --- MAKE SURE THAT relevant "Excel" and "Filemaker Pro" files ARE OPEN, activate --- THAT "Filemaker Pro" IS IN BROWSE MODE and its FV CONTAINER is ACTIVATED!!! activate document file "CVF.xls" of folder "Desktop" of folder "myData" of folder "Users" of startup disk select window of desktop tell application "Microsoft Excel" --- run VB macro "CopyChart" delay 2 end tell activate document file "NHdata.fp7" of folder "Desktop" of folder "myData" of folder "Users" of startup disk select window of desktop try tell application "FileMaker Pro" activate end tell tell application "System Events" tell process "FileMaker Pro" --- in Browse mode !!! tell menu bar 1 tell menu bar item "Edit" tell menu "Edit" click menu item "Paste" delay 2 end tell end tell end tell end tell end tell return true on error error_message return false end try end tell
It works on Mac OS X v10.5 too !! Sorry to bother you folks.
Willem.
|