Charles Miller wrote:
How can you run the following Applescript in py-appscript? I've
tried everything I can think of.
tell application "Finder" to open application file id
"com.apple.Preview"
ASTranslate is always your friend...
app(u'Finder').application_files.ID(u'com.apple.Preview'
In article
,
Charles Miller 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 previ
Awesome, thanks for the advice. As much as I'd love to see the "by
id" solution, doing it by the file system name will work just fine.
Thanks again for your help!
Charlie
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.
In article
<3ae7cf31-e00c-447a-b6bf-0ed8a99f8...@securityevaluators.com>,
Charles Miller wrote:
> So I was hoping to figure out how to do that AppleScript line locally,
> and then try to do it remotely as well. The real AppleScript I wish
> to run in py-appscript is:
>
> set remoteMachine
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.
Charlie
On Aug 22, 2009, at 1:03 PM, Sean DiZazzo wrote:
Why not just ssh in and run
Why not just ssh in and run "open /Applications/Preview.app" ?
On Sat, Aug 22, 2009 at 10:35 AM, Charles Miller <
cmil...@securityevaluators.com> wrote:
> Thanks for the thought. Unfortunately, the same thing happens with
> TextEdit, for example. (BTW, you can make Preview AppleScriptable by
>
Thanks for the thought. Unfortunately, the same thing happens with
TextEdit, for example. (BTW, you can make Preview AppleScriptable by
following directions here http://www.macworld.com/article/53391/2006/10/previewscript.html)
The AppleScript Language Guide states that one of the four
re
On 22-Aug-09, at 10:39 , Charles Miller wrote:
Thanks. You're right of course, and thanks for the response.
However, using such a method remotely won't work because you can't
send the run command if the application isn't running already.
RuntimeError: Can't get terminology for application
(ae
Thanks. You're right of course, and thanks for the response.
However, using such a method remotely won't work because you can't
send the run command if the application isn't running already.
RuntimeError: Can't get terminology for application
(aem.Application(url='eppc://user:p...@192.168
In article
,
Charles Miller wrote:
> How can you run the following Applescript in py-appscript? I've tried
> everything I can think of.
>
> tell application "Finder" to open application file id
> "com.apple.Preview"
>
> Obviously, I just want to launch Preview from within py-appscript. I
10 matches
Mail list logo