General Questions
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.