「新規テキストファイルを作成する」はショートカットがないし、そもそもメニューバー上にも用意されていない。
新規テキストファイルくらいは、ボタン一発で作りたいところ。
というので、Applescriptを書いて、Sparkから呼び出せるようにして対処してみた。
#Finderの選択場所に新規ファイルを作成する tell application "Finder" to make new file at (the target of the front window) as alias
#Finderの選択場所に新規ファイルを作成する tell application "Finder" to make new file at (the target of the front window) as alias
RES gives a full account of Gondry's process. "I really like the basic-ness of the music - one voice, one guitar, and one drum. I like this concept, and I thought it was very close to the primary color of the Lego blocks." On the video's creation: "We shot a very basic video of the band [in London], we edited it and then we had a program that pixelized the video, roughly the size of the Lego blocks and then we printed each frame [25 frames per second] on paper. Then we had an animation team building up Lego blocks to match each frame. Then we reshot each of those frames on a film camera. We didn't have enough Legos to do more than five frames at a time, so after five frames were shot [the Legos] were demolished to build the next five frames."
tr -cs "[:alpha:]" "\n" < sometext.txt | tr "[:upper:]" "[:lower:]" | sort | uniq | wc -l
# コマンド
awk -F\, -f split.awk org.csv
# split.awk
{
filename=$1
print > filename
close(filename)
}
# org.csv --- 1フィールド目が切出し後のファイル名
0.csv,"^@",200,1.00,1000.00,"0, 200 1 1000;"
1.csv,"^@",400,512.00,10.00,"1, 400 512 10;"
2.csv,"^A",1600,2.00,10.00,"2, 1600 2 10;"
・・・
#!/bin/sh
# StopDashboard.command
# ダッシュボードを無効にする
defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock
#!/bin/sh
# Start.command
# ダッシュボードを有効化
defaults write com.apple.dashboard mcx-disabled -boolean NO
killall Dock
# Picturesディレクトリ以下のPDFの総ページ数を取得する
find ~/Pictures/ -name "*.pdf" | xargs mdls | grep kMDItemNumberOfPages | awk 'BEGIN{x=0}{x+=$3}END{print x}'
621

#!/bin/sh
# AddIndexForDownloads.sh
# SafariStandの日付別ダウンロード機能を使用していることが前提。
# カラム表示時にダウンロードフォルダにて最新のフォルダが上に来るようにしたい!
# →日付フォルダを、あたらしい順に索引をつけた名称に変更します。
#
# 参考:http://lagendra.s.kanazawa-u.ac.jp/ogurisu/manuals/awk/intro/node22.html
# シェルの実行場所となるディレクトリを指定
dir=~/Downloads
cd $dir
# 本シェルによって既にリネームされているフォルダがある場合、フォルダ名を元に戻す
for file in `ls . | egrep '*_\w\w\w\w\-\w\w\-\w\w$'`
do
mv $file ${file#*_}
done
# 日付フォルダに、逆順にインデックスをつける
ls . | egrep "^\w\w\w\w\-\w\w\-\w\w$" | tail -r | cat -b > tmp.$$
awk '{printf "mv %s %s_%s\n", $2, $1, $2}' tmp.$$ | sh
# 後片付け
rm -f tmp.$$