Skip to content

PyXA 0.3.0

Latest
Compare
Choose a tag to compare
@SKaplanOfficial SKaplanOfficial released this 08 Jan 02:37
· 3 commits to main since this release
f029bda

Additions

  • Added XACamera.
  • Added XAMicrophone.
  • Added XAScreen.
  • Added XADatetimeBlock type representing dates with a duration attached.
  • Added XAList.map().
  • Added XAText.extract_urls(). Returns a list of XAURL objects.
  • Added XAText.extract_dates(). Returns a list of XADatetimeBlock objects.
  • Added XAText.extract_addresses(). Returns a list of XALocation objects.
  • Added XAText.extract_phone_numbers(). Returns a list of XAText objects.
  • Script Editor:
    • Added XAScriptEditorApplication.make().
  • Shortcuts:
    • Added XAShortcutsApplication.make().
  • Bike Outliner:
    • Added XABikeApplication.RowType enum.
    • Added XABikeApplication.query().
    • Added XABikeRowList.type(). Returns a list of XABikeApplication.RowType.
    • Added XABikeRowList.by_type(). Returns a XABikeRowList.
    • Added XABikeRowList.delete().
    • Added XABikeRowList.rows().
    • Added XABikeRowList.attributes().
    • Added XABikeRow.type(). Returns a XABikeApplication.RowType.
    • Added XABikeRow.delete().
  • Added XAErrors.AppleScriptError for handling AppleScript compilation and runtime errors.
  • New Applications:
    • Added support for Arc.
    • Added greater support for various Chromium browsers.
    • Added support for OmniWeb.
    • Added support for Path Finder.

Changes

  • AppleScript:
    • AppleScript.load()
    • AppleScript.run() now accepts one argument, args, providing a list of arguments to pass to the script.
    • AppleScript.run() now raises the error returned by the script, if any.
  • Maps:
    • XAMapsApplication.sidebar_showing can now be set to True/False.
    • XAMapsApplication.search() now accepts both str and XAText as input.
    • XAMapsApplication.directions_to() now accepts both str and XAText as input.
    • XAMapsTabList and XAMapsTab now print elegantly.
    • XAMapsTabList is now a subclass of XASystemEventsUIElementList.
    • XAMapsTab is now a subclass of XASystemEventsUIElement.

Bug Fixes

  • Fixed AppleScript.load() removing excess characters from scripts, causing e.g. lists not to work.
  • Fixed error when creating new note in Notes using XANotesApplication.new_note(). (Resolve #13)
  • Fixed XAAudio.beep() failing due to too many arguments.