Table Of Contents

Previous topic

qslaunch.helpers

This Page

qslaunch.utils

qslaunch.utils.finder

qslaunch.utils.finder.front_most_path()
Return the path of the active finder window, or None.

qslaunch.utils.growl

qslaunch.utils.growl.growl_error(error_title, error_body)

Output an error message through Growl.

Parameters:
  • error_title – Growl title
  • error_body – Message body

The application is registered in Growl as “qslaunch.py”.

If Growl cannot be imported, nothing happens.

qslaunch.utils.sysevents

qslaunch.utils.sysevents.click_menu(process_name, menu_bar_id, *args)

Short cut to click a manu through System Events.

Parameters:
  • process_name – ex: u’TextMate’
  • menu_bar_id – probably always 1
  • args – the menus to click

Exemples:

click_menu('TextMate', 1, 'File', 'New From Template', 'Python', 'Python Script')
click_menu('TextMate', 1, 'File', u'Open\u2026')

Note

(u2026 is the “...” char)

Note

this ONLY works if the process has been activated first! E.g. app(u’TextMate’).activate()