Home Download Buy Blog Forum Support

Accessing py-appscript

Accessing py-appscript

Postby cwilliams10 on Thu Dec 15, 2011 5:59 pm

Py-Appscript -> http://appscript.sourceforge.net/
"Appscript is a high-level, user-friendly Apple event bridge that allows you to control scriptable Mac OS X applications from Python, Ruby and Objective-C."

I have installed py-appscript with the following command:
Code: Select all
sudo easy_install appscript


I would like to use it inside a plugin:
Code: Select all
from appscript import *


Is this possible?
If so, how?

Thanks
cwilliams10
 
Posts: 2
Joined: Thu Dec 15, 2011 5:49 pm

Re: Accessing py-appscript

Postby cwilliams10 on Fri Dec 16, 2011 2:21 pm

Solution:

I changed the appscript install to use Python 2.6 since that is what Sublime is using.
Code: Select all
sudo easy_install-2.6 appscript


Then I moved the created .egg file to the Installed Packages folder.
cwilliams10
 
Posts: 2
Joined: Thu Dec 15, 2011 5:49 pm


Return to Plugin Development

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 10 guests