• 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: Help with find text command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with find text command


  • Subject: Re: Help with find text command
  • From: Philip Aker <email@hidden>
  • Date: Sat, 04 Aug 2007 10:14:54 -0700

On 2007-08-04, at 09:15:38, Mark J. Reed wrote:

Not sure osascript is a fair test, though. It's not exactly AS's native environment.

osascript is a native AppleScript environment. It opens the designated component (AppleScript by default), runs a script in it and then closes it[1]. If your script doesn't require windowserver then it's "native" and 100% pure AppleScript with OSAX loading capabilities.


That's about the same as plain vanilla perl, python, tcl, and ruby do to initialize an interpreter, maybe load an extension, and then run a script. The advantage I gave osascript here is that the AppleScript was pre-compiled.

If anyone thinks the OSAX loading requirement causes excessive delays in the AppleScript, I could have the respective scripts not do a file write but return on stdout instead. I think the write call is the only OSAX requirement in the AppleScript version. Also, let's have each script repeat a thousand times before returning.


Philip Aker email@hidden

[1] In contrast to Script Editor, which reuses the component and has to load the component of a double-clicked script prior to running it. It's unfair to do a time comparison in Script Editor because the binary load cost is never accounted for and pure AppleScript doesn't have a fine-grained time measurement built-in. Also, running a script from the Script Menu is about the same as an osascript call.

_______________________________________________
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
  • Follow-Ups:
    • Re: Help with find text command
      • From: Philip Aker <email@hidden>
References: 
 >Re: Help with find text command (From: has <email@hidden>)
 >Re: Help with find text command (From: Philip Aker <email@hidden>)
 >Re: Help with find text command (From: "Mark J. Reed" <email@hidden>)
 >Re: Help with find text command (From: Philip Aker <email@hidden>)
 >Re: Help with find text command (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Help with find text command
  • Next by Date: Re: Script to click on NSStatusItem menu & its submenus
  • Previous by thread: Re: Help with find text command
  • Next by thread: Re: Help with find text command
  • Index(es):
    • Date
    • Thread