POM 4.4.1 app shortcut cannot launch (OS X v10.15.7)

Auteur Réponses
nvadekar Lundi 12 Octobre 2020 à 6:57

the app that was created launches, which cannot run on catalina 10.15.7 with the following error... when i google this error is is realated to required 32 bit python support.   does anyone have an easy solutions...  thanks.


Traceback (most recent call last):
  File "/Users/nvadekar/Desktop/", line 110, in <module>
  File "/Users/nvadekar/Desktop/", line 103, in _argv_emulation
  File "/Users/nvadekar/Desktop/", line 44, in mainloop
    stoptime = Evt.TickCount() + timeout
AttributeError: 'module' object has no attribute 'TickCount'

makj Samedi 11 Mars 2023 à 14:21

Evt.TickCount() can be replaced by time.clock(), but I found no immediate replacement for Evt.WaitNextEvent(), so i changed the python script as described further down commenting away self._dooneevent(mask, timeout).

However, the easiest way to fix the problem is to edit the file /Contents/Info.plist by installing Xcode from App Store and use it as a .plist editor. Of course the Info.plist XML file can simply be edited using TextEdit.

<key>CFBundleExecutable</key>           <string></string> must be changed to <string>playonmac</string>
This will bypass the python script and start the app directly.

I also tried updating /Contents/MacOS/ testing with Notepad++. I then got the python script to start the app but in neither of the two solutions the argument passing works, e.g. opening a file in the Finder context menu with "Open with" Notepad++ does launch Notepad++ but does not open the selected file.

import time
def mainloop(self, mask = highLevelEventMask, timeout = 1):
            if len(sys.argv) > 1 and sys.argv[1][:4] == '-psn':
                del sys.argv[1]
            stoptime = time.clock() + timeout
            while not self.quitting and time.clock() < stoptime:
#               self._dooneevent(mask, timeout)
#            if not self.quitting:
#                print "argvemulator: timeout waiting for arguments"
Also the .app files must be moved to /System/Applications. They do not work residing on Desktop and will not work if moved to ~/Applications.