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

Library Question


  • Subject: Library Question
  • From: "Steve Suranie" <email@hidden>
  • Date: Fri, 18 Oct 2002 11:48:45 -0400
  • Thread-topic: Library Question

OK, so I created a simple method to display a variable's value:

to displayThisValue(thisValue)

display dialog thisValue

end displayThisValue

and then another simple script to open the library script and pass a value to it

set theLibPath to "System:desktop folder:AppleScripts:lib:"
set theScriptPath to theLibPath & "displayValueScript"

set runScript to (load script theScriptPath)

runScript's displayValue("iBrotha")

and to my ever lasting joy it worked.

The excitement has passed and I now have another question: How would I pass a value back from the library script to my main script.

so on my library script, if instead of displaying thisValue I wanted to add to it, such as:

set thisValue to (thisValue as string) & " is a movie."

and return that value to my calling script how would I do it?

Thanks in advance

Steve
_______________________________________________
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: Applescript Newbie Question
  • Next by Date: Re: Mac OS Version Sniffer
  • Previous by thread: Applescript Newbie Question
  • Next by thread: Re: Library Question
  • Index(es):
    • Date
    • Thread