Problem activating a script from within FileMaker 6
Problem activating a script from within FileMaker 6
- Subject: Problem activating a script from within FileMaker 6
- From: Carl Davaz <email@hidden>
- Date: Mon, 24 May 2004 14:24:33 -0700
Hello,
I'm trying to run an AppleScript from within FileMaker 6 -- something I used
to do routinely, but now I get an error:
"FileMaker Pro got an error: Object not found. (Error -1728).
I found documentation that indicates a -1728 means "No records found. No
records were found in the specified database," but there are records active.
When I run the script via the script editor or as an applet, everything is
fine.
The script interacts with URL Access Scripting, FMP6 and InDesign 2.0.2.
Based on a database search, the script goes out on the Internet, downloads a
bunch of image files, then interacts with InDesign to build a bunch of
simple pages and makes a PDF.
Can anyone give me an idea of what I need to do to enable the script to run
from within FileMaker by activating it from FM's Script menu?
Here's the top of the script:
tell application "FileMaker Pro"
set recCount to count of records of layout 1
end tell
repeat with i from 1 to recCount
tell application "FileMaker Pro"
activate
tell layout 1
set WebSite_URL to cell "ImageLarge_URL_Calculation" of record i
set newsPage to cell "Newspaper_Image" of record i
end tell
end tell
and so on...
end repeat
I appreciate the guidance. Thanks,
Carl
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.