[Pythonmac-SIG] using for reference

Ned Deily nad at acm.org
Fri Jun 6 01:33:16 CEST 2008


In article <2502A2B0-C924-4AE4-BAF1-48C141FAC619 at gmail.com>,
 Shamus <shamusom at gmail.com> wrote:

> Perhaps I am not using the right syntax, but here is the applescript  
> command I am trying to use in pyappscript:
> 
> 	make new collection with name "Test1" for library "Shamus"
> 
> for the life of me I cannot get this to work in pyappscript:
> 
> bn.libraries['Shamus'].make(new=k.collection, with_name='Test1',  
> for=bn.libraries['Shamus'])
> 
> I get this error:
> 
> File "<stdin>", line 1
>      bn.libraries['James'].make(new=k.collection, with_name='James',  
> for=bn.libraries['James'])

Which app/version are you trying to script?  What's the rest of the 
error traceback?  And which versions of py-appscript, python, and OS X?

-- 
 Ned Deily,
 nad at acm.org



More information about the Pythonmac-SIG mailing list