[Automator & AppleScript] Automator: ファイルを年月日と連番でリネームする

Automator.app の workflow を github で公開しました。

[markdown]
> * [DriftwoodJP/automator-workflows](https://github.com/DriftwoodJP/automator-workflows)

### 選択しているフォルダ名の取得

選択しているフォルダ名の取得方法が分からなかったのですが、`/usr/bin/basename` に `path` を渡すと取得できましたよ。

“`prettyprinted
% /usr/bin/basename /Users/****/Desktop/items/1logo.png
1logo.png
% /usr/bin/basename /Users/****/Desktop/items/
items
“`

> * [osx – How do I use the current folder name without a path as a variable in automator in Mac? – Stack Overflow](http://stackoverflow.com/questions/15831913/how-do-i-use-the-current-folder-name-without-a-path-as-a-variable-in-automator-i)
[/markdown]