Pass a boolean directly to fileMaker?
Pass a boolean directly to fileMaker?
- Subject: Pass a boolean directly to fileMaker?
- From: Cornwall <email@hidden>
- Date: Sun, 16 Jun 2002 14:29:33 -0700
Is it possible to pass an AppleScript boolean directly to FileMaker
without making it a string or integer first?
Assuming, for now, that I can't, it surprised me a little to find
that a logical comparison setting a variable was substantially faster
than direct coercion.
--coerce to string
set anItm to choose folder
set theInfo to info for anItm
set t1 to the ticks
repeat 8000 times
set foo to folder of theInfo as string
end repeat
set t2 to the ticks
set et to t2 - t1
-->70 average
--coerce to integer
set foo to folder of theInfo as integer
-->42 average
--if then else statement
if folder of theInfo then
set foo to "true"
else
set foo to "false"
end if
-->21 average (!)
Any other suggestions?
Can you do direct coercion of boolean values in all versions of AppleScript?
Corny
_______________________________________________
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.