Jump to content

dpyy

Member
  • Posts

    14
  • Joined

  • Last visited

Posts posted by dpyy

  1. on alfred_script(q)
      tell application "Slack" to quit
      tell application "Notion" to quit
    tell application "Webstorm" to quit
    tell application "Postman" to quit
    tell application "Postico" to quit
    tell application "Tower" to quit
    tell application "Microsoft Teams" to quit
    tell application "Microsoft Excel" to quit
    tell application "Termius" to quit
    tell application "Intellij IDEA" to quit
    end alfred_script

     

    I have that script in alfred. The earlier ones get run but the latest ones fail. But if I run the script multiple times it eventually closes everything. 

     

    Any ideas?

  2. Is there any update on this? I really need this workflow really bad. Here's my output if it helps.

     python mailto.py client
    
    Traceback (most recent call last):
      File "mailto.py", line 62, in <module>
        from contacts import get_contacts, CACHEPATH
      File "/Users/G/Dropbox/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.7E8973CB-6BB8-4137-B64E-1480BAE6661E/contacts.py", line 29, in <module>
        log = logger(u'contacts')
      File "/Users/G/Dropbox/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.7E8973CB-6BB8-4137-B64E-1480BAE6661E/log.py", line 24, in logger
        s = Settings()
      File "/Users/G/Dropbox/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.7E8973CB-6BB8-4137-B64E-1480BAE6661E/settings.py", line 49, in __init__
        self._load()
      File "/Users/G/Dropbox/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.7E8973CB-6BB8-4137-B64E-1480BAE6661E/settings.py", line 60, in _load
        self['system_default_app'] = self._get_system_default_client()
      File "/Users/G/Dropbox/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.7E8973CB-6BB8-4137-B64E-1480BAE6661E/settings.py", line 75, in _get_system_default_client
        d = json.loads(check_output(command))
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 575, in check_output
        raise CalledProcessError(retcode, cmd, output=output)
    subprocess.CalledProcessError: Command '[u'plutil', u'-convert', u'json', u'-o', u'-', u'/Users/G/Library/Preferences/com.apple.LaunchServices.plist']' returned non-zero exit status 1
    
    
×
×
  • Create New...