Need help setting library to load script as POSIX file

Discussion in 'Mac Programming' started by googleman76, Sep 28, 2012.

  1. googleman76 macrumors newbie

    Joined:
    Sep 28, 2012
    #1
    I have recently been doing some research and development with "Project Jarvis"http://projectjarvis.com
    I am trying to make s working functional Jarvis of my own with limited to no applescript experience. Chad Barraford posted some source code from his project with the following instructions on how to get it to run. "Here is an example on how to load the library into another script and run one of the functions

    set library to (load script ((“/Library/Application Support/Jarvis/Library.scpt”) as POSIX file))

    set myZipcode to library’s getZipcode() "

    To download the library file, here is the link

    http://www.box.net/shared/v012folb9v

    I am unsure as to how load a script as a POSIX file, and once I do that how I can get the Library.scpt to function with out the dependencies of files I don't have.

    Any help would be greatly appreciated,
    Googleman76

    P.S. Here is my attempt at running the library.scpt at a POSIX file, but nothing happens, the application just opens and the immediately closes

    set thePath to POSIX path of "/Users/porter1/Desktop/Library.scpt"
     
  2. googleman76 thread starter macrumors newbie

    Joined:
    Sep 28, 2012

Share This Page