• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Pass a boolean directly to fileMaker?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: inculding and reading from files
  • Next by Date: Deleting Locked items
  • Previous by thread: Re: AppleScript CGI and Mac OS X?
  • Next by thread: Deleting Locked items
  • Index(es):
    • Date
    • Thread