[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[osx-users:0903] Apple Script
- To: osx-users@xxxxxxxxxx
- Subject: [osx-users:0903] Apple Script
- From: KazuhiroITO <kazuitoh@xxxxxxx>
- Date: Fri, 19 Mar 2004 12:13:22 +0900
伊藤と申します。
不可視ファイルが見えるようになるscriptを実行しましたら,元に戻せなくなってし
まいました。お助けください。
以下,スクリプトの記述です。
display dialog "Finder file visibility is being toggled" buttons {"OK"}
default button 1 giving up after 4
if word 2 of (do shell script "sw_vers | grep -w ProductVersion") < 10.3 ¬
then
do shell script ¬
"defaults read com.apple.Finder | grep AppleShowAllFiles"
if (result as string) contains "= 1;" then
do shell script ¬
"defaults write com.apple.Finder AppleShowAllFiles '0'"
else
do shell script ¬
"defaults write com.apple.Finder AppleShowAllFiles '1'"
end if
else
try
do shell script ¬
"defaults read com.apple.Finder | grep AppleShowAllFiles"
on error
do shell script ¬
"defaults write com.apple.Finder AppleShowAllFiles '0'"
end try
do shell script ¬
"defaults read com.apple.systempreferences | grep ShowAllMode"
if (result as string) contains "= 1;" then
do shell script ¬
"defaults write com.apple.systempreferences ShowAllMode '0'"
do shell script ¬
"defaults write com.apple.Finder AppleShowAllFiles '0'"
else
do shell script ¬
"defaults write com.apple.systempreferences ShowAllMode '1'"
do shell script ¬
"defaults write com.apple.Finder AppleShowAllFiles '1'"
end if
end if
delay 1
tell application "Finder" to quit
delay 1
tell application "Finder" to activate
--[PR]------------------------------------------------------------------
┏━┓┏━┓┏━┓┏━┓━━◆◆◇ 豆乳クッキーダイエット ◇◆◆━━
┃豆┃┃乳┃┃痩┃┃身┃ 〜 9日間!コレでだめなら全額返金 〜
┗━┛┗━┛┗━┛┗━┛ツライ思いはコリゴリ!おナカもおハダも大喜び
http://ad.freeml.com/cgi-bin/ad.cgi?id=c9Tm6
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
------------------------------------------------------------------[PR]--
<GMO GROUP> Global Media Online www.gmo.jp