Odd Record Creation Duplication in FM from Entourage
Odd Record Creation Duplication in FM from Entourage
- Subject: Odd Record Creation Duplication in FM from Entourage
- From: Gary Lists <email@hidden>
- Date: Sun, 05 Jan 2003 16:11:57 -0500
I have been trying to track down the source of an odd behavior.
I have a script that will plain vanilla create a new record in FM's
currently open DB and then go to that record.
I store the script in my Unviersal Scripts folder for OSA Menu.
The script works fine when invoked in any of these apps: Finder, Smile,
FileMaker, IE
But when invoked from Entourage 2001, _two_ blank records are created.
From this list, I thought maybe a tell app then a tell window had something
to do with it, so I pared the script down to an even shorter form.
I have now pared my script to one line, and it still works just fine in all
the above-mentioned apps.
Here is the single-line script:
tell application "FileMaker Pro" to ,
go to record ID (ID of (create new record))
It does not matter, of course, whether I separate that out into several
lines, in a full tell "block".
tell application"FileMaker Pro"
create new record
go to last record of current layout
end tell
nor whether I reference the result of the record creation, as in:
tell application"FileMaker Pro"
set r to create new record
set recnum to r's id
go to record recnum
end tell
I started with a script more like the one immediately above (with more
lines) and in testing could see that the returned value of the create new
record was accessible by ID, so I went that route hoping that would solve
the double-record problem.
Any insight before I try the Entourage-Talk list would be appreciated. Or
any testing with Entourage to see if it's my end that's the problem.
OMM: E2001 SR1, OS 9.1.2, AS 1.6, OSA Menu 1.2.2, FM Pro 6
--
Gary
Incoming replies are auto-deleted.
Please post directly to the list or newsgroup.
Really need direct? Rot me at:
email@hidden
Lbhe fhowrpg zhfg ortva "abgwhax:" (ab dhbgrf)
Avpr gb zrrg lbh! Qba'g fcnz zr.
_______________________________________________
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.