打开使用的AppleScripts在一个空间中的应用程序 [英] Open an application in a space using applescripts

查看:232
本文介绍了打开使用的AppleScripts在一个空间中的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个脚本,将在一个特定的空间打开应用程序。所以我们可以说我是在空间1中的终端工作,然后我希望能够在太空4.打开Safari浏览器有没有办法做到这一点?

I am trying to create a script that will open an application in a specific "space". So let's say I am on space 1 working in the terminal and then I want to be able to open safari in space 4. Is there a way to do this?

我已经做了一些搜索,发现只有方法来设置系统配置文件选项。也许我应该告诉你我的最终目标在什么情况下,我试图是不可能的。

I have done some searching and found only ways to set the system profile options. Maybe I should tell you my end goal in case what I am attempting is not possible.

我用一台笔记本电脑和插件到多个车站,家庭,办公室和旅行。我希望为每一个不同的窗口布局。所以,我需要一个苹果脚本告诉它在VARIOS空间和不同的维度来打开应用程序。我希望这是有道理的。向我要澄清,如果它不感谢!

I use a laptop and plugin in to multiple stations, home, office, and travel. I want to create different window layouts for each one. So I will need an apple script telling it to open applications in varios spaces and different dimensions. I hope this makes sense. Ask me for clarification if it doesn't thanks!

PS答案并不一定是所有的AppleScript我只是认为这将是最简单的方法:)

PS the answer doesn't necessarily have to be any applescript I just thought that would be the easiest way :)

推荐答案

有可能的空格 preferences通过使用脚本界面做应用程序的某些脚本在系统Events.app <​​/ code>。查看回答类似的问题<一href=\"http://stackoverflow.com/questions/2305491/applescript-opening-an-app-in-space-number-n\">here.

It is possible to do some scripting of application Space preferences by using the scripting interface to the System Events.app. See the answer to a similar question here.

这篇关于打开使用的AppleScripts在一个空间中的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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