Re: 'Expected "end" but found "end tell"'
Re: 'Expected "end" but found "end tell"'
- Subject: Re: 'Expected "end" but found "end tell"'
- From: Malcolm Fitzgerald <email@hidden>
- Date: Thu, 22 Jan 2004 16:17:57 +1100
At 3:56 PM +1100 22/1/04, Shane Stanley wrote:
On Jan 22, 2004, at 3:21 PM, Chap Harrison wrote:
Weird syntax error - and weird way to get around it. Should I be
coding this differently?
I think so. "with transaction" looks wrong -- shouldn't it be "begin
transaction"?
Close. This is from the AppleScript Reference for FMP:
Most users will probably not need to use this feature. But in a group
setting, where multiple users may have multiple transactions going
simultaneously, and each one expects the database to be in a certain
state, it can be a useful event.
Examples
For AppleScript users:
tell application "FileMaker Pro"
set i to 1
with transaction
repeat with i from 1 to the number of records in database 1
set cell 1 of record i of database 1 to i
end repeat
end transaction
end tell
Note: After compiling this script, the "end" statement following "end
repeat" will become "end transaction". The script will be functional
in this form, but before the script will successfully recompile after
any additional edits, the word "transaction" must be deleted.
--
Malcolm Fitzgerald
Database Manager
The Australian Society of Authors
Promoting and protecting the
professional interests of
Australia's literary creators.
ph: 02 9318 0877 fx: 02 9318 0530 <
http://www.asauthors.org>
PO Box 1566 Strawberry Hills NSW 2016
_______________________________________________
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.