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

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.

  • Prev by Date: Re: Library Question
  • Next by Date: Re: screen size in OS X
  • Previous by thread: Re: Library Question
  • Next by thread: Re: applescript-users digest, Vol 3 #981 - 16 msgs
  • Index(es):
    • Date
    • Thread