更改别名目标python [英] change an alias target python

查看:119
本文介绍了更改别名目标python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用python更改别名的目标。我必须下载一些外部库来做到这一点。我玩了一点别名,在没有用户输入的情况下无法找到任何方法来编辑它们。

I would like to change the target of an alias using python. do I have to download some external library to do this. I played around with aliases a bit and can't figure out any way to edit them without user input.

我使用的是Mac,Python 2.6

I'm using mac, python 2.6

推荐答案

PyObjC是一个很好的建议。我在任何地方都找不到解决方案,但是问了一个同样的问题之后,终于设法创建了一个解决方案。查看我对自己的问题的回答:如何从python读取,更改和写入macOS文件别名

PyObjC was a good suggestion. I couldn't find a solution anywhere, but after asking an equivalent question, finally managed to create one. See my answer to my own question: how to read, change, and write macOS file alias from python

这篇关于更改别名目标python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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