我的目标是创建一个drag‘n’drag应用程序,它将替换应用程序info.plist文件中的NSUIElement键/值对。这将有效地对Dock & Application-Switcher隐藏应用程序的图标。
到目前为止,这将在Info.plist内容中创建一个额外的名为"Info.plist.plist“的‘NSUIElement’文件,并将ƒ值作为唯一的键/值对(它不会修正原始文件)。你能建议一个解决方案吗?
-- OS X 10.3.9
on open ItemList
repeat with x in ItemList
set apppath to POSIX path of x
set infile to quoted form of (apppath & "Contents/Info.plist")
do shell script "defaults write " & infile & " 'NSUIElement' '1'"
end repeat
end open发布于 2014-05-28 20:50:25
我不确定我是否有足够的信息来给出答案,但我猜
do shell script "defaults write " & infile & " 'NSUIElement' '1'" with administrator privileges都会起作用的。
https://stackoverflow.com/questions/23899185
复制相似问题