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

Re: Informal poll


  • Subject: Re: Informal poll
  • From: Emmanuel LEVY <email@hidden>
  • Date: Sat, 14 Jun 2014 18:13:34 +0200

For those who wonder, here is a summary of what you can have Smile do about scripts and libraries.

-- load a library
add library [a string or a file]

-- make a new script object from a file
set theScript to make new script with properties {name:someName, path name:someFile}

-- make a new script object from a string
set theScript to make new script with properties {name:someName} with data someText

-- call a script's handler
tell theScript to set res to dosomethinggreat(someParams)

-- call a script's handler by name
tell theScript to set res to callhandler someParams subroutine someHandlerName

-- in Javascript
callJavaScript [a web window or a javascript object] script [a string or a file]
callJavaScriptFunction [a web window or a javascript object] parameters [a list of anything] subroutine [the JavaScript function's name]

Best,
Emmanuel
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: Informal poll
      • From: Christopher Stone <email@hidden>
References: 
 >Re: Informal poll (From: Ted Wrigley <email@hidden>)

  • Prev by Date: Re: Informal poll
  • Next by Date: Re: includeStandardAdditions
  • Previous by thread: Re: Informal poll
  • Next by thread: Re: Informal poll
  • Index(es):
    • Date
    • Thread