OS X で隠しディレクトリ内のフォルダにタグを付ける方法

OS X で隠しディレクトリ内のフォルダにタグを付ける方法

OS X では、隠しディレクトリ内のフォルダにタグを付けたり、隠しディレクトリ自体にタグを付けたりする方法はありますか?

回避策として、これらのフォルダーのエイリアスを作成し、目に見える場所に置いてエイリアスにタグを付けますが、タグ付けされたエイリアスの内容を表示するには、独自の Finder ウィンドウで開く必要があり、Finder の列表示では内容が表示されません。

答え1

このスクリプトをアプリとして保存します。

ダブルクリックすると、非表示のファイルが表示されます。
必要に応じてタグを付けます。
もう一度ダブルクリックすると、非表示のファイルが非表示になります。

set newHiddenVisiblesState to "YES"
try
    set oldHiddenVisiblesState to do shell script "defaults read com.apple.finder AppleShowAllFiles"
    if oldHiddenVisiblesState is in {"1", "YES"} then
        set newHiddenVisiblesState to "NO"
    end if
end try
do shell script "defaults write com.apple.finder AppleShowAllFiles " & newHiddenVisiblesState


tell application "Finder"
    set theWindows to every Finder window
    repeat with i from 1 to number of items in theWindows
        set this_item to item i of theWindows
        set theView to current view of this_item
        if theView is list view then
            set current view of this_item to icon view
        else
            set current view of this_item to list view

        end if
        set current view of this_item to theView
    end repeat
end tell

これにより、デスクトップ自体の可視性はすぐには変更されず、Finder ウィンドウのみが変更されます。

Spotlight で隠しファイルを検索するには、検索パラメータを指定する必要があります...

ここに画像の説明を入力してください

答え2

思ったより簡単です!

  1. タグ付けしたいフォルダのショートカットを作成します
  2. ショートカットを隠しフォルダの外に移動する
  3. ショートカットにタグを付けます。

完了しました。

関連情報