[Pythonmac-SIG] Shortcut for IDLE on Mac OS X (LEOPARD)
ronaldoussoren at mac.com
Wed Oct 7 22:32:00 CEST 2009
On 7 Oct, 2009, at 22:18, Gregor Lingl wrote:
> I'm relatively new to the Mac.
> I have a Python 3.1.1. installation on my Macbook
> and I'd like to have a shortcut on my desktop starting
> IDLE with the -n switch, that is without subprocess
Why do you want to do that? Is there functionality in IDLE that works
with the '-n' switch but not without it?
> Under Windows I'd rightclick on the desktop, create a
> new shortcut and then enter as the target:
> C:\Python31\pythonw C:\Python31\Lib\idlelib\idle.pyw -n
> Then I have to give it a name and it's ready. (Additionally
> I have the option to change the icon)
> Is there a similar and similarly simple way to do this
> with Mac OS X? (Leopard)
> I am able to start IDLE in this mode from a terminal,
> but thats rather cumbersome
> python3 /Library/Frameworks/Python.framework/Versions/3.1/lib/
> python3.1/idlelib/idle.py -n
You can store this command in a file and then give the file execute
$ cat > run-IDLE <<-EOF
$ chmod 755 run-IDLE
Double-clicking should then start IDLE.
The result is not quite equivalent to IDLE.app in the "Python 3.1"
folder, that is a real application bundle and contains some special
code to ensures that IDLE behaves more like a Mac applications (in
particular the key bindings).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3567 bytes
Desc: not available
More information about the Pythonmac-SIG