如何控制非AppleScript的应用程序? [英] How to control a non-applescript application?

查看:431
本文介绍了如何控制非AppleScript的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了用于显示什么是拖拉机临(DJ软件)打活饲料的OSX的应用程序,使用TRAKTOR文件.nml其历史轨迹/播放列表,我将然后解析。该文件包含当前组的历史(轨道,艺术家,长度等)。

I am developing an osx app that displays a live feed of what is playing in Traktor Pro(DJ Software), traktor uses .nml files for its track history/playlist which i will then parse. The file contains the history(track, artist, length etc. ) of the current set.

问题是,当它关闭时或当用户保存轨道列表中一个.nml文件拖拉机仅保存该文件。由于TRAKTOR不支持苹果剧本我不知道如何出口的自动化。

The problem is that Traktor only saves the file when it shuts down or when the user saves the track-list in a .nml file. As traktor does not support apple-script i dont know how to automate the export.

该文件必须保存/更新每隔1-2分钟左右。

The file would have to save/update around every 1-2 minutes.

下面是具有在后台自动进行的动作

Here is the action that has to be automated in the background

应用程序布局:

Application layout:

1号出口动作:

第二导出操作

2nd Export action

在我的研究,我发现这一点:HTTP:// www.macosxautomation.com/applescript/uiscripting/index.html,但我不知道这是否会与TRAKTOR菜单操作,以及如何

In my research i have found this: http:// www.macosxautomation.com/applescript/uiscripting/index.html but i am not sure if it will work with the traktor menu, and how?

所以,问题是:我如何控制像拖拉机非AppleScript的应用临

So the question is: How do i control a non-applescript application like Traktor Pro?

推荐答案

非AppleScript的我想你的意思是有应用程序根本就不是一个AppleScript字典。 <一href=\"http://developer.apple.com/library/mac/#documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXTesting/OSXAXTestingApps.html\"相对=nofollow>无障碍督察是经常的补救措施,如果没有 UI浏览器是更先进的。

By "non-applescript" I assume you mean that the application simply does not have an AppleScript dictionary. Accessibility Inspector is quite often the remedy, if not UI Browser is more advanced.

方法:


  1. 打开辅助设备(如你发现你的
    研究)

  2. 确定您需要使用的UI元素
    辅助检查

  3. 写您的闪闪发光的新的AppleScript(重复步骤2,如果
    必填)

这篇关于如何控制非AppleScript的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆