Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

googleman76

macrumors newbie
Original poster
Sep 28, 2012
2
0
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"
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.