[Pythonmac-SIG] Using Finder to open app by id

Ned Deily nad at acm.org
Sat Aug 22 22:40:28 CEST 2009


In article 
<E373EF9F-2FFD-4402-B1AD-02BBA17FBC32 at securityevaluators.com>,
 Charles Miller <cmiller at securityevaluators.com> wrote:
> On Aug 22, 2009, at 1:03 PM, Sean DiZazzo wrote:
>> Why not just ssh in and run "open /Applications/Preview.app" ?
> That is certainly an option, but I'm trying to script everything from  
> Python and so having to popen a call to ssh to login and start preview  
> is pretty heavy compared to sending a simple applescript event.

"simple applescript event" seems to be a bit of an oxymoron, especially 
in the context of remote events!

Personally, I would almost always choose an ssh solution over a remote 
Apple Event solution.  It should be more secure and it generally just 
works.  It is also useful for cases where a GUI isn't necessary; you can 
ssh in even when the user isn't logged in.  But you know that, no doubt.

-- 
 Ned Deily,
 nad at acm.org



More information about the Pythonmac-SIG mailing list