Как скрыть значки на рабочем столе в OS X?

101 Просмотры
Издатель
Нужно ненадолго скрыть значки на рабочем столе в OS X? Есть различные программы для этой цели, можно вводить команду в терминале, но я предлагаю наиболее удобный способ скрыть ярлыки на Mac. Достоинства:
1. Без сторонних программ.
2. Бесплатно.
3. Быстро и удобно как скрывает, так и показывает значки.
- - -
Код:
on run
tell application "System Events"
set _activeApp to name of the first process whose frontmost is true
end tell
try
set _theVar to ((do shell script "defaults read com.apple.finder CreateDesktop") as integer) as boolean
on error -- if the default value doesn't already exist, create it...
do shell script "defaults write com.apple.finder CreateDesktop 1"
set _theVar to ((do shell script "defaults read com.apple.finder CreateDesktop") as integer) as boolean
end try
do shell script "defaults write com.apple.finder CreateDesktop " & (((not _theVar) as integer) as string)
tell application "Finder" to quit
delay 1
tell application "Finder" to launch
tell application _activeApp to activate
end run
- -
https://twitter.com/techno_forge
http://vk.com/technoforge
-
Thx audionautix, incompetech, freemusicarchive and ByeByeCopyright for music. Отдельное спасибо Евгению "PLAYSTARZ".
Категория
iMac
Комментарии выключены