Re: Library Question
Re: Library Question
- Subject: Re: Library Question
- From: has <email@hidden>
- Date: Fri, 18 Oct 2002 19:38:38 +0100
Steve Suranie wrote:
>
How would I pass a value back from the library script to my main script.
Just return the desired value the usual way...
to doWhatever(someValue)
-- blah-blah-blah
return thisValue
end doWhatever
Nothing magical to libraries: the language structures you use are no
different to before; the only thing changed is the way in which you think
about and use them [1]. Code reuse = Good Thing.
Check out the libraries on my website, if you like; might give you a better
feel for their potential.
has
[1] The one thing that can bite some folks is if they're used to writing
code that's full of global variables, as scoping rules prevent globals
being shared between libraries or between client script and libraries. If
that's a issue, it just means your bad programming habits are long overdue
for replacement.;)
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
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.