Concur, seems like the best practice way to install python is with brew.
Sent from my iPhone
> On Aug 3, 2014, at 8:13 AM, Matthew Brett wrote:
>
> Hi,
>
> I just put up a new wiki page on why system Python can be incovenient to
> use:
>
> https://github.com/MacPython/wiki/wiki/Which-Python
>
I'm also very eager to hear an update, but PyObjC is going to be competing with
Swift now!
> On Jun 3, 2014, at 4:59 PM, Nicholas Cole wrote:
>
> Hi Roland,
>
> Could we all have an update on development plans? Do you think PyObjC
> is going to work nicely with OS X 10.10?
>
> N.
>
> On Mon
Let me add to the discussion Aquamacs. What I like about it most is that
it supports all the usual Mac keyboard shortcuts but you can also hone all
the power of emacs. It also has a command line open tool, full screen
options, the kitchen sink.
http://aquamacs.org
-Adam
_
> app("Finder").items[mactypes.Alias("/path/to/file")]
It works! Thanks!!
(So simple, actually)
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/opt
s for POSIX file and alias?)
I would be very grateful.
Regards,
-Adam
On Thu, Jun 30, 2011 at 7:52 PM, Adam Morris wrote:
> I have an AppleScript snippet that I need translating to python
> appscript; too low-level for ASTranslate to handle:
>
> tell application "Finder"
> mactypes.Alias(unicodedata.normalize('NFD', os.path.abspath(path)))
I want the result to respond to the Finder's dictionary, though, so
wouldn't I need the Finder to wrap it rather than from the mactypes
module?
comment.get() on the resulting object doesn't work.
___
I have an AppleScript snippet that I need translating to python
appscript; too low-level for ASTranslate to handle:
tell application "Finder"
"/Users/brainysmurf/Desktop" as POSIX file as alias
end tell
I'm writing a wrapper class for the Finder and want to be able to pass
/path/to/doc to
Not sure if this is the best place to ask, but you guys have been
helpful in the past:
Apple's python has the xattr module built-in, but I'm writing an app
that needs ("wants") Python 3. I wrote to the author asking if there
was any plans to port xattr to Python 3, and he suggested that it
would b
Dear all,
I was wondering what sort of options are out there for a poor soul who
deploys Python extensively in his workflows, and uses appscript and
calls to display dialog and the like to interact with the user, but
would really, really like it if there could just be something out
there, as easy
Hello all,
A while ago I wrote a Python class around appscript that would avoid
(with calls to the shell osascript command) using the standard
addition library's calls like display_dialog because it required the
launch of Python Launcher, which slowed down the interaction with the
user considerabl
Hi there,
> I can force my system to sleep, but what I would like is to know when my
> system is going to sleep, to launch some routines behind (like programming
> an alarm to ring after 6 hours).
I'm pretty sure not.
Applescript doesn't let you register callbacks within the system, and
even if
with my "installed" python 2.7 setup? (Installed isn't
quite the right word, I know.) Why not? I guess it's because something
is hard-coded somewhere ...
I don't particularly "need" XCode but I really want to understand this.
Can't tell you how muc
On Dec 28, 2010, at 12:24 PM, Aahz wrote:
> Nope. If you're doing that, just use os.path.exists() or isfile().
> Faster and safer.
I was hoping that I could detect it no matter where it was so advanced users
could do symlinks or move it to their own folders or whatever which made me
think of
On Dec 28, 2010, at 12:46 AM, Christopher Barker wrote:
> I think you could specifically search for the utility in places it might be
> expected to be found:
>
> /usr/bin
> /usr/local/bin
> /sw/... (for fink)
> /opt/... (for macports)
That's the first thing I tried; maybe I typed wrong? I'll gi
py2app experts,
I have a script that is packaged using and py2app that does a
pre-check to see if a command line utility is installed, using Popen
and "which name". (The script downloads and installs it if not.)
I pass subprocess.PIPE for stdout and stderr, with shell=True.
When I run the script
> print sa.do_shell_script("ls -l", administrator_privileges=True)
Thanks Charles, I had forgotten that do shell script is a part of the
Standard Addition osax. Now I know how to run a script that needs the
user's permission without having to use some GUI scripts to get the
admin/password dialog.
How to translate this applescript into appscript?:
do shell script "sudo rm /usr/bin/file" with administrator privileges
Thanks for your software, has.
-Adam
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinf
Dear Pythonmac-sig,
I have a python script that gives Keynote some added features useful to
teachers. It lets students interact with whatever is being projected right
at their desk. It's written in python using appscript but at the moment runs
entirely from the command line.
I'm looking at giving
How can one refer to keywords (the k) given a variable?
I'm working on a script that allows users to tell pages, for example,
to set the current selection's properties to stroke type: solid,
stroke width: 1.0. But I want to abstract all of this away. Coercion
is simple enough, but what to do abou
I use a function whose sole purpose is to return a reference to System
Events to avoid this problem:
import appscript as ap
def getSystemEvents():
try:
# ask System Events for processes to see if it's there
throwaway = ap.app('/System Events').processes
Sorry for the resend but I'm not sure if my first attempt went through (new
to gmail)!
Hi all,
I'm getting lots of milage out of appscript, but ran into a snag that
searches haven't resolved.
Trying to gui script a remote machine, and appscript doesn't seem to be
working. This:
app(url='e
Hi all,
I'm getting lots of milage out of appscript, but ran into a snag that
searches haven't resolved.
Trying to gui script a remote machine, and appscript doesn't seem to be
working. This:
app(url='eppc://machine.local/System Events').processes()
complains that terminology can't be found and
>
> http://wiki.python.org/moin/MacPython/BundleBuilder
I've switched back to BundleBuilder, and it works fine. It takes a bit of
trial and error to get everything wrapped up, but I've never understood why
people bad-mouthed it so much. It's a single-script module, and reasonably
easy to understa
>
> However, there is a different type of Mac user -- the type that has
> traditionally used Macs. Some of these folks are giving a bit of programming
> a try, and have heard that python is an easy to learn language -- and, cool,
> OS-X even comes with it installed!
It's true there is definitely
> -- it's just not universal enough. For now, I suspect these are the best
> options:
>
> python 2.5:
> python.org build (32 bit PPC and intel)
>
> python 2.6:
> 32 bit python.org 2.6.4
> 64 bit python.org build?
>
> python 2.7:
> python.org 3-way buil
OK I've figured it out. After spending another morning doing a clean
re-install (the do do do intro song is catchy the first time but lame after
three... :)
To get PyObjC working on Python 2.6.4:
Install Python 2.6.4
Install setuptools for 2.6.4
Install PyObjC using setuptools
This process was n
ype "python" it "upgraded" to 2.6.4 for me. Off I go...
(Maybe I should have just remained at 2.6.1 )
-brainysmurf
On Tue, Jan 5, 2010 at 7:46 PM, Ronald Oussoren wrote:
>
> On 5 Jan, 2010, at 11:54, Adam Morris wrote:
>
> > Hi all,
> >
> >
Hi all,
Just trying to get my system set up for some coding ... decided to reinstall
everything (Snow Leopard) from scratch. What a mistake that was.
I updated to 10.6.2, installed Xcode and THEN installed python 2.6.4. I
think that might have something to do with two problems I'm seeing. The
maj
Dear all,
I wrote to you the other week about the selection()() issue and got a really
great reply. I never realized that the applescript munging going on would
affect the way appscript works. Thanks for all the help, I've since got my
classes working the way I want them to.
I've recently tried i
ASTranslate tells me that
tell application "Pages" to tell front document to get selection as text
should be
app(u'Pages').documents[1].selection.get(resulttype=k.unicode_text)
but that doesn't return what I want (a reference? ... hardly useful!). Yet:
app('Pages').documents[1].selection()()
ret
In Applescript, I would write the following:
tell app "Pages" to tell front document to get its selection -- text from
character x to character y
tell app "Pages" to tell front document to get its selection as text --
"whatever is selected"
> Are you sure you are formulating the correct refere
Hi all,
Quick question from someone getting used to appscript with python.
How do I coerce into a text?
reference.get(resulttype=k.text)
But that doesn't seem to do what I want it to do. In Applescript I actually
get the string, but in appscript I still get a reference.
Thanks for your help!
32 matches
Mail list logo