[PowerShell] AppleScript 显示和隐藏隐含文件的脚本 →→→→→进入此内容的聊天室

来自 , 2020-11-08, 写在 PowerShell, 查看 101 次.
URL http://www.code666.cn/view/08f0efeb
  1. on run
  2.  -- Read the current value of AppleShowAllFiles
  3.  set plistValue to do shell script "defaults read com.apple.finder AppleShowAllFiles"
  4.  set plistCommand to "defaults write com.apple.finder AppleShowAllFiles"
  5.  
  6.  if plistValue is "false" then
  7.     set shellCommand to plistCommand & " true"
  8.  else
  9.     set shellCommand to plistCommand & " false"
  10.  end if
  11.  do shell script shellCommand
  12.  
  13.  -- Restart the Finder to see the new value
  14.  do shell script "killall Finder"
  15. end run
  16. //shell/8302

回复 "AppleScript 显示和隐藏隐含文件的脚本"

这儿你可以回复上面这条便签

captcha