Re: [Pythonmac-SIG] [ann] PyOSA 0.1.0, Appscript Installer 1.5.1 released

2007-03-27 Thread has
On 27 Mar 2007, at 17:35, Kevin Walzer wrote:

>> Announcing the first release of PyOSA, a new OSA language  
>> component for Python.
>
> I'm confused--how is this different from appscript?

In a nutshell, PyOSA makes Python a *full* peer to AppleScript.  
Appscript is an Apple event bridge, allowing Python scripts to send  
Apple events to applications. That's great when you want to control  
one process from another, but no help if you need a script that  
controls and/or is controlled by its host process. For that level of  
integration/interaction, you need a full OSA language.

PyOSA packages the Python interpreter as an OSA language component,  
allowing Python scripts to be attached to any OSA-aware application.  
It also fully integrates appscript, allowing PyOSA scripts to send  
events directly to the host process and vice-versa. Attachability and  
integrated Apple event support are essential for tasks like Folder  
Actions and Mail rules, which you just can't do with appscript alone.

For example, you could create a Mail rule that runs an 'AppleScript'  
action whenever new messages are received. That rule would load a  
PyOSA script and call its 'perform_mail_action_with_messages'  
function, passing it a list of message references. The script could  
then go through those messages, getting and setting their properties,  
moving them to other mailboxes, and so on.

Cool stuff, in other words, and even this is a relatively trivial  
example of OSA's full potential. Unfortunately, for various  
historical reasons, OSA has never seen widespread adoption beyond the  
AppleScript language and a relatively small number of applications.  
But hopefully a new generation of OSA language components will begin  
to change this situation for the better.

HTH

has
-- 
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] [ann] PyOSA 0.1.0, Appscript Installer 1.5.1 released

2007-03-27 Thread has
On 27 Mar 2007, at 17:12, Daniel Lord wrote:

> John Gruber couldn't have put it any better: "Holy sh*t!" (http:// 
> daringfireball.net/)

Hahah, I'll have to get that as a testimonial. :)


> The MacPython world became a much friendlier place today.
> Great work and thank you very much.

Cheers. Unlike my previous attempt, I've got a pretty good feeling  
about this one - you just know you're on the right track when code  
highlighting works:) - so I think it's going to work out okay.

BTW, if you come up with any PyOSA scripts you'd like to share, do  
let me know as I'm always on the lookout for more samples and stuff.

Have fun,

has
-- 
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] [ann] PyOSA 0.1.0, Appscript Installer 1.5.1 released

2007-03-27 Thread Daniel Lord


On Mar 27, 2007, at 9:35, Kevin Walzer wrote:



Announcing the first release of PyOSA, a new OSA language  
component for

Python. PyOSA allows you to write Python scripts in Script Editor and
attach them to OSA-enabled applications such as Mail (Mail Rules),
iTunes (Scripts menu) and System Events (Folder Actions).


has,

I'm confused--how is this different from appscript?


Kevin, note the included passage above. You can write Python scripts  
in Script Editor now.
Unfortunately, I cannot seem to get ScriptDebugger to work, but it  
might be 'pilot error'.

Still trying.

daniel



--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] [ann] PyOSA 0.1.0, Appscript Installer 1.5.1 released

2007-03-27 Thread Kevin Walzer
has wrote:
> Hi all,
> 
> Announcing the first release of PyOSA, a new OSA language component for 
> Python. PyOSA allows you to write Python scripts in Script Editor and 
> attach them to OSA-enabled applications such as Mail (Mail Rules), 
> iTunes (Scripts menu) and System Events (Folder Actions). PyOSA is very 
> much a work-in-progress at this point, but it's already sufficiently 
> advanced to allow both experimental and real-world use (caveat a few 
> bugs and limitations). Comments, criticisms and suggestions for 
> improvements are very welcome.
> 
> Also released is Appscript Installer 1.5.1, containing binary installers 
> for appscript 0.17.2. This update fixes several minor bugs and is 
> recommended for all Appscript Installer 1.5/appscript 0.17.0 users.
> 
> PyOSA and Appscript Installer are available for download at:
> 
> http://appscript.sourceforge.net/download.html
> 
> Enjoy!
> 
> has
> --http://appscript.sourceforge.net
> http://rb-appscript.rubyforge.org
> http://appscript.sourceforge.net/objc-appscript.html

has,

I'm confused--how is this different from appscript?

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] [ann] PyOSA 0.1.0, Appscript Installer 1.5.1 released

2007-03-27 Thread Daniel Lord
John Gruber couldn't have put it any better: "Holy sh*t!" (http:// 
daringfireball.net/)


The MacPython world became a much friendlier place today.
Great work and thank you very much.

On Mar 27, 2007, at 2:49, has wrote:


Hi all,

Announcing the first release of PyOSA, a new OSA language component  
for Python. PyOSA allows you to write Python scripts in Script  
Editor and attach them to OSA-enabled applications such as Mail  
(Mail Rules), iTunes (Scripts menu) and System Events (Folder  
Actions). PyOSA is very much a work-in-progress at this point, but  
it's already sufficiently advanced to allow both experimental and  
real-world use (caveat a few bugs and limitations). Comments,  
criticisms and suggestions for improvements are very welcome.


Also released is Appscript Installer 1.5.1, containing binary  
installers for appscript 0.17.2. This update fixes several minor  
bugs and is recommended for all Appscript Installer 1.5/appscript  
0.17.0 users.


PyOSA and Appscript Installer are available for download at:

http://appscript.sourceforge.net/download.html

Enjoy!

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] [ann] PyOSA 0.1.0, Appscript Installer 1.5.1 released

2007-03-27 Thread has

Hi all,

Announcing the first release of PyOSA, a new OSA language component  
for Python. PyOSA allows you to write Python scripts in Script Editor  
and attach them to OSA-enabled applications such as Mail (Mail  
Rules), iTunes (Scripts menu) and System Events (Folder Actions).  
PyOSA is very much a work-in-progress at this point, but it's already  
sufficiently advanced to allow both experimental and real-world use  
(caveat a few bugs and limitations). Comments, criticisms and  
suggestions for improvements are very welcome.


Also released is Appscript Installer 1.5.1, containing binary  
installers for appscript 0.17.2. This update fixes several minor bugs  
and is recommended for all Appscript Installer 1.5/appscript 0.17.0  
users.


PyOSA and Appscript Installer are available for download at:

http://appscript.sourceforge.net/download.html

Enjoy!

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig