• 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
General Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

General Questions


  • Subject: General Questions
  • From: Scott Lewis <email@hidden>
  • Date: Wed, 26 Feb 2003 19:24:21 -0400

Could someone tell me: (1) Is it more efficient in terms of memory to create
strings, lists, do calculations, etc. inside a tell block or outside? What I
mean is, should a particular app set variables and perform functions only or
does it matter? For example:

tell app "Some_app"
set myList to every item of someObject
repeat with a from 1 to (count items of myList)
set myVariable to item a of myList
do something with the data
end repeat
end tell

-or-

set myList to every item of someObject
repeat with a from 1 to (count items of myList)
set myVariable to item a of myList
tell app "Some_app"
do something with the data
end repeat
end tell

Which is better? Why?

(2) Do scripts run faster when "Finder" is showing, the app is showing or
the script is showing? (3) How much memory should be allocated to the
script/applet?

Thanks,
Scott Lewis
email@hidden
--
It is the mission of Lewis Design Consulting to provide effective and
affordable communications design for businesses, services and individuals
that directly enrich the cultural, spiritual, ecological and social lives of
their communities.
_______________________________________________
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.

  • Follow-Ups:
    • Re: General Questions
      • From: Jon Pugh <email@hidden>
  • Prev by Date: Re: Checking if an application is opened or not
  • Next by Date: Re: I need more power, Scotty
  • Previous by thread: Controlling volume in OSX
  • Next by thread: Re: General Questions
  • Index(es):
    • Date
    • Thread