• 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
Re: Filemaker 8.5 stored applescript problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filemaker 8.5 stored applescript problem


  • Subject: Re: Filemaker 8.5 stored applescript problem
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Sun, 20 May 2007 14:04:57 +1000


On 20/05/2007, at 6:00 AM, Stockly, Ed wrote:

This is becoming the thread that won't die, so just skip it if you're bored, but I've learned a few things here and I've found it helpful....

<snip the timing test code > {tell finder, using terms from, just the osax} = {183, 13, 14}

Not scientific, this shows why I'm not all that concerned about sending OSAX commands to an application.

You really have to be in the hundreds of repetitions to really get a descernable difference in speed, and if you're at 1000 reps you get less than 3 seconds additional execution time, with this command.

The good news is the "using terms from" contruct doesn't add any time at all to the execution, and I'll probably start using that when I am processing a large number of commands.

I was interested to see that the "tell finder" method was fourteen times longer than the others.


In my tests I wrapped everything in a tell filemaker block and I used the standard additions read command. It seemed silly not to, as that is what this whole conversation is about.

I got very different results. In my results the tell finder method is the always the fastest.

{tell finder, using terms from, raw codes} = {4.136885, 4.827542999999, 4.768656}

I was also interested to see if the location of the repeat loop mattered, so I moved it inside the tell blocks for a comparison. It makes a small difference to the times but it didn't change the results.

{tell finder, using terms from, raw codes} = {4.406674999998, 4.774355000001, 4.692962000001}

-------- here's the code I used

set f to choose file
-- using Smile :-)
set startTicks to chrono
repeat 1000 times
	tell application "FileMaker Pro Advanced"
		tell application "Finder"
			read f
		end tell
	end tell
end repeat
set firstTest to chrono

set startTicks to chrono
repeat 1000 times
	tell application "FileMaker Pro Advanced"
		using terms from application "Finder"
			read f
		end using terms from
	end tell
end repeat
set secondTest to chrono


set startTicks to chrono repeat 1000 times tell application "FileMaker Pro Advanced" -- «event rdwrread» f «event rdwrread» f end tell end repeat set thirdTest to chrono return {firstTest, secondTest, thirdTest}

malcolm
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: Filemaker 8.5 stored applescript problem (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: itunes artwork from track's Persistent ID
  • Next by Date: Which drive is a CD in?
  • Previous by thread: Re: Filemaker 8.5 stored applescript problem
  • Next by thread: Re: Filemaker 8.5 stored applescript problem
  • Index(es):
    • Date
    • Thread