• 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: Script Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script Objects


  • Subject: Re: Script Objects
  • From: Emmanuel LEVY <email@hidden>
  • Date: Tue, 19 Jan 2010 00:08:22 +0100

There are certainly tons of answers, which are more or less relevant to a given person...

Here's my preferred. In Smile's "advanced" Search & Replace dialog, you can launch several searches at the same time - you can launch the search in folder B while the search in folder A is still in progress.

This is performed by cloning a script object: a given clone contains the whole context required by the dialog to run a given search (such as: the search string, the output window, etc).

More generally, script objects are a way to spawn and kill contexts ad libitum. Furthermore it has been suggested that lists which are properties of script objects are faster to access.

Emmanuel


On Jan 18, 2010, at 11:31 PM, Luther Fuller wrote:

Last week, I was invited to talk to some Cocoa programmers about AppleScript. I don't know Cocoa, they don't know AppleScript. One of them is very interested and we are in an email discussion about AppleScript. He insists on writing everything as a script object because, as he explained, they look familiar since they contain "data and methods".

I've never written a script object and I'm not familiar with "data and methods", so I'm not sure what he's getting at, but he is beginning to make some sense.

Which brings me to my question ...
What can I do with script objects that I absolutely could not do without them?
(Or, should I continue to ignore them?)


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


This email sent to email@hidden

_______________________________________________ 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: Script Objects
      • From: Luther Fuller <email@hidden>
References: 
 >Script Objects (From: Luther Fuller <email@hidden>)

  • Prev by Date: Script Objects
  • Next by Date: Re: Script Objects
  • Previous by thread: Script Objects
  • Next by thread: Re: Script Objects
  • Index(es):
    • Date
    • Thread