Re: [Pythonmac-SIG] py2applet--is it really this easy?
On Apr 24, 2005, at 12:20 AM, Kevin Walzer wrote: In anticipation of repackaging my Python developer tools for Tiger, I gave py2applet (the gui droplet) a try, since I wasn't quite sure how it worked. I had been playing with a PyQt app called mindmap, so I decided to use this as a test case. I dragged and dropped the main launcher script on the py2applet icon, and it proceeded to create a standalone package complete with PyQt libraries stuffed in! This was quite unexpected: I guess I thought py2applet worked in the same way that buildapplet did. Hell no, py2app exists because buildapplet/bundlebuilder sucks. Is it this easy? I realize that I will need to edit the info.plist and icon bits to get it completely customized (since I didn't use a py2app setup script), but this blows my mind. Is py2applet really this simple? Yes, it really is that easy. Actually, if you want to keep the drag+drop workflow you can drag an icns file and Info.plist template and it will use those. Any data files you drag in will go right into Resources (which is the current directory upon startup) too. I suggest stripping down the Info.plist file down to only the keys you would like to customize, though, so you don't end up overriding something py2app ought to control. It fills in the blanks for anything necessary. -bob ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] py2applet--is it really this easy?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In anticipation of repackaging my Python developer tools for Tiger, I gave py2applet (the gui droplet) a try, since I wasn't quite sure how it worked. I had been playing with a PyQt app called mindmap, so I decided to use this as a test case. I dragged and dropped the main launcher script on the py2applet icon, and it proceeded to create a standalone package complete with PyQt libraries stuffed in! This was quite unexpected: I guess I thought py2applet worked in the same way that buildapplet did. Is it this easy? I realize that I will need to edit the info.plist and icon bits to get it completely customized (since I didn't use a py2app setup script), but this blows my mind. Is py2applet really this simple? Bob, you're amazing. Thanks for such a useful tool. With a little more testing/learning, I'll be ready to bag bundlebuilder/buildapplet for good. Cheers, Kevin Walzer, PhD WordTech Software--Open Source Applications and Packages for OS X http://www.wordtech-software.com http://www.smallbizmac.com http://www.kevin-walzer.com mailto:[EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCax6QJmdQs+6YVcoRAjJPAKCG0vKXnCEMwjHS2ShiRNuEt+F8NwCdFJRv tb5n5Wc8BkhvcpX8v+fybKg= =+loj -END PGP SIGNATURE- ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] appscript: click command not working
Thanks. The workaround works. I'll be curious to hear how this gets resolved. -D has wrote: Demian Godon wrote: Question from a newbie (to both applescript and python): Can someone please explain why the following script does not cause the "Start Server" button to be clicked? app('/Applications/Utilities/OSXvnc.app').activate() app('System Events').application_processes['OSXvnc'].windows[1].buttons[4].click() Not sure. It works on 10.2 (where I am), but this is the second time someone's reported this problem on 10.3. If I can reproduce it when I upgrade to 10.4 I should be able to nail it quite quickly. In the meantime, I believe the alternate form works correctly: app('System Events').click(app('System Events').application_processes['OSXvnc'].windows[1].buttons[4]) HTH has http://freespace.virgin.net/hamish.sanderson/ ___ 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] converting file paths between HFS and POSIX formats
Larry Meyn wrote: >On Apr 22, 2005, at 7:00 PM, Bob Ippolito wrote: > > >> There are still some scriptable applications that only deal with HFS > >> paths, so I would vote for including conversion options if it's no > >> too much trouble. However, the need will decrease with time. > >> (Although I think KaleidaGraph may never get upgraded scripting > >> abilities.) > > > > Does it really take HFS paths as strings, and not FSSpec? Even if it > > did, wouldn't a FSSpec be coerced to a HFS path string along the way? > > >KaleidaGraph has it's own scripting language, so for anything beyond >open and close commands, one passes a KaleidaGraph script as a string. >Hence the need for HFS path strings. I've got some code, based on what >Jack suggested, that does what I need. Offhand, I can't think of any >other applications with this requirement, so it may not be worth Has' >time to support HFS path strings in his project if this is such a rare >need. Yeah, I think based on what folk here have said I'll leave out HFS path support for the time being. If I start getting lots of requests for it I can always add it in later along with the relevant caveats, but if it's just an occasional thing then they can always get a POSIX path and use Jack or Nicholas's code to convert it themselves. Many thanks to all for the input, has -- http://freespace.virgin.net/hamish.sanderson/ ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] appscript: click command not working
Demian Godon wrote: >Question from a newbie (to both applescript and python): >Can someone please explain why the following script does not cause the >"Start Server" button to be clicked? > >app('/Applications/Utilities/OSXvnc.app').activate() >app('System >Events').application_processes['OSXvnc'].windows[1].buttons[4].click() Not sure. It works on 10.2 (where I am), but this is the second time someone's reported this problem on 10.3. If I can reproduce it when I upgrade to 10.4 I should be able to nail it quite quickly. In the meantime, I believe the alternate form works correctly: app('System Events').click(app('System Events').application_processes['OSXvnc'].windows[1].buttons[4]) HTH has http://freespace.virgin.net/hamish.sanderson/ ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] appscript: click command not working
Question from a newbie (to both applescript and python): Can someone please explain why the following script does not cause the "Start Server" button to be clicked? #!/usr/bin/pythonw from appscript import * app('/Applications/Utilities/OSXvnc.app').activate() app('System Events').application_processes['OSXvnc'].windows[1].buttons[4].click() The equivelant applescript works: activate application "OSXvnc" tell application "System Events" tell application process "OSXvnc" -- GUI Scripting statements: click button 4 of window 1 end tell end tell Thanks, -D ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] converting file paths between HFS and POSIX formats
On Apr 22, 2005, at 9:08 AM, has wrote: I'm not sure how useful HFS path conversion options will really be; it seemed an idea to put it in for completeness' sake, but perhaps it's just overkill? There are still some scriptable applications that only deal with HFS paths, so I would vote for including conversion options if it's no too much trouble. However, the need will decrease with time. (Although I think KaleidaGraph may never get upgraded scripting abilities.) Larry ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] converting file paths between HFS and POSIX formats
On Apr 22, 2005, at 9:39 PM, Larry Meyn wrote: On Apr 22, 2005, at 9:08 AM, has wrote: I'm not sure how useful HFS path conversion options will really be; it seemed an idea to put it in for completeness' sake, but perhaps it's just overkill? There are still some scriptable applications that only deal with HFS paths, so I would vote for including conversion options if it's no too much trouble. However, the need will decrease with time. (Although I think KaleidaGraph may never get upgraded scripting abilities.) Does it really take HFS paths as strings, and not FSSpec? Even if it did, wouldn't a FSSpec be coerced to a HFS path string along the way? I'm really not sure you ever really need or want to use HFS path literals, anywhere, ever, anymore. -bob ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] Repackaging for Tiger?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've gotten some inquiries from users about my Python packages--PyQt in particular--and whether they will run on Tiger. Is it safe to say that Python stuff built/packaged against 2.3 on Panther will probably need to be repackaged for Tiger, assuming Tiger is using a more recent version of Python than 2.3.0? - -- Cheers, Kevin Walzer, PhD WordTech Software--Open Source Applications and Packages for OS X http://www.wordtech-software.com http://www.smallbizmac.com http://www.kevin-walzer.com mailto:[EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCabTlJmdQs+6YVcoRAlrsAJ0SpjW+70Q4vxh1Av/t2YZFDjSlAACfZ/ab bKAWFaGF+L1e6OnCC+xzxhE= =JEFq -END PGP SIGNATURE- ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig